0.2.5 • Published 9 years ago

grunt-colors-to-less-operations v0.2.5

Weekly downloads
1
License
-
Repository
github
Last release
9 years ago

grunt-colors-to-less-operations

Converts colors to less color operation functions

npm.io

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
0.2.5

9 years ago

0.2.4

9 years ago

0.2.3

9 years ago

0.2.2

9 years ago

0.2.1

9 years ago

0.1.1

9 years ago

0.1.0

9 years ago