postcss-color-transform

0.1.0 • Public • Published

npm npm npm

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(9050%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

1

Version

0.1.0

License

MIT

Unpacked Size

4.42 kB

Total Files

5

Last publish

Collaborators

  • abstiles