fix(web): 기본 라이트 테마 고정 — OS 다크선호 미추종(다크는 명시 토글로만)

This commit is contained in:
Yun Chan 2026-06-25 23:44:33 +09:00
parent 24b1b7a6e1
commit eca1f6a413
2 changed files with 4 additions and 8 deletions

View file

@ -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;