Socket
Socket
Sign inDemoInstall

css-color-keywords

Package Overview
Dependencies
0
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Protect your apps from supply chain attacks

Install

css-color-keywords

A list of all CSS color keywords.

    1.0.0latest
    GitHub
    npm

Version published
Maintainers
1
Weekly downloads
5,157,536
decreased by-1.76%

Weekly downloads

Readme

Source

css-color-keywords

A list of all CSS color keywords.

This list contains all CSS color keywords specified in:

  • CSS Level 1
  • CSS Level 2 (Revision 1)
  • CSS Color Module Level 3
  • CSS Color Module Level 4

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.

  • v1.0.0 (2017-01-20): Initial release

License

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

Keywords

FAQs

Last updated on 20 Jan 2017

Did you know?

Socket installs a GitHub app to automatically flag issues on every pull request and report the health of your dependencies. Find out what is inside your node modules and prevent malicious activity before you update the dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc