Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ianstormtaylor/rework-color-function
Implements Tab Atkins's proposed color function in CSS.
https://github.com/ianstormtaylor/rework-color-function
Last synced: 7 days ago
JSON representation
Implements Tab Atkins's proposed color function in CSS.
- Host: GitHub
- URL: https://github.com/ianstormtaylor/rework-color-function
- Owner: ianstormtaylor
- Created: 2013-12-16T09:15:52.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2015-03-06T22:01:16.000Z (over 9 years ago)
- Last Synced: 2024-10-12T02:53:18.787Z (23 days ago)
- Language: CSS
- Size: 235 KB
- Stars: 22
- Watchers: 4
- Forks: 5
- Open Issues: 5
-
Metadata Files:
- Readme: Readme.md
- Changelog: History.md
Awesome Lists containing this project
README
# rework-color-function
Implements [Tab Atkins](https://github.com/tabatkins)'s [proposed color function](http://dev.w3.org/csswg/css-color/#modifying-colors) in CSS.## Installation
$ npm install rework-color-function
## Example
```js
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:
```css
h2 {
background-color: color(red hue(+ 29));
}p {
color: color(var(green) tint(10%));
}
```## License
MIT