diff --git a/src/hooks/use-theme.ts b/src/hooks/use-theme.ts index e0dbbcc..cc19c4c 100644 --- a/src/hooks/use-theme.ts +++ b/src/hooks/use-theme.ts @@ -9,11 +9,9 @@ const readStoredTheme = (): Theme => { const saved = localStorage.getItem(STORAGE_KEY); if (saved === 'light' || saved === 'dark') return saved; } catch { - // Private mode / blocked storage — fall through to the system preference. + // Private mode / blocked storage — fall through to default. } - return window.matchMedia('(prefers-color-scheme: dark)').matches - ? 'dark' - : 'light'; + return 'light'; }; const applyTheme = (theme: Theme) => {