package
A list of all CSS color keywords.
npm install css-color-keywordsGitHub-flavored package documentation.
Across all versions.
Download trend unavailable.
Runtime metadata.
Tagged topics.
A list of all CSS color keywords.
This list contains all CSS color keywords specified in:
See MDN for an overview of all colors.
$ npm install css-color-keywords --saveconst cssColorKeywords = require('css-color-keywords')
cssColorKeywords.black // #000000
cssColorKeywords.orange // #ffa500Returns 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).
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.
css-color-keywords is licensed under the ISC license.
See LICENSE for the full license.