Skip to main content

Function: registerAppTheme()

function registerAppTheme(theme: AppTheme): void;

Defined in: plugin/registry.tsx:1007

Add a new theme that will be available in the settings. Theme name should be unique

Parameters

ParameterTypeDescription
themeAppThemeApp Theme definition

Returns

void

Example

registerAppTheme({
name: "My Custom Theme",
base: "light",
primary: "#ff0000",
secondary: "#333",
})