Function: registerAppTheme()
function registerAppTheme(theme: AppTheme): void
Add a new theme that will be available in the settings. Theme name should be unique
Parameters
| Parameter | Type | Description |
|---|---|---|
theme | AppTheme | App Theme definition |
Returns
void
Example
registerAppTheme({
name: "My Custom Theme",
base: "light",
primary: "#ff0000",
secondary: "#333",
})
## Defined in
[src/plugin/registry.tsx:993](https://github.com/kubernetes-sigs/headlamp/blob/937b35b480d6368e070a7b41daaa26b2920267e7/frontend/src/plugin/registry.tsx#L993)