LESS plugin that lets you specify colors in HSLuv color space.
See http://hsluv.org for details.
With npm
:
npm i -D less-hsluv
…or clone the repo, then run npm i
.
@hue : 180;
@saturation : 75;
@lightness : 66;
@my-color : hsluv(@hue, @saturation, @lightness);
Creates new plugin instance.
Arguments:
@h : 0..360
,@s : 0..100
,@l : 0..100
.
Aliases: husl
.
Arguments: see above.
Aliases: huslp
, hpl
.
Arguments:
@h : 0..360
,@s : 0..100
,@l : 0..100
,@a : 0..1
.
Aliases: husla
.
Arguments:
@h : 0..360
,@s : 0..100
,@l : 0..100
,@a : 0..1
.
Aliases: huslpa
, hpla
.
const LessHsluv = require('less-hsluv');
const ExtractTextPlugin = require('extract-text-webpack-plugin');
module.exports = {
...foo,
module : {
rules : [
{
test : /\.less$/,
use : ExtractTextPlugin.extract({
use : [
'css-loader',
{
loader : 'less-loader',
options : {
plugins : [new LessHsluv()],
},
}
],
fallback : 'style-loader/useable'
})
}
]
},
...bar
};