Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/matype/postcss-font-smoothing

PostCSS plugin to fallback font-smoothing property
https://github.com/matype/postcss-font-smoothing

Last synced: about 1 month ago
JSON representation

PostCSS plugin to fallback font-smoothing property

Awesome Lists containing this project

README

        

# postcss-font-smoothing [![Build Status](https://travis-ci.org/morishitter/postcss-font-smoothing.svg)](https://travis-ci.org/morishitter/postcss-font-smoothing)

PostCSS plugin to fallback font-smoothing property

## Installation

```shell
$ npm install postcss-font-smoothing
```

## Example

input:

```css
.font {
font-smoothing: antialiased;
}
```

output:
```css
.font {
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
```

## Usage

```js
// 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