codex-proxy / web /index.html
icebear0828
fix: add color-scheme declaration to prevent browser auto-darkening
f3c6831
raw
history blame
845 Bytes
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Codex Proxy Developer Dashboard</title>
<meta name="color-scheme" content="light dark">
<script>
try {
const t = localStorage.getItem('codex-proxy-theme');
const isDark = t === 'dark' || (!t && window.matchMedia('(prefers-color-scheme: dark)').matches);
if (isDark) document.documentElement.classList.add('dark');
document.documentElement.style.colorScheme = isDark ? 'dark' : 'light';
} catch {}
</script>
</head>
<body class="bg-bg-light dark:bg-bg-dark font-display text-slate-900 dark:text-text-main antialiased min-h-screen flex flex-col transition-colors">
<div id="app"></div>
<script type="module" src="/src/main.tsx"></script>
</body>
</html>