# rework-color-function

> Implements Tab Atkins's proposed color function in CSS.

Latest version **1.2.1** (published 2015-03-06) · MIT license · 0 weekly downloads

## Install

```sh
npm install rework-color-function
pnpm add rework-color-function
yarn add rework-color-function
bun add rework-color-function
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.2.1 |
| Published | 2015-03-06 |
| First published | 2013-12-16 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | ianstormtaylor |
| Keywords | rework, color, function |

## Links

- npm: https://www.npmjs.com/package/rework-color-function
- Repository: https://github.com/ianstormtaylor/rework-color-function
- Issues: https://github.com/ianstormtaylor/rework-color-function/issues
- npm.io page: https://npm.io/package/rework-color-function

## Dependencies (2)

- [balanced-match](https://npm.io/package/balanced-match.md) ^0.0.0
- [css-color-function](https://npm.io/package/css-color-function.md) ^1.2.0

## Alternatives

- [postcss-color-hex-alpha](https://npm.io/package/postcss-color-hex-alpha.md) — 6.4M weekly downloads
- [randomcolor](https://npm.io/package/randomcolor.md) — 348.0K weekly downloads
- [bows](https://npm.io/package/bows.md) — 1.3K weekly downloads
- [ep_prefer_color_scheme](https://npm.io/package/ep_prefer_color_scheme.md) — 260 weekly downloads
- [coc-yank](https://npm.io/package/coc-yank.md) — 61 weekly downloads

## Recent versions

- 1.2.1 (latest) — 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

## 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

---
_Source: https://npm.io/package/rework-color-function · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
