Hey everybody, I’m a beginner in CSS and would like to improve my understanding and skills about it, so I have this problem to be solved.
I wanted to define some variables for colors in my css, something like:
:root {
--greenish: #44bec7;
}
and then apply it to certain elements, e.g.:
p {
background-color: var(--greenish);
}
Now, I would like to add the same ‘var(–greenish)’ but with Alfa Value for a specific element.
Is it possible to modify the var() locally in that way? If so, how? If not, what would be the best option to achieve what I want without messing up so much the code?
Thanks in advance!