postcss-color-transform
v0.1.0
Published
PostCSS plugin to perform arbitrary transformations to colors.
Downloads
2
Maintainers
Readme
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.