Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bahamas10/css-color-names
A JSON Object of css color names mapped to their hex value
https://github.com/bahamas10/css-color-names
Last synced: 1 day ago
JSON representation
A JSON Object of css color names mapped to their hex value
- Host: GitHub
- URL: https://github.com/bahamas10/css-color-names
- Owner: bahamas10
- License: mit
- Created: 2013-03-15T09:09:50.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2019-02-19T18:37:47.000Z (almost 6 years ago)
- Last Synced: 2024-12-15T00:04:37.771Z (9 days ago)
- Language: JavaScript
- Size: 9.77 KB
- Stars: 144
- Watchers: 8
- Forks: 78
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
css-color-names
===============A JSON Object of css color names mapped to their hex value
Usage
-----``` js
var csscolors = require('css-color-names');
console.dir(csscolors);
```yields
``` json
{
"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