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 🎨
nom d'une couleur!
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 but the same value.
Submit a name 🌈
Sources 🗒
- User submissions.
- Wikipedia list of named colors
- CSS/HTML Color Names
- ntc.js
- pantone
- htmlcsscolor.com
- OSX Crayons
- Crayola Crayon 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.hex === '#ffffff')
console.log(someColor.name) // => white
Create a new build 🔨
npm install && npm run build