postcss-font-smoothing
v0.1.0
Published
PostCSS plugin to fallback font-smoothing property
Downloads
2,104
Maintainers
Readme
postcss-font-smoothing
PostCSS plugin to fallback font-smoothing property
Installation
$ npm install postcss-font-smoothing
Example
input:
.font {
font-smoothing: antialiased;
}
output:
.font {
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
Usage
// dependencies
var fs = require("fs")
var postcss = require("postcss")
var fontSmoothing = require("postcss-font-smoothing")
// css to be processed
var css = fs.readFileSync("input.css", "utf8")
// process css
var output = postcss()
.use(fontSmoothing())
.process(css)
.css
License
The MIT License (MIT)
Copyright (c) 2016 Masaaki Morishita