Let's say that I have a big project and that I'm going to customize an element many times within that project, so every time I need to go into CSS and declare that element by its id or class and start customization.
#elemen{...
So what if I had to change the id of that element, isn't going to be much easier if it was declared in CSS as a custom property which I can change easily any time I want.
I tried to do so as follow:
:root{
--container: "container";
}
body #var(--container){...
But obviously, that doesn't work. Another thing I would really like if it was available is to use these custom properties as keys in anywhere at the CSS document so I could get more flexibility on dynamically changing key values such as @keyvalues as an example as the following:
@keyframes name{
0%{... }
var(--keyframe1){... }
var(--keyframe2){... }
So is this already possible in CSS or not yet and if not then is there any other way so we can go around it?