-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
49 lines (49 loc) · 1.36 KB
/
index.html
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<!DOCTYPE html>
<html lang="en" class="text-gray12 bg-gray1 sans-font">
<head>
<meta charset="UTF-8" />
<link
rel="icon"
type="image/svg+xml"
href="/src/icons/Custom/favicon.svg"
/>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Vite App</title>
<script>
// Copied from next-theme
!(function () {
try {
var d = document.documentElement.classList
d.remove("dark-theme", "light-theme")
var e = localStorage.getItem("theme")
if ("system" === e || (!e && true)) {
var t = "(prefers-color-scheme: dark)",
m = window.matchMedia(t)
m.media !== t || m.matches
? d.add("dark-theme")
: d.add("light-theme")
} else if (e) var x = { dark: "dark-theme", light: "light-theme" }
d.add(x[e])
} catch (e) {}
})()
</script>
<script>
// Based on next-theme, used for fonts
!(function () {
try {
var d = document.documentElement.classList
d.remove("sans-font", "serif-font")
var e = localStorage.getItem("font")
if (e) var x = { sans: "sans-font", serif: "serif-font" }
d.add(x[e])
} catch (e) {}
})()
</script>
<link href="/inter/inter.css" rel="stylesheet" />
<link href="/crimson/crimson.css" rel="stylesheet" />
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/main.tsx"></script>
</body>
</html>