Coder Social home page Coder Social logo

postcss-increase-text-sizes's Introduction

Build Status

PostCSS Increase Text Sizes

PostCSS Increase Text Size is a PostCSS plugin that helps automaticaly increase text size and line heights.

Why?

Accessible websites are getting more popular. Some countries even pass laws obliging IT companies create web accessible websites. This plugin focused to help with building web accessible web sites.

Basic Usage

postcss([
	require("postcss-increase-text-sizes")({
		fontSizeMultiplyBy: 1.2,
		lineheightMultiplyBy: 1.2,
		selectorsBlackList: ["h2"]
	})
]);

input.css:

h2 {
	font-size: 12px;
}
p {
	font-size: 12px;
	line-height: 16px;
}

output.css:

h2 {
	font-size: 12px;
}
p {
	font-size: 14px;
	line-height: 19px;
}

Options

Name Default Value Description
fontSizeMultiplyBy 1.2 All font-size properties will be multiplied by this option
lineheightMultiplyBy 1.2 All line-height properties will be multiplied by this option
selectorsBlackList [] Array of selectors which are to be ignored

Works great with:

PostCSS High Contrast

postcss-increase-text-sizes's People

Contributors

amazingmaze avatar doppins-bot avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

postcss-increase-text-sizes's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.