feat: add light/dark display switch mode

This commit is contained in:
qixinbo
2026-03-28 16:25:35 +08:00
parent bd731660ac
commit 27270063f7
21 changed files with 449 additions and 358 deletions
+11
View File
@@ -5,6 +5,17 @@
<link rel="icon" type="image/svg+xml" href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 100%22><text y=%22.9em%22 font-size=%2290%22>🦞</text></svg>" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>DataClaw</title>
<script>
try {
const storedTheme = localStorage.getItem('theme-storage');
if (storedTheme) {
const { state } = JSON.parse(storedTheme);
if (state.theme === 'dark') {
document.documentElement.classList.add('dark');
}
}
} catch (e) {}
</script>
</head>
<body>
<div id="root"></div>