You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 10, 2022. It is now read-only.
I have set a variable called --color-pale to "225, 100%, 94%" so that when I put it inside a hsl tag, i can change the opacity of the color with the variable inside the hsl tag eg. background-color: hsl(var(--color-pale), .5) but when it compiles, it comes up with the error below. The css used is the second screenshot.
It could just be me being an idiot but any help would be apreciated, thanks.
The text was updated successfully, but these errors were encountered:
I am having the same problem. variables are able to hold complete color information like --variable-name: rgb(128 128 128) so that color: var(--variable-name) works but if the variable is set to --variable-2: 128 128 128; you cannot use color: rgb(var(--variable-2)); without getting a compile error about $green not being defined.
I really wish this would work to allow me to use rgba and simply pick the opacity in the code.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I have set a variable called --color-pale to "225, 100%, 94%" so that when I put it inside a hsl tag, i can change the opacity of the color with the variable inside the hsl tag eg.
background-color: hsl(var(--color-pale), .5)
but when it compiles, it comes up with the error below. The css used is the second screenshot.It could just be me being an idiot but any help would be apreciated, thanks.
The text was updated successfully, but these errors were encountered: