-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
51 lines (44 loc) · 1.13 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
50
51
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link href="./globals.css" rel="stylesheet">
<title>Community</title>
<style>
:root {
--background: #fff;
--foreground: #000;
--primary: #5eead4;
--success: #36B731;
--info: #2278F9;
--warning: #FFE711;
--danger: #FF4F54;
--gray: #2e2e2e78;
--gray--100: #f3f4f6;
--gray--200: #e5e7eb;
--gray--300: #d1d5db;
}
body {
background-color: var(--background);
color: var(--foreground);
}
@media (prefers-color-scheme: dark) {
body {
background-color: var(--black);
color: var(--white);
}
}
</style>
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/main.tsx"></script>
<script>
if (window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches) {
document.documentElement.style.setProperty('--background', '#000');
document.documentElement.style.setProperty('--foreground', '#fff');
}
</script>
</body>
</html>