Files
memind/index.html
T
john 03089a12ce
Memind CI / Test, build, and release guards (push) Successful in 3m11s
feat(portal): default to dark theme for new visitors
First-time and cleared-storage users see dark mode; saved light preference is unchanged. Inline boot script avoids a light flash before React loads.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-11 11:33:39 +08:00

28 lines
894 B
HTML

<!doctype html>
<html lang="zh-CN" data-theme="dark">
<head>
<meta charset="UTF-8" />
<script>
(function () {
var key = 'memind-theme';
var stored = localStorage.getItem(key);
var theme = stored === 'light' || stored === 'dark' ? stored : 'dark';
document.documentElement.dataset.theme = theme;
document.documentElement.style.colorScheme = theme;
})();
</script>
<meta
name="viewport"
content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, viewport-fit=cover"
/>
<meta name="mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="theme-color" content="#0f1419" />
<title>TKMind</title>
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/main.tsx"></script>
</body>
</html>