Slide 9
Slide 9 text
Color functions
• Less provides the following color functions:
– darken() and lighten(), which add some black or white
– saturate() and desaturate(), to make a color more colorful or more grayscale
– Fadein() and fadeout, to increase or reduce transparency
– Spin(), which modifies the hue of the color
●
Examples:
@borderColor: desaturate(@defaultColor,100%)
@borderColor: darken(desaturate($defaultColort,100%),20%)
@defaultColor:spin(@mycolor1,100)
LESS CSS - A BASIC INTRODUCTION 9