mirror of
https://github.com/yibaiba/hideck.git
synced 2026-12-05 08:01:10 +00:00
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>
48 lines
962 B
HTML
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>
|