Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/matype/postcss-font-smoothing
- Owner: matype
- License: other
- Created: 2016-08-08T08:00:53.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-08-08T08:09:33.000Z (over 8 years ago)
- Last Synced: 2024-06-01T06:12:56.356Z (5 months ago)
- Language: JavaScript
- Size: 3.91 KB
- Stars: 6
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- Changelog: changelog.md
- License: LICENSE
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