@ff6347/named-css-colors
TypeScript icon, indicating that this package has built-in type declarations

0.1.1-0 • Public • Published

@ff6347/named-css-colors

List of named CSS colors with some helper functions.

Description

There are many packages for named CSS colors. This one is mine. Used in:

API might change. Still not sure what is the best way to structure the data.

Install

npm install @ff6347/named-css-colors

Usage

import { colors } from "@ff6347/named-css-colors";

console.log(colors);

Helper functions

import {
	getHue,
	hexToRgb,
	rgbToHsl,
	getBrightness,
} from "@ff6347/named-css-colors";

const color = colors.red;

const hue = getHue(colors.hashmap.black.hex);

Readme

Keywords

none

Package Sidebar

Install

npm i @ff6347/named-css-colors

Weekly Downloads

14

Version

0.1.1-0

License

MIT

Unpacked Size

92.6 kB

Total Files

7

Last publish

Collaborators

  • fabian.moron.zirfas