rework-color-function

Implements Tab Atkins's proposed color function in CSS.

rework-color-function

Implements Tab Atkins's proposed color function in CSS.

$ npm install rework-color-function
var color = require('rework-color-function');
 
rework(css)
  .use(color)
  .toString();

You can use the color() function in your CSS to modify colors on the fly just like Tab's spec explains:

h2 {
  background-color: color(red hue(+ 29));
}
 
p {
  color: color(var(green) tint(10%));
}

MIT