Files
lee-hyeon-cheolandClaude Fable 5.1 72a06d6c07 style(frontend): PwC 로고 제거, 기본 라이트 모드, 삼성 팔레트 포인트 Samsung Blue
- LogoMark 는 null 렌더(호출부 6곳 그대로), logo.png·logo-dark.png 삭제, 파비콘 투명
- themeStore·index.html 기본 light. 예전 dark 저장값은 첫 실행 때 한 번만 초기화
- samsung 팔레트 primary/ring/link = #1428A0(브랜드 파랑). 바탕·글씨·면은 실측값 유지
- Message 테스트: 기본 라이트 기준으로 코드블럭 흰 배경 기대

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-21 10:40:32 +09:00

50 lines
2.1 KiB
HTML

<!doctype html>
<html lang="ko">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="icon" type="image/png" href="/favicon.png" />
<title>CodeAssist</title>
<script>
// FOUC 방지 — React 마운트 전 [data-theme] + .dark 미리 박음.
// 팔레트는 localStorage 'theme' 키, 다크모드는 'theme-store' (zustand persist).
;(function () {
try {
var pal = localStorage.getItem("theme") || "samsung"
// 기본 팔레트 교체는 한 번만(삼성향, 2026-09). 이후 직접 고른 팔레트는 유지.
if (!localStorage.getItem("samsung-default-v1")) {
if (pal === "warm-tan" || pal === "clean-blue") {
pal = "samsung"
localStorage.setItem("theme", pal)
}
localStorage.setItem("samsung-default-v1", "1")
}
document.documentElement.setAttribute("data-theme", pal)
var raw = localStorage.getItem("theme-store")
var mode = "light" // 저장값 없으면 라이트 (themeStore 기본과 동일)
// 기본 모드를 라이트로 바꾸면서(2026-09) 예전 저장값 dark 는 한 번만 light 로. 이후 직접 고른 건 유지.
if (raw && localStorage.getItem("light-default-v1")) {
try {
mode = (JSON.parse(raw).state || {}).theme || "light"
} catch (e) {}
} else {
localStorage.removeItem("theme-store")
localStorage.setItem("light-default-v1", "1")
}
var dark =
mode === "dark" ||
(mode === "system" &&
window.matchMedia &&
matchMedia("(prefers-color-scheme: dark)").matches)
if (dark) document.documentElement.classList.add("dark")
document.documentElement.style.colorScheme = dark ? "dark" : "light"
} catch (e) {}
})()
</script>
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/main.tsx"></script>
</body>
</html>