Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jdsteinbach/postcss-light-text
PostCSS Plugin to antialias light text for Chrome on macOS
https://github.com/jdsteinbach/postcss-light-text
Last synced: 16 days ago
JSON representation
PostCSS Plugin to antialias light text for Chrome on macOS
- Host: GitHub
- URL: https://github.com/jdsteinbach/postcss-light-text
- Owner: jdsteinbach
- License: mit
- Created: 2017-10-05T20:36:40.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2023-01-04T02:41:35.000Z (almost 2 years ago)
- Last Synced: 2024-10-10T06:19:40.864Z (28 days ago)
- Language: JavaScript
- Size: 152 KB
- Stars: 5
- Watchers: 2
- Forks: 2
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# PostCSS Light Text [![Build Status][ci-img]][ci]
[PostCSS] plugin that adds webkit antialiasing for light text.
[PostCSS]: https://github.com/postcss/postcss
[ci-img]: https://travis-ci.org/jdsteinbach/postcss-light-text.svg
[ci]: https://travis-ci.org/jdsteinbach/postcss-light-text```css
.light-text {
color: #eee;
}
``````css
.light-text {
color: #eee;
-webkit-font-smoothing: antialiased;
}
```## Usage
```js
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:
```js
var lightText = require('postcss-light-text');postCSS([ lightText({ luminance: 0.7 }) ]);
```See [PostCSS] docs for examples for your environment.