I am confused about the difference between the lightness, lighten, and darken functions. How do they change color value? Is it change color opacity/alpha value? What the difference between them?
2
votes
1 Answers
4
votes
With Darken and Lighten, the color which you use gets parsed into HSL. HSL is a different color system which gets the Color from three different values "Hue", "Saturation" and "Lightness". In the Lighten or darken Function, the Lightness of the HSL Color gets manipulated.
The lightness function returns the "lightness" value of the calculated HSL Color.
You can read a bit about SASS Color functions here