Skip to content
0

katanakit-js / useGetThemeMode

Function: useGetThemeMode() ​

ts
function useGetThemeMode(): "system" | "light" | "dark";

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

Returns the current theme mode (may be "system").

Returns ​

"system" | "light" | "dark"

The active ThemeMode.

Example ​

ts
const current = useGetThemeMode(); // "light" | "dark" | "system"

Released under the MIT License.