Skip to content
0

katanakit-js / useSetThemeMode

Function: useSetThemeMode() ​

ts
function useSetThemeMode(newMode): void;

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

Sets the theme mode and persists it to storage.

Parameters ​

ParameterTypeDescription
newMode"system" | "light" | "dark"The desired theme mode ("light", "dark", or "system").

Returns ​

void

Example ​

ts
useSetThemeMode("dark");

Released under the MIT License.