{less} is a CSS extension that enables the writing of less code, making it faster to code, easier to maintain, and reusable across projects. It features variables, mixins, nested rules, operations, and color functions for enhanced styling capabilities. The document also outlines how to integrate {less} within Drupal and various alternatives for compiling it.
Colour operations
1 lighten(@color, 10%); // a color 10% *lighter*
2 darken(@color, 10%); // a color 10% *darker*
3
4 saturate(@color, 10%); // a color 10% *more* saturated
5 desaturate(@color, 10%); // a color 10% *less* saturated
6
7 fadein(@color, 10%); // a color 10% *less* transparent
8 fadeout(@color, 10%); // a color 10% *more* transparent
9
10 spin(@color, -10%); // return a color with a 10 degree
larger in hue than @color
11 spin(@color, 10%); // return a color with a 10 degree
smaller hue than @color
61.
Huh?
Colors are firstconverted to the
HSL color-space
And then manipulated at the channel level