-
Notifications
You must be signed in to change notification settings - Fork 106
/
index.html
31 lines (28 loc) · 957 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
28
29
30
31
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="/public/font.css">
<title>Chevron</title>
<!-- coloration -->
<script>
const settings = JSON.parse(localStorage.getItem('settings'))
if (settings) {
const colorScheme = settings.appearance.colorScheme === 'auto'
? window.matchMedia("(prefers-color-scheme: dark)").matches
? 'dark'
: 'light'
: settings.appearance.colorScheme
document.documentElement.style.backgroundColor = settings.appearance.themes[settings.appearance.activeTheme][colorScheme].background
}
</script>
<!-- -->
</head>
<body>
<div id="root"></div>
<script src="config.js"></script>
<script src="icons.js"></script>
<script type="module" src="/src/main.jsx"></script>
</body>
</html>