# postcss-colornames-to-hex

> PostCSS plugin to convert color names to hexadecimal values

Latest version **1.0.1** (published 2017-09-19) · MIT license · 0 weekly downloads

## Install

```sh
npm install postcss-colornames-to-hex
pnpm add postcss-colornames-to-hex
yarn add postcss-colornames-to-hex
bun add postcss-colornames-to-hex
```

## 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.0.1 |
| Published | 2017-09-19 |
| First published | 2017-09-02 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Known vulnerabilities | 0 (+6 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Avi Goldman |
| Maintainers | avigoldman |
| Keywords | css, postcss, postcss-plugin, color, colornames, hexadecimal |

## Links

- npm: https://www.npmjs.com/package/postcss-colornames-to-hex
- Repository: https://github.com/avigoldman/postcss-colornames-to-hex
- Homepage: https://github.com/avigoldman/postcss-colornames-to-hex#readme
- Issues: https://github.com/avigoldman/postcss-colornames-to-hex/issues
- npm.io page: https://npm.io/package/postcss-colornames-to-hex

## Dependencies (3)

- [postcss](https://npm.io/package/postcss.md) ^6.0.10
- [css-color-names](https://npm.io/package/css-color-names.md) 0.0.4
- [postcss-value-parser](https://npm.io/package/postcss-value-parser.md) ^3.3.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.0.1 (latest) — 2017-09-19
- 1.0.0 — 2017-09-02

## README

# postcss-colornames-to-hex

This plugin will convert CSS color names like `blue` or `black` to their hexadecimal equivalent.

### Installation

```sh
npm install postcss-colornames-to-hex --save
```

### Usage

```js
postcss([ require('postcss-colornames-to-hex') ])
// do your processing here 🎉
```

Or use it in some other [PostCSS way](https://github.com/postcss/postcss#usage).


### Example

You put this in....

```css
a {
  color: blue;
}
```

and you get this out...

```css
a {
  color: #0000FF;
}
```

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