0.1.0 • Published 8 years ago

postcss-font-smoothing v0.1.0

Weekly downloads
535
License
MIT
Repository
github
Last release
8 years ago

postcss-font-smoothing Build Status

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