mirror of
https://github.com/hex248/tsos.git
synced 2026-02-07 10:17:15 +00:00
39 lines
1.1 KiB
HTML
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>
|