Package Exports
- css-color-names
- css-color-names/css-color-names.json
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (css-color-names) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
css-color-names
A JSON Object of css color names mapped to their hex value
Usage
var csscolors = require('css-color-names');
console.dir(csscolors);
yields
{
"aqua": "#00ffff",
"aliceblue": "#f0f8ff",
"antiquewhite": "#faebd7",
"black": "#000000",
"blue": "#0000ff",
...
}
How was this list generated?
In the Makefile you'll see a line like this:
./getcolors.sh | ./stringify.js > $(FILE)
The first command scrapes a site for the list,
and outputs the results separated by newlines. The
second command creates the JSON object and outputs
it to stdout, which then gets redirected into
css-color-names.json
Installation
npm install css-color-names
License
MIT