Skip to content

princejwesley/is-css-color

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Check if a given string is css compatible color value

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published