-
Notifications
You must be signed in to change notification settings - Fork 23
Expand file tree
/
Copy pathindex.html
More file actions
51 lines (47 loc) · 1.45 KB
/
Copy pathindex.html
File metadata and controls
51 lines (47 loc) · 1.45 KB
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="zh-CN">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Skill Workspace</title>
<script>
(() => {
const storedTheme = window.localStorage.getItem("skilldock.settings.theme");
const theme = storedTheme === "light" || storedTheme === "dark" ? storedTheme : "system";
const resolvedTheme = theme === "system"
? (window.matchMedia?.("(prefers-color-scheme: dark)").matches ? "dark" : "light")
: theme;
document.documentElement.dataset.theme = resolvedTheme;
})();
</script>
<style>
html {
min-height: 100%;
background: #f3f6fb;
}
html[data-theme="dark"] {
background: #181818;
}
body {
margin: 0;
min-height: 100vh;
background:
radial-gradient(circle at 8% 0%, rgba(173, 197, 255, 0.18) 0%, rgba(173, 197, 255, 0) 30%),
radial-gradient(circle at 92% 100%, rgba(177, 229, 236, 0.2) 0%, rgba(177, 229, 236, 0) 36%),
linear-gradient(180deg, #f8fbff 0%, #f3f6fb 55%, #edf3fb 100%);
color: #1f2937;
}
html[data-theme="dark"] body {
background: #181818;
color: #e8e8e8;
}
#root {
min-height: 100vh;
}
</style>
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/main.tsx"></script>
</body>
</html>