is-css-color

    1.0.0 • Public • Published

    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

    Install

    npm i is-css-color

    DownloadsWeekly Downloads

    1,359

    Version

    1.0.0

    License

    MIT

    Last publish

    Collaborators

    • princejwesley