A JSON with color names and its values. Based on http://dev.w3.org/csswg/css-color/#named-colors.

NPM

import colors from 'color-name';
colors.red // [255,0,0]

<a href="LICENSE"><img src="https://upload.wikimedia.org/wikipedia/commons/0/0c/MIT_logo.svg" width="120"/></a>

color-name - Installation

To install color-name via this registry, you'll need to install via the --registry parameter with your package manager.

n

NPM

npm install color-name --registry https://js.registry.sudovanilla.org

Learn more about the --registry parameter.

Yarn

yarn config set registry https://js.registry.sudovanilla.org
yarn install color-name

Learn more about the config option.

PNPM

pnpm install color-name --registry https://js.registry.sudovanilla.org

Learn more about the --registry parameter.

Bun Logo

Bun

bun install color-name --registry https://js.registry.sudovanilla.org

Learn more about the --registry parameter.

Learn more about setting this up in your bunfig.toml configuration.


For Deno, add the following to your .npmrc file in your directory:

registry="https://js.registry.sudovanilla.org"

Then run the deno install command.

color-name - Download

Download Tarball (v2.1.0)

Integrity sha512-1bPaDNFm0axzE4MEAzKPuqKWeRaT43U/hyxKPBdqTfmPF+d6n7FSoTFxLVULUJOmiLp01KjhIPPH+HrXZJN4Rg==
SHASUM 0b677385c1c4b4edfdeaf77e38fa338e3a40b693
Tarball https://js.registry.sudovanilla.org/color-name/-/color-name-2.1.0.tgz