/ archiveofbelonging.org / back / node_modules / css-color-keywords /

[ICO]NameLast modifiedSizeDescription
[PARENTDIR]Parent Directory  -  
[   ]LICENSE8 years ago747 7375cab EXHIBTION: fix overflow ellipsis cutoff [كارل مبارك]
[TXT]README.md8 years ago1.3Kf12eb36 documentaiton updates [كارل مبارك]
[   ]colors.json8 years ago3.7K 
[   ]index.js8 years ago 56  
[   ]package.json2 years ago1.5K7375cab EXHIBTION: fix overflow ellipsis cutoff [كارل مبارك]
README.md

css-color-keywords

A list of all CSS color keywords.

This list contains all CSS color keywords specified in:

See MDN for an overview of all colors.

Installation

$ npm install css-color-keywords --save

Usage

const cssColorKeywords = require('css-color-keywords')

cssColorKeywords.black // #000000
cssColorKeywords.orange // #ffa500

Returns an object where each key is a keyword (e.g. black) and the value is the keyword’s RGB hex value (e.g. #000000).

Even though CSS color keywords are case-insensitive, this list only contains lowercase keywords (and returns lowercase RGB hex values).

Changelog

This project follows Semantic Versioning 2.

This list aims to always include all CSS color keywords. If new keywords are specified, only the minor version will be bumped.

License

css-color-keywords is licensed under the ISC license. See LICENSE for the full license.

Apache/2.4.38 (Debian) Server at www.karls.computer Port 80