Closed hagenburger closed 6 years ago
No plans to expand on non-explicit relationships.
But I would expect this sort of thing to work and it currently doesn't 😢 I created https://github.com/MadLittleMods/postcss-css-variables/issues/55 to track it.
:root {
--color: blue;
}
.my-theme {
--color: red;
}
:root,
.my-theme {
a {
color: var(--color);
}
}
Thanks a lot for your project and the work you put into it. This is very useful!
Do you plan to support context for variables in a way similar how media queries and hover effects work?
Existing functionality:
New functionality: