Alternatives
At the moment I copied a theme to my project and modified it to use the variables. It would be great to be able to use this out of the box. Your themes could look like setting the variables instead of a copy of the styling.
This solution should be available next to the current themes as not all browsers support this yet.
Motivation When writing a dark mode for my application I wanted to use css variables to switch the colours when pressing a button.
Description This would look something like this:
And switching using a theme attribute on the root element.
Alternatives At the moment I copied a theme to my project and modified it to use the variables. It would be great to be able to use this out of the box. Your themes could look like setting the variables instead of a copy of the styling.
This solution should be available next to the current themes as not all browsers support this yet.