Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

postcss-light-text

jdsteinbach13MIT0.0.1

PostCSS plugin that adds webkit antialiasing for light text

postcss, css, postcss-plugin, text, antialiasing, legibility

readme

PostCSS Light Text Build Status

PostCSS plugin that adds webkit antialiasing for light text.

.light-text {
  color: #eee;
}
.light-text {
  color: #eee;
  -webkit-font-smoothing: antialiased;
}

Usage

var lightText = require('postcss-light-text');

postcss([ lightText ]);

Options

The plugin defaults to a luminance value of 0.5. If you'd like to change that, pass the following option:

var lightText = require('postcss-light-text');

postCSS([ lightText({ luminance: 0.7 }) ]);

See PostCSS docs for examples for your environment.

changelog

0.0.1 / 2017-10-05

  • Initial plugin functionality & tests