rework-color-function
Implements Tab Atkins's proposed color function in CSS.
Last updated 10 years ago by ianstormtaylor .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install rework-color-function 
SYNC missed versions from official npm registry.

rework-color-function

Implements Tab Atkins's proposed color function in CSS.

Installation

$ npm install rework-color-function

Example

var color = require('rework-color-function');

rework(css)
  .use(color)
  .toString();

API

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%));
}

License

MIT

Current Tags

  • 1.2.1                                ...           latest (10 years ago)

10 Versions

  • 1.2.1                                ...           10 years ago
  • 1.2.0                                ...           10 years ago
  • 1.1.1                                ...           10 years ago
  • 1.0.0                                ...           11 years ago
  • 0.1.2                                ...           11 years ago
  • 0.1.1                                ...           11 years ago
  • 0.1.0                                ...           11 years ago
  • 0.0.3                                ...           11 years ago
  • 0.0.2                                ...           11 years ago
  • 0.0.1                                ...           11 years ago
Maintainers (1)
Downloads
Total 1
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (2)
Dev Dependencies (2)
Dependents (1)

© 2010 - cnpmjs.org x YWFE | Home | YWFE