1.0.0 • Published 8 years ago

@f/color-names v1.0.0

Weekly downloads
1
License
MIT
Repository
github
Last release
8 years ago

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