Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

color-to-hex

arshinalbab18MIT1.0.0

A list of color names and its hex values

color-name, color, color-keyword, keyword, colorname-to-hex, color-to-hex

readme

A JSON with color names and its hex values.

NPM

var colors = require('color-to-hex');
colors.red //"#ff0000"