A silly project that exports each color as it's own package under @swatch
scope on npm. Example usage:
npm install --save @swatch/crimson
const {hex} = require('@swatch/crimson');
instance.setBackgroundColor(hex);
Also exposes string
sub-package for string version of these colors:
const {hex} = require('@swatch/crimson/string');
document.body.style.backgroundColor = hex;
List of all supported color formats.
hsl
hsv
hwb
cmyk
xyz
lab
lch
hex
keyword
ansi16
ansi256
hcg
apple
gray
rgb
hsl
hex