icc

is-css-color

Check if a given string is css compatible color value

Showing:

Popularity

Downloads/wk

1.4K

GitHub Stars

2

Maintenance

Last Commit

6yrs ago

Contributors

0

Package

Dependencies

0

Size (min+gzip)

1.1KB

License

MIT

Type Definitions

Tree-Shakeable

No?

Categories

Readme

is-css-color

Build Status npm version license

Check if a given string is css compatible color value.

Install

npm install is-css-color

Usage

var isCSSColor = require('is-css-color');

isCSSColor('#FFF'); // true
isCSSColor(rgba(255, 100, 123, 0.5)); // true
isCSSColor(hsl(25, 60%, 15%)); // true

License

MIT License

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100