Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 1,000,000+ packages pre-installed, including postcss-font-smoothing with all npm packages installed. Try it out:

var postcssFontSmoothing = require("postcss-font-smoothing")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

postcss-font-smoothing v0.1.0

PostCSS plugin to fallback font-smoothing property

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

Metadata

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free