npm.io
1.0.0 • Published 10 years ago

@f/color-names

Licence
MIT
Version
1.0.0
Deps
0
Vulns
0
Weekly
0

color-names

Build status Git tag NPM version Code style

Map of color names to hex codes.

Installation

$ npm install @f/color-names

Usage

The keys are color names, the values are hex codes.

var colorNames = require('@f/color-names')

colorNames.blue === '#00ff'

Is this list complete?

No. There are a ~400 colors not included here. It includes only the most common ones to avoid adding lots of bloat so that it can be used in browsers. It is the same list that stylus uses.

Returns:

License

MIT