postcss-font-smoothing

0.1.0 • Public • Published

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

Package Sidebar

Install

npm i postcss-font-smoothing

Weekly Downloads

496

Version

0.1.0

License

MIT

Last publish

Collaborators

  • morishitter