# postcss-color-hwb

> PostCSS plugin to transform W3C CSS hwb() color to more compatible CSS (rgb() (or rgba()))

Latest version **3.0.0** (published 2017-05-15) · MIT license · 0 weekly downloads

## Install

```sh
npm install postcss-color-hwb
pnpm add postcss-color-hwb
yarn add postcss-color-hwb
bun add postcss-color-hwb
```

## 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 | 3.0.0 |
| Published | 2017-05-15 |
| First published | 2014-10-04 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 4 |
| Known vulnerabilities | 0 (+6 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 21 |
| Author | Maxime Thirouin |
| Maintainers | jonathantneal, moox, semigradsky |
| Keywords | css, postcss, postcss-plugin, color, colour, rgb, hwb |

## Links

- npm: https://www.npmjs.com/package/postcss-color-hwb
- Repository: https://github.com/postcss/postcss-color-hwb
- Homepage: https://github.com/postcss/postcss-color-hwb#readme
- Issues: https://github.com/postcss/postcss-color-hwb/issues
- npm.io page: https://npm.io/package/postcss-color-hwb

## Dependencies (4)

- [color](https://npm.io/package/color.md) ^1.0.3
- [postcss](https://npm.io/package/postcss.md) ^6.0.1
- [reduce-function-call](https://npm.io/package/reduce-function-call.md) ^1.0.2
- [postcss-message-helpers](https://npm.io/package/postcss-message-helpers.md) ^2.0.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

- 3.0.0 (latest) — 2017-05-15
- 2.0.1 — 2016-11-28
- 2.0.0 — 2015-09-08
- 1.2.0 — 2015-08-13
- 1.1.0 — 2014-11-25
- 1.0.0 — 2014-10-04

## README

# postcss-color-hwb [![Build Status](https://travis-ci.org/postcss/postcss-color-hwb.png)](https://travis-ci.org/postcss/postcss-color-hwb)

> [PostCSS](https://github.com/postcss/postcss) plugin to transform [W3C CSS hwb() color](http://dev.w3.org/csswg/css-color/#the-hwb-notation) to more compatible CSS (rgb() (or rgba())).

## Installation

```bash
$ npm install postcss-color-hwb
```

## Usage

```js
// dependencies
var fs = require("fs")
var postcss = require("postcss")
var colorHwb = require("postcss-color-hwb")

// css to be processed
var css = fs.readFileSync("input.css", "utf8")

// process css
var output = postcss()
  .use(colorHwb())
  .process(css)
  .css
```

Using this `input.css`:

```css
body {
  color: hwb(90, 0%, 0%, 0.5);
}

```

you will get:

```css
body {
  color: rgba(128, 255, 0, 0.5);
}
```

Checkout [tests](test) for more examples.

---

## Contributing

Work on a branch, install dev-dependencies, respect coding style & run tests before submitting a bug fix or a feature.

    $ git clone https://github.com/postcss/postcss-color-hwb.git
    $ git checkout -b patch-1
    $ npm install
    $ npm test

## [Changelog](CHANGELOG.md)

## [License](LICENSE)

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