-
Notifications
You must be signed in to change notification settings - Fork 4
/
index.html
33 lines (32 loc) · 1.17 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<script>
if (
(!('vueuse-color-scheme' in localStorage) || localStorage.getItem('vueuse-color-scheme') === 'auto') &&
window.matchMedia('(prefers-color-scheme: dark)').matches
) {
document.documentElement.classList.add('dark');
}
if (localStorage.getItem('vueuse-color-scheme') === 'dark') {
document.documentElement.classList.add('dark');
} else if (localStorage.getItem('vueuse-color-scheme') === 'light') {
document.documentElement.classList.remove('dark');
}
</script>
<link rel="icon" href="/favicon.svg" />
<link rel="preconnect" href="https://fonts.gstatic.com" />
<link
crossorigin="anonymous"
href="https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..900;1,100..900&family=Public+Sans:ital,wght@0,100..900;1,100..900&display=swap"
rel="stylesheet"
/>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Blog</title>
</head>
<body class="bg-white dark:bg-gray-900 selection:bg-primary-600 selection:text-white">
<div id="app"></div>
<script type="module" src="/src/main.js"></script>
</body>
</html>