1. css-color-names
A JSON Object of css color names mapped to their hex value
css-color-names
Package: css-color-names
Created by: bahamas10
Last modified: Tue, 14 Jun 2022 04:31:17 GMT
Version: 1.0.1
License: MIT
Downloads: 14,816,706
Repository: https://github.com/bahamas10/css-color-names

Install

npm install css-color-names
yarn add css-color-names

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

RELATED POST

Enhancing Vue.js Development: Harnessing the Potential of Vue-Loader

Enhancing Vue.js Development: Harnessing the Potential of Vue-Loader

Simplify Data Validation in Vue.js: A Step-by-Step Guide to Using Regex

Simplify Data Validation in Vue.js: A Step-by-Step Guide to Using Regex

Troubleshooting Made Easy: Common Issues and Solutions with vue-loader Without vue-cli

Troubleshooting Made Easy: Common Issues and Solutions with vue-loader Without vue-cli

Optimizing Webpack 4 with Vue CLI 3: Disabling the Cache-Loader

Optimizing Webpack 4 with Vue CLI 3: Disabling the Cache-Loader

Step-by-Step Guide: How to Add a Function to Your Vuex Plugin

Step-by-Step Guide: How to Add a Function to Your Vuex Plugin