With the move to web components and lit in particular, our use of css variables is likely to increase. To ensure variables defined outside components are inherited by them, we should move variable definitions to the html (or :root) element so that they can be inherited by all light and shadow DOM nodes.
With the move to web components and lit in particular, our use of css variables is likely to increase. To ensure variables defined outside components are inherited by them, we should move variable definitions to the html (or :root) element so that they can be inherited by all light and shadow DOM nodes.