From eca1f6a41338771ba50fdcb9dad60f64bab8a2a9 Mon Sep 17 00:00:00 2001 From: Yun Chan Date: Thu, 25 Jun 2026 23:44:33 +0900 Subject: [PATCH] =?UTF-8?q?fix(web):=20=EA=B8=B0=EB=B3=B8=20=EB=9D=BC?= =?UTF-8?q?=EC=9D=B4=ED=8A=B8=20=ED=85=8C=EB=A7=88=20=EA=B3=A0=EC=A0=95=20?= =?UTF-8?q?=E2=80=94=20OS=20=EB=8B=A4=ED=81=AC=EC=84=A0=ED=98=B8=20?= =?UTF-8?q?=EB=AF=B8=EC=B6=94=EC=A2=85(=EB=8B=A4=ED=81=AC=EB=8A=94=20?= =?UTF-8?q?=EB=AA=85=EC=8B=9C=20=ED=86=A0=EA=B8=80=EB=A1=9C=EB=A7=8C)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/web/src/components/shell/Topbar.tsx | 6 ++---- apps/web/src/pages/settings/useTheme.ts | 6 ++---- 2 files changed, 4 insertions(+), 8 deletions(-) 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 토글과 같은 키/속성을 사용. */