diff --git a/apps/web/src/components/shell/Topbar.tsx b/apps/web/src/components/shell/Topbar.tsx index 777903c..735f821 100644 --- a/apps/web/src/components/shell/Topbar.tsx +++ b/apps/web/src/components/shell/Topbar.tsx @@ -30,10 +30,8 @@ function useTheme(): [boolean, () => void] { } catch { /* 무시 */ } - return ( - typeof window !== "undefined" && - window.matchMedia?.("(prefers-color-scheme: dark)").matches - ); + // 기본 라이트 고정(밝은 에디토리얼 톤). OS 다크선호는 따라가지 않는다 — 다크는 명시 토글로만. + return false; }); useEffect(() => { const root = document.documentElement; diff --git a/apps/web/src/pages/settings/useTheme.ts b/apps/web/src/pages/settings/useTheme.ts index 914b201..38a5f0e 100644 --- a/apps/web/src/pages/settings/useTheme.ts +++ b/apps/web/src/pages/settings/useTheme.ts @@ -15,10 +15,8 @@ function readInitial(): boolean { } catch { /* 무시 */ } - return ( - typeof window !== "undefined" && - window.matchMedia?.("(prefers-color-scheme: dark)").matches - ); + // 기본 라이트 고정. OS 다크선호는 따라가지 않는다(다크는 명시 토글로만). + return false; } /** [dark, setDark] — Topbar 토글과 같은 키/속성을 사용. */