Thanks, I will try that. Do hsl lightness values of 0 always need ‘%’ or just when used as arguments for functions? VSC rendered the color preview, was that just VSC bring permissive?
A percentage or the keyword none (equivalent to 0% in this case).
The % symbol is necessary for specifying the percentage.
Have a look at the documentation for hsl for more details and examples.
I am not too familiar with Visual Studio Code, but syntax highlighting may make the color previews work even though the syntax is not valid because of the missing symbol. VSC may be smart enough to figure out your intent, but it won’t automatically insert the missing percentage symbol.