rework-color-function

Implements Tab Atkins's proposed color function in CSS.

MIT 10 个版本
安装
npm install rework-color-function
yarn add rework-color-function
pnpm add rework-color-function
bun add rework-color-function
README

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

版本列表
1.2.1 2015-03-06
1.2.0 2014-12-23
1.1.1 2014-08-26
1.0.0 2014-03-14
0.1.2 2013-12-25
0.1.1 2013-12-25
0.1.0 2013-12-25
0.0.3 2013-12-17
0.0.2 2013-12-17
0.0.1 2013-12-16