Gets the current theme preferences from the system and local storage.
An object containing the system and local theme preferences.
export async function getCurrentTheme(): Promise<ThemePreferences> { const currentTheme = await window.themeMode.current(); const localTheme = storage.getItem(THEME_KEY) as ThemeMode | null; return { system: currentTheme, local: localTheme, };} Copy
export async function getCurrentTheme(): Promise<ThemePreferences> { const currentTheme = await window.themeMode.current(); const localTheme = storage.getItem(THEME_KEY) as ThemeMode | null; return { system: currentTheme, local: localTheme, };}
Gets the current theme preferences from the system and local storage.