https://github.com/matype/postcss-currentcolor
PostCSS plugin to transform (`currentcolor`|`current-color`) to `currentColor`
https://github.com/matype/postcss-currentcolor
Last synced: 9 months ago
JSON representation
PostCSS plugin to transform (`currentcolor`|`current-color`) to `currentColor`
- Host: GitHub
- URL: https://github.com/matype/postcss-currentcolor
- Owner: matype
- License: other
- Created: 2016-07-06T01:41:54.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2016-10-10T22:33:03.000Z (almost 10 years ago)
- Last Synced: 2025-02-06T22:37:54.729Z (over 1 year ago)
- Language: JavaScript
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# postcss-currentcolor [](https://travis-ci.org/morishitter/postcss-currentcolor)
PostCSS plugin to transform (`currentcolor`|`current-color`) to `currentColor`
## Installation
```shell
$ npm install postcss-currentcolor
```
## Example
Input:
```
.foo {
color: currentcolor;
}
.bar {
fill: current-color;
}
```
Yield:
```
.foo {
color: currentColor;
}
.bar {
fill: currentColor;
}
```
## Usage
```
// dependencies
var fs = require("fs")
var postcss = require("postcss")
var currentcolor = require("postcss-currentcolor")
// css to be processed
var css = fs.readFileSync("input.css", "utf8")
// process css
var output = postcss()
.use(currentcolor())
.process(css)
.css
```
## License
The MIT License (MIT)
Copyright (c) 2016 Masaaki Morishita