cac845ab11a5f340e11bae06a25a96d6dd79841e619b9f11cfd61bb973c003b3310b08905d2505ca2cbf297da097bf1351d5970d8bb0afb1867b51402ec040 787 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. css-color-names
  2. ===============
  3. A JSON Object of css color names mapped to their hex value
  4. Usage
  5. -----
  6. ``` js
  7. var csscolors = require('css-color-names');
  8. console.dir(csscolors);
  9. ```
  10. yields
  11. ``` json
  12. {
  13. "aqua": "#00ffff",
  14. "aliceblue": "#f0f8ff",
  15. "antiquewhite": "#faebd7",
  16. "black": "#000000",
  17. "blue": "#0000ff",
  18. ...
  19. }
  20. ```
  21. How was this list generated?
  22. ----------------------------
  23. In the Makefile you'll see a line like this:
  24. ./getcolors.sh | ./stringify.js > $(FILE)
  25. The first command scrapes a site for the list,
  26. and outputs the results separated by newlines. The
  27. second command creates the JSON object and outputs
  28. it to stdout, which then gets redirected into
  29. `css-color-names.json`
  30. Installation
  31. ------------
  32. npm install css-color-names
  33. License
  34. -------
  35. MIT