UseGetThemeMode
katanakit-js / useGetThemeMode
Function: useGetThemeMode()
Section titled “Function: useGetThemeMode()”function useGetThemeMode(): "system" | "light" | "dark";Defined in: infrastructure/theme/theme.service.ts:160
Returns the current theme mode (may be "system").
Returns
Section titled “Returns”"system" | "light" | "dark"
The active ThemeMode.
Example
Section titled “Example”const current = useGetThemeMode(); // "light" | "dark" | "system"