-
Notifications
You must be signed in to change notification settings - Fork 3
/
index.html
27 lines (27 loc) · 1013 Bytes
/
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
<!DOCTYPE html>
<html lang="en">
<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>Vitesse React</title>
<meta name="description" content="Opinionated Vite Starter Template">
</head>
<body class="font-sans dark:text-white dark:bg-hex-121212">
<div id="root"></div>
<script>
(function () {
const prefersDark = window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches
const setting = localStorage.getItem('vitesse-react-dark-mode')
? localStorage.getItem('vitesse-react-dark-mode') === 'true'
? 'dark'
: 'light'
: 'auto'
if (setting === 'dark' || (prefersDark && setting !== 'light')) {
document.documentElement.classList.toggle('dark', true)
}
})()
</script>
<script type="module" src="/src/main.tsx"></script>
</body>
</html>