Nonstop Progressive Marxism

    husl-sass

    1.0.0 • Public • Published

    HUSL Sass

    Build Status Dependency Status devDependency Status Package Version

    Pure Sass HUSL 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

    This depends on mathsass, and requires an npm setup that allows multilevel sass imports. Eyeglass may be a method for this.

    npm install husl-sass
    

    Example

    @import "../node_modules/husl-sass/src/husl";
     
    .example {
      color: husl(23.2, 83.4%, 43.7%);
      background-color: huslp(250.4, 100%, 59.1%);
    }

    Compiled demo generated from demo.scss.

    Testing

    Tested with apexskier's bootcamp. Continuous integration tests run in the last few versions of ruby sass and node-sass.

    You can locally test after installing npm dependencies. Just compile test/specs.scss with your favorite sass compiler. If it fails on master, add your compiler to the travis config and submit a PR or raise an issue.

    Support

    Have a question or need help? Tweet @apexskier.

    License

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


    by Cameron Little · Github · Twitter · CodePen

    Install

    npm i husl-sass

    DownloadsWeekly Downloads

    0

    Version

    1.0.0

    License

    MIT

    Last publish

    Collaborators

    • apexskier