-
Notifications
You must be signed in to change notification settings - Fork 5
/
index.html
30 lines (30 loc) · 1.15 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
<!DOCTYPE html>
<html lang="zh">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
<link rel="apple-touch-icon" href="/pwa-192x192.png" />
<link rel="mask-icon" href="/safari-pinned-tab.svg" />
<meta name="msapplication-TileColor" content="#00aba9">
<meta name="theme-color" content="#ffffff">
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no" />
<title>表了个情</title>
</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('revitesse-dark-mode')
? localStorage.getItem('revitesse-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>