Skip to main content
Version: 1.0.0

UI Theme

Using the setTheme(...) user can change the Unfolded Studio theme to dark or light, and add more customization options.

/**
* Sets the theme of the UI.
* @param theme New UI theme settings.
*/
setTheme(theme: ThemeUpdateProps): void;
/**
* Map UI theme settings that support customization.
*/
type ThemeUpdateProps = {
/** UI theme preset name. */
preset: 'light' | 'dark';
/** UI theme customization options. */
options?: {
/** Background color of UI elements. */
backgroundColor?: CSSColor;
};
};

Parameters‚Äč

  • NameDescription
    theme string
    Choice between light / dark theme
    options.backgroundColor string
    Background color