In the official docs there is a function called contrast, would be pretty cool if you would support that function ;) - it allows to invert colors easily :D
contrast(@color1, @darkcolor, @lightcolor);
// return @darkcolor if @color1 is >50% luma (i.e. is a light color),
// otherwise return @lightcolor
ref.: http://lesscss.org/#-color-functions
In the official docs there is a function called contrast, would be pretty cool if you would support that function ;) - it allows to invert colors easily :D
contrast(@color1, @darkcolor, @lightcolor);
// return @darkcolor if @color1 is >50% luma (i.e. is a light color),
// otherwise return @lightcolor
ref.: http://lesscss.org/#-color-functions