JSPM

color-name-list

1.4.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 22866
  • Score
    100M100P100Q139567F
  • License MIT

long list of color names

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 🗒

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