kimi-code/apps/vis/web/index.html
2026-05-22 15:54:50 +08:00

39 lines
1.4 KiB
HTML

<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover" />
<meta name="color-scheme" content="light dark" />
<meta name="theme-color" content="#0b0d12" />
<title>kimi vis</title>
<!-- Pre-paint: resolve saved theme (or system preference) and set
data-theme before React hydrates, to avoid a flash of the wrong
palette. Kept tiny to not block render. -->
<script>
(function () {
try {
var v = localStorage.getItem('vis.theme');
var t =
v === 'light' || v === 'dark'
? v
: window.matchMedia('(prefers-color-scheme: light)').matches
? 'light'
: 'dark';
document.documentElement.setAttribute('data-theme', t);
} catch (_) {
document.documentElement.setAttribute('data-theme', 'dark');
}
})();
</script>
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
href="https://fonts.googleapis.com/css2?family=Geist:wght@400;500;600&family=JetBrains+Mono:wght@400;500;600&display=swap"
rel="stylesheet"
/>
</head>
<body class="antialiased">
<div id="root"></div>
<script type="module" src="/src/main.tsx"></script>
</body>
</html>