Saltar al contenido principal

Function: useInitTheme()

useInitTheme(options?): void

Defined in: src/infrastructure/theme/theme.service.ts:112

Initializes the theme system. Reads the stored preference (or falls back to defaultMode), applies the theme, and registers a system color-scheme listener for "system" mode.

Parameters

options?

ThemeOptions = {}

Configuration for the theme system.

Returns

void

Example

useInitTheme({
defaultMode: "dark",
storageKey: "app-theme",
onChange: (mode, resolved) => console.log(mode, resolved),
});