-
Notifications
You must be signed in to change notification settings - Fork 55
/
Copy pathapp.html
25 lines (25 loc) · 983 Bytes
/
app.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
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<link rel="icon" href="%sveltekit.assets%/favicon.png" />
<link rel="stylesheet" href="/fonts/inter/inter.css" />
<link rel="stylesheet" href="/fonts/jetbrains-mono/jetbrains-mono.css" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
<title>Hollama</title>
%sveltekit.head%
</head>
<script>
// We check and apply the color theme preference on initial load
// to prevent a flash of unstyled content
let theme = JSON.parse(localStorage.getItem('hollama-settings'))?.userTheme;
if (theme) document.documentElement.setAttribute('data-color-theme', theme);
else {
theme = window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light';
document.documentElement.setAttribute('data-color-theme', theme);
}
</script>
<body data-sveltekit-preload-data="hover">
<div style="display: contents">%sveltekit.body%</div>
</body>
</html>