-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
60 lines (57 loc) · 1.71 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
52
53
54
55
56
57
58
59
60
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Franken UI</title>
<link
rel="preload"
href="/fonts/geist-font/fonts/GeistVariableVF.woff2"
as="font"
type="font/woff2"
crossorigin
/>
<link
rel="preload"
href="/fonts/geist-font/fonts/GeistMonoVariableVF.woff2"
as="font"
type="font/woff2"
crossorigin
/>
<link rel="stylesheet" href="/fonts/geist-font/style.css" />
<link rel="stylesheet" href="/src/index.css" />
<script>
const htmlElement = document.documentElement;
const __FRANKEN__ = JSON.parse(
localStorage.getItem("__FRANKEN__") || "{}"
);
if (
__FRANKEN__.mode === "dark" ||
(!__FRANKEN__.mode &&
window.matchMedia("(prefers-color-scheme: dark)").matches)
) {
htmlElement.classList.add("dark");
} else {
htmlElement.classList.remove("dark");
}
htmlElement.classList.add(__FRANKEN__.theme || "uk-theme-blue");
htmlElement.classList.add(__FRANKEN__.radii || "uk-radii-md");
htmlElement.classList.add(__FRANKEN__.shadows || "uk-shadows-sm");
htmlElement.classList.add(__FRANKEN__.font || "uk-font-sm");
</script>
</head>
<body
class="bg-background font-geist-sans text-sm text-foreground antialiased"
>
<div id="root"></div>
<script
type="module"
src="node_modules/franken-ui/dist/js/core.iife.js"
></script>
<script
type="module"
src="node_modules/franken-ui/dist/js/icon.iife.js"
></script>
<script type="module" src="/src/main.jsx"></script>
</body>
</html>