@f/color-names
v1.0.0
Published
Map of color names to RGBA values
Downloads
4
Readme
color-names
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