postcss-font-smoothing

PostCSS plugin to fallback font-smoothing property

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
postcss-font-smoothing
0.1.08 years ago8 years agoMinified + gzip package size for postcss-font-smoothing in KB

Readme

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