postcss-color-transform
0.1.0 • Public • Published
PostCSS Color Transform
[PostCSS] plugin to perform arbitrary transformations to colors.
Usage
var colorTransform = require('postcss-color-transform');
var invert = colorTransform({ transform: color => color.negate() });
postcss([ invert ]);
Input:
.foo {
color: #FF0;
background-color: hsla(90, 50%, 80%, 0.7);
}
Output:
.foo {
color: rgb(0, 0, 255);
background-color: rgba(51, 26, 77, 0.7);
}
See [PostCSS] docs for examples for your environment.
Package Sidebar
Install
npm i postcss-color-transform
Weekly Downloads