JSPM

is-css-color

1.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 184
  • Score
    100M100P100Q100199F
  • License MIT

Check if a given string is css compatible color value

Package Exports

  • is-css-color

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (is-css-color) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

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