-
-
Notifications
You must be signed in to change notification settings - Fork 33
Expand file tree
/
Copy pathindex.html
More file actions
28 lines (28 loc) · 936 Bytes
/
Copy pathindex.html
File metadata and controls
28 lines (28 loc) · 936 Bytes
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
<!DOCTYPE html>
<html lang="en" class="dark">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Harnss</title>
<style>
html, body {
background-color: transparent !important;
}
</style>
<!-- Apply theme class before first paint to prevent flash of wrong theme.
Runs after <html> exists but before CSS renders the first frame. -->
<script>
(function() {
var stored = localStorage.getItem("harnss-theme");
var isDark = true;
if (stored === "light") isDark = false;
else if (stored === "system") isDark = window.matchMedia("(prefers-color-scheme: dark)").matches;
if (!isDark) document.documentElement.classList.remove("dark");
})();
</script>
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/main.tsx"></script>
</body>
</html>