Sets the color scheme theme and/or theme variant.
This can be called with either a string for backwards compatibility, or an object to set both theme and themeVariant.
Example Payloads:
// String format (backwards compatible)"dark""light""system"// Object format{ "theme": "dark" }{ "theme": "light", "themeVariant": "violet" }{ "theme": "system" } Copy
// String format (backwards compatible)"dark""light""system"// Object format{ "theme": "dark" }{ "theme": "light", "themeVariant": "violet" }{ "theme": "system" }
Sets the color scheme theme and/or theme variant.
This can be called with either a string for backwards compatibility, or an object to set both theme and themeVariant.
Example Payloads: