Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    rework-colorpublic

    Rework Color

    Augmented color manipulations for rework

    Installation

    npm install rework-color

    Usage

    var rework = require('rework'),
        read = require('fs').readFileSync,
        color = require('rework-color'),
        css;
     
        css = rework(read('entry.css', 'utf8'))
                .use(color)
                .toString();
     
        console.log(css);

    Methods

    • Lighten

    var(blue).lighten(0.5); // hsl(230, 50%, 50%) -> hsl(230, 50%, 75%)

    • Darken

    var(blue).darken(0.5); // hsl(230, 50%, 50%) -> hsl(230, 50%, 25%)

    Keywords

    none

    install

    npm i rework-color

    Downloadslast 7 days

    4

    version

    0.1.2

    license

    none

    repository

    github.com

    last publish

    collaborators

    • avatar