Less – Color Operation


LESS – Color Operation


”;


Description

LESS provides number of useful operation functions to alter and manipulate colors in different ways and take parameters in the same units. LESS supports some of the Color Operation Functions as shown in the table below −

Sr.No. Directives & Description
1 saturate

It varies the intensity or saturation of a color in the element.

2 desaturate

It decreases the intensity or saturation of a color in the element.

3 lighten

It increases the lightness of a color in the element.

4 darken

It varies the intensity or saturation of a color in the element.

5 fadein

It increases the opacity for selected elements.

6 fadeout

It decreases the opacity for selected elements.

7 fade

It is used to set the transparency of a color for selected elements.

8 spin

It is used to rotate the angle of a color for selected elements.

9 mix

It mixes the two colors along with the opacity.

10 tint

It mixes the color with white as you decrease the proportion of the color.

11 shade

It mixes the color with black as you decrease the proportion of the color.

12 greyscale

It discards the saturation from a color in the selected elements.

13 contrast

It sets the contrast for the colors in the element.

Advertisements

”;

Leave a Reply

Your email address will not be published. Required fields are marked *