css-spec-colors
A JSON with all CSS color keywords and their corresponding values in hex, RGB and HSL. Color list generated from W3C spec (https://www.w3.org/TR/css-color-4/#named-colors).
Install
Using npm:
$ npm install css-spec-colors
Using yarn:
$ yarn add css-spec-colors
Usage
import colors from 'css-spec-colors';
console.log(colors);
console.log(colors['aliceblue']);
console.log(colors['aliceblue'].hex);
console.log(colors['aliceblue'].rgb);
console.log(colors['aliceblue'].hsl);
Colors are sorted alphabetically.
License
MIT © Aarón García