Creates a theme by defining CSS variables on the root element. Returns a mirrored object containing the CSS variable references (var(--name)).
var(--name)
The theme configuration object.
An object with the same structure but values replaced by CSS variable references.
const theme = createTheme({ colors: { primary: "#007bff" }});// In component:div().style({ color: theme.colors.primary }); Copy
const theme = createTheme({ colors: { primary: "#007bff" }});// In component:div().style({ color: theme.colors.primary });
Creates a theme by defining CSS variables on the root element. Returns a mirrored object containing the CSS variable references (
var(--name)).