How can I add alpha values to variables in css?
Like this.
color: var(--color-alt) + 80
So for example if I set a color like #32a6a8
as --color-alt & then I also want to have a transparency of 50% for that color applied (alpha code for 50% transparency is 80 - that's why its there var(--color-alt) + 80
).
The variable is required since this is an angular app & it needs to set the color values dynamically with colors having transparency of 50%.
So is there a way to do this is native css?