Files
hideck/web/index.html
T
Cursor Agentandyibaiba fe8275818c feat(web): add navy-light/navy-night theme pair and keep classic dark
Replace the default token pair with navy-light and navy-night, keep the previous dark theme as Classic in Settings, and leave the header sun button as a two-state navy toggle.

Co-authored-by: yibaiba <yibaiba@users.noreply.github.com>
2026-09-01 15:17:43 +00:00

48 lines
962 B
HTML

<!doctype html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>HiDeck</title>
<script>
try {
const theme = localStorage.getItem('theme')
const dark = theme === 'dark' || theme === 'navy-night' || theme === 'classic'
document.documentElement.classList.toggle('dark', dark)
document.documentElement.classList.toggle('classic', theme === 'classic')
} catch { }
</script>
<style>
:root {
color-scheme: light dark;
}
html,
body {
height: 100%;
margin: 0;
}
body {
background: #FBF9F6;
}
html.dark body {
background: #0B1420;
}
html.classic body {
background: #0d1518;
}
</style>
</head>
<body>
<div id="app"></div>
<script type="module" src="/src/main.ts"></script>
</body>
</html>