Files
tsos/index.html
Oliver Bryan 019b8545f1 basic setup
react
ts
tailwind
vite
biome
bun
2026-01-07 12:22:30 +00:00

39 lines
1.1 KiB
HTML

<!DOCTYPE html>
<html lang="en" class="">
<!-- class="dark" makes the app dark mode -->
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>The Shape of Sound</title>
<style>
html,
body {
background-color: var(--background);
color: var(--foreground);
}
</style>
<script>
const theme = localStorage.getItem("theme");
if (theme === "dark") document.documentElement.classList.add("dark");
else if (theme === "light")
document.documentElement.classList.remove("dark");
if (theme === null) {
const prefersDark = window.matchMedia(
"(prefers-color-scheme: dark)"
).matches;
if (prefersDark) document.documentElement.classList.add("dark");
else document.documentElement.classList.remove("dark");
}
</script>
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/main.tsx"></script>
</body>
</html>