-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathindex.html
More file actions
32 lines (32 loc) · 1.03 KB
/
Copy pathindex.html
File metadata and controls
32 lines (32 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<!doctype html>
<html lang="en" data-preview-theme="frost">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<script>
(() => {
let saved = null;
try {
saved = localStorage.getItem("quantum-leap.theme-mode");
} catch {
// System theme remains available when storage is restricted.
}
const mode = saved === "light" || saved === "dark" ? saved : "auto";
const resolved =
mode === "auto" && matchMedia("(prefers-color-scheme: dark)").matches
? "dark"
: mode === "dark"
? "dark"
: "light";
document.documentElement.dataset.themeMode = mode;
document.documentElement.dataset.colorTheme = resolved;
document.documentElement.style.colorScheme = resolved;
})();
</script>
<title>Quantum Leap</title>
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/main.tsx"></script>
</body>
</html>