Question
Any way to use CSS Variables in SASS functions for hsl() transparency?
I have defined a color in my root:
:root {
--purple: hsl(266, 35%, 70%);
}
And I'm trying to use it in a SASS function to give it transparency:
.purple {
background: transparentize(#{"var(--primary-color)"}, 0.7)
}
Does anyone know of a way to get this to work? Or is it just not possible?
46 59532
46