Files
CODE_ASSISTANT/2_frontend/index.html
T
lee-hyeon-cheolandClaude Fable 5.1 efb9fb46de style(frontend): 삼성향 라이트 팔레트(samsung) 추가하고 기본으로
삼성닷컴(sec) 공개 웹 실측값 — 검정 주색/CTA, 흰 canvas, #f7f7f7 surface, #707070 muted,
#dddddd border, 링크 #007aff, 그림자 없음, 버튼·카드 radius 20px(알약).
One UI 파랑은 폰 앱용이라 안 씀. 폰트는 재배포 근거 없어 안 넣음. 다크 모드는 기존 그대로.
기존 사용자 저장값 clean-blue 는 한 번만 samsung 으로 교체(index.html 부트스트랩).

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

46 lines
1.8 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 = "dark" // 저장값 없으면 다크 (themeStore 기본과 동일)
if (raw) {
try {
mode = (JSON.parse(raw).state || {}).theme || "dark"
} catch (e) {}
}
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>