Skip to main content

Function: registerAppTheme()

function registerAppTheme(theme: AppTheme): void

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",
})

## Defined in

[src/plugin/registry.tsx:1007](https://github.com/kubernetes-sigs/headlamp/blob/36013daa6fb62686528e4142c8663ecc34a684aa/frontend/src/plugin/registry.tsx#L1007)