grunt-colors-to-less-operations
v0.2.5
Published
Converts colors to less color operation functions
Downloads
12
Readme
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