Package Exports
- color-name-list
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (color-name-list) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
color-names 🎨
A semi manual merge of different color name lists. Try it yourself or see the full list.
Process
My goal is to create a as big as possible color name list. I merged different lists, modified the names when they where the same but had different hex values, and I shifted the colors a bit when the same color had different names.
Submit a name
Sources
- Wikipedia list of named colors
- CSS/HTML Color Names
- ntc.js
- pantone from color namer
- htmlcsscolor.com
- OSX Crayons
- Crayola Crayon names
- User submited color names.
Installation JS
yarn
yarn add color-name-listNPM
npm install color-name-list --saveUsage JS:
import namedColors from 'color-name-list';
let someColor = namedColors.find(color => color === '#ffffff')
console.log(someColor.name) // => white