My Sass variable is mapped to an hsl value, but when I try to use it with hsla to add transparency, it doesn't work. This is what I'm trying to do:
$white:hsl(100, 100%, 100%);
.thing{
color:hsla($white,.9);
}
When using gulp-sass to build my CSS, I encounter this error: "required parameter $lightness is missing in call to function hsla on line {line number} in {file's path}"
If I replace hsla
with rgba
, it works fine. However, I prefer to keep all my colors in hsl format. Is there a workaround for this issue or is it a problem specific to Sass?