From a0a2a6fe97139c25c36077b1d25a39b7293506c9 Mon Sep 17 00:00:00 2001 From: alireza Date: Thu, 27 Aug 2026 11:34:26 +0330 Subject: [PATCH] chore: set light theme as default --- src/hooks/use-theme.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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) => {