# css-color-keywords

> A list of all CSS color keywords.

Latest version **1.0.0** (published 2017-01-20) · ISC license · 0 weekly downloads

## Install

```sh
npm install css-color-keywords
pnpm add css-color-keywords
yarn add css-color-keywords
bun add css-color-keywords
```

## 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.0 |
| Published | 2017-01-20 |
| First published | 2017-01-20 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=4 |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 9 |
| Author | Jakob Krigovsky |
| Maintainers | sonicdoe |
| Keywords | css, color, keywords, list |

## Links

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

## Alternatives

- [style-dictionary](https://npm.io/package/style-dictionary.md) — 2.0M weekly downloads
- [postcss-merge-idents](https://npm.io/package/postcss-merge-idents.md) — 1.7M weekly downloads
- [@fontsource/noto-sans](https://npm.io/package/@fontsource/noto-sans.md) — 93.0K weekly downloads
- [uglifycss](https://npm.io/package/uglifycss.md) — 71.6K weekly downloads
- [mat4-interpolate](https://npm.io/package/mat4-interpolate.md) — 23.3K weekly downloads

## Recent versions

- 1.0.0 (latest) — 2017-01-20

## README

# css-color-keywords

> A list of all CSS color keywords.

This list contains all CSS color keywords specified in:

- [CSS Level 1](https://www.w3.org/TR/CSS1/#color-units)
- [CSS Level 2 (Revision 1)](https://www.w3.org/TR/CSS2/syndata.html#value-def-color)
- [CSS Color Module Level 3](https://drafts.csswg.org/css-color-3/#colorunits)
- [CSS Color Module Level 4](https://drafts.csswg.org/css-color/#named-colors)

[See MDN for an overview of all colors](https://developer.mozilla.org/en-US/docs/Web/CSS/color_value#Color_keywords).

## Installation

```sh
$ npm install css-color-keywords --save
```

## Usage

```js
const cssColorKeywords = require('css-color-keywords')

cssColorKeywords.black // #000000
cssColorKeywords.orange // #ffa500
```

Returns an object where each key is a keyword (e.g. `black`) and the value is
the keyword’s RGB hex value (e.g. `#000000`).

Even though CSS color keywords are case-insensitive, this list only contains
lowercase keywords (and returns lowercase RGB hex values).

## Changelog

This project follows [Semantic Versioning 2](http://semver.org/).

This list aims to always include all CSS color keywords. If new keywords are
specified, only the *minor* version will be bumped.

- v1.0.0 (2017-01-20): Initial release

## License

`css-color-keywords` is licensed under the ISC license.
See [`LICENSE`](LICENSE) for the full license.

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