Check if a given string is css compatible color value
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
.travis.yml
LICENSE
README.md
index.js
package.json
test.js

README.md

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