JSPM

color-name-list

1.0.3
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 21224
  • Score
    100M100P100Q142643F
  • 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 🎨

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

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 === '#ffffff')
console.log(someColor.name) // => white