2 Comments
User's avatar
Albert's avatar

That is a great idea. Not tested, but what about extending it to

:root {

--hue: 190;

--saturation: 90%;

--lightness: 40%;

--alpha: 100%;

}

.button {

background-color: hsl(var(--hue) var(--saturation) var(--lightness) / var(--alpha));

}

Expand full comment
Shruti Balasa's avatar

Yes, can be done.

Expand full comment