css-color-keywords

WebJar for css-color-keywords

License

License

ISC
Categories

Categories

KeY Data Data Formats Formal Verification
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

css-color-keywords
Last Version

Last Version

1.0.0
Release Date

Release Date

Type

Type

jar
Description

Description

css-color-keywords
WebJar for css-color-keywords
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/sonicdoe/css-color-keywords

Download css-color-keywords

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.npm/css-color-keywords/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>css-color-keywords</artifactId>
    <version>1.0.0</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/css-color-keywords/
implementation 'org.webjars.npm:css-color-keywords:1.0.0'
// https://jarcasting.com/artifacts/org.webjars.npm/css-color-keywords/
implementation ("org.webjars.npm:css-color-keywords:1.0.0")
'org.webjars.npm:css-color-keywords:jar:1.0.0'
<dependency org="org.webjars.npm" name="css-color-keywords" rev="1.0.0">
  <artifact name="css-color-keywords" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='css-color-keywords', version='1.0.0')
)
libraryDependencies += "org.webjars.npm" % "css-color-keywords" % "1.0.0"
[org.webjars.npm/css-color-keywords "1.0.0"]

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

There are no modules declared in this project.

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.

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

License

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

Versions

Version
1.0.0