grunt-colors-to-less-operations

0.2.5 • Public • Published

grunt-colors-to-less-operations

Converts colors to less color operation functions

Install

npm install grunt-colors-to-less-operations --save-dev

Usage

In Gruntfile.js write this:

less_colors: {
  start: {
    options: {
      funcName: 'cless'
    },
    files: {
      'src/less/variables.less': ['src/less/variables.less']
    }
  }
}

After that you can use it like this:

@navy: #81b3d2;
@btn-nav-hvr: name_of_your_function(@navy, #5fac53);

will be converted right in your file to:

@btn-nav-hvr: spin(desaturate(darken(@navy, 16%), 12%), -91); // desire: #5fac53 - result: #60ad54

Readme

Keywords

Package Sidebar

Install

npm i grunt-colors-to-less-operations

Weekly Downloads

0

Version

0.2.5

License

none

Last publish

Collaborators

  • dudagod