colors-to-less-operations

0.1.1 • Public • Published

Colors to less operations

Transforms colors to less operations that needs to be applied to the base color to get the desired color.

Currently colors parsed only as HEX: #fff, ccc, #ceceff.

Usage

c2o = require("colors-to-less-operations");

base      = "#ff8000";
dependent = "#bf8040";

// will become "saturate(#ff8000, 20%); // #bf8040"
dependentAsOperations = c2o.transformToLessOperations(base, dependent);

Tests

Run make test.

License & copyright

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.1.1
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.1.1
    1
  • 0.1.0
    0

Package Sidebar

Install

npm i colors-to-less-operations

Weekly Downloads

1

Version

0.1.1

License

MIT

Last publish

Collaborators

  • garex