Nutritious Pomegranate Muffins
    Have ideas to improve npm?Join in the discussion! »

    hsluv-sass

    2.0.0 • Public • Published

    HSLuv Sass

    Build Status Dependency Status devDependency Status Package Version

    Pure Sass HSLuv implementation.

    This package attempts to match the canonical implementation as closely as possible, but not break sass best practices and common patterns. Important deviations include

    • RGB color components range from 0 to 255, not 0 to 1
    • Testing precision is lowered significantly

    Usage

    Some docs for you to read.

    Installation

    npm install hsluv-sass
    

    Example

    Create demo.csss:

    @import "./node_modules/hsluv-sass/src/hsluv";
    
    .example {
      color: hsluv(23.2, 83.4%, 43.7%);
      background-color: hpluv(250.4, 100%, 59.1%);
    }
    $ npx sass demo.scss 
    .example {
      color: #a84c27;
      background-color: #738fc0;
    }

    Testing

    Tested with True. Continuous integration tests againsts latest and lts Node.js.

    You can locally test after installing npm dependencies. Just run npm test.

    Support

    Have a question or need help? Open an issue

    License

    This project is provided under the terms of the MIT License.

    Original version by Cameron Little · Github · Twitter · CodePen

    Install

    npm i hsluv-sass

    DownloadsWeekly Downloads

    2

    Version

    2.0.0

    License

    MIT

    Unpacked Size

    14.4 kB

    Total Files

    10

    Last publish

    Collaborators

    • avatar