Can anyone help me understand why I am having trouble assigning block-level CSS variables using values from SASS? Specifically, the line
color: hsl(3, 75%, var(--main-color-l));
is not producing any output. My setup involves a static site generator with SCSS pipes.
.reveal .palette1 {
--main-color-h: $red-h;
--main-color-s: $red-s;
--main-color-l: $red-l;
--main-color-o: $red-o;
h2 {
/**/color: hsl(3, 75%, var(--main-color-l));/**/
}
h4 {
color: hsla($red-h, $red-s, $red-l * 1.3, $red-o);
}
}