API reference
defineThemeVars
API reference for the The `defineThemeVars` method
Create variables
to be used in data-theme and media or container.
Example use:
If not nested, it will be written to :root
.
If nested, default will be written to :root
, and the rest will be put into data-theme
as a string. In the case of media
or container
, it will be wrapped in a selector.