XF 2.1 Is there a helper to adjust opacity of a style property color?

Warchamp7

Active member
In XenForo 1, we had {xen:helper rgba, <color>, <opacity>} for adjusting a color to be a different opacity

Is there a similar helper in XenForo 2?
 
Solution
This should work fine:

Code:
fade(@xf-paletteAccent2, 20%)

The above example, paletteAccent2 rgb value is:

rgb(242, 147, 13)
Using that LESS function, it turns it into
rgba(242,147,13,0.2)

UhZk1Jc.webp
This should work fine:

Code:
fade(@xf-paletteAccent2, 20%)

The above example, paletteAccent2 rgb value is:

rgb(242, 147, 13)
Using that LESS function, it turns it into
rgba(242,147,13,0.2)

UhZk1Jc.webp
 
Solution
Back
Top Bottom