Skip to content

meodai/color-names

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

50 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

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.

Sources πŸ—’

Installation JS πŸ“¦

yarn

yarn add color-name-list

NPM

npm install color-name-list --save

Usage 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