Files
openwork/index.html
Omar McAdam 4689852686 feat: add radix color theming (#133)
* chore: migrate tailwind v4 and add theme scaffolding

* feat: integrate radix colors and theme switching

* pnpm version
2026-01-20 13:56:44 -08:00

31 lines
1.2 KiB
HTML

<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>OpenWork</title>
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png" />
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png" />
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png" />
<script>
(function () {
try {
var mode = localStorage.getItem("openwork.themePref") || "system";
var prefersDark = window.matchMedia("(prefers-color-scheme: dark)").matches;
var resolved = mode === "dark" || (mode === "system" && prefersDark) ? "dark" : "light";
document.documentElement.dataset.theme = resolved;
document.documentElement.style.colorScheme = resolved;
} catch (e) {
document.documentElement.dataset.theme = "light";
document.documentElement.style.colorScheme = "light";
}
})();
</script>
</head>
<body class="bg-gray-12 text-gray-12">
<div id="root"></div>
<script type="module" src="/src/index.tsx"></script>
</body>
</html>