项目原始demo,不改动
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

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