Using LESS, I know that I can change the saturation or tint of a color variable. That looks like this:
background: lighten(@blue, 20%);
I want to change the alpha opacity of my color, though. Preferably like this:
background: alpha(@blue, 20%);
Is there a simple way to do this in LESS?
For completeness
fade
Set the absolute transparency of a color. Can be applied to colors whether they already have an opacity value or not.
fadein
Decrease the transparency (or increase the opacity) of a color, making it more opaque.
fadeout
Increase the transparency (or decrease the opacity) of a color, making it less opaque. To fade in the other direction use fadein.
View Complete Documentation
The site documentation gives the answer:
The function name is
fade
notalpha
according to that document.