2023-10-08 22:38:42 +00:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="en">
|
|
|
|
<head>
|
|
|
|
<meta charset="utf-8" />
|
|
|
|
<link rel="icon" href="%sveltekit.assets%/favicon.png" />
|
2023-11-30 20:09:55 +00:00
|
|
|
<link rel="manifest" href="%sveltekit.assets%/manifest.json" />
|
2023-10-24 08:57:51 +00:00
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
|
2023-11-05 23:01:55 +00:00
|
|
|
<script>
|
|
|
|
// On page load or when changing themes, best to add inline in `head` to avoid FOUC
|
|
|
|
if (
|
|
|
|
localStorage.theme === 'light' ||
|
|
|
|
(!('theme' in localStorage) && window.matchMedia('(prefers-color-scheme: light)').matches)
|
|
|
|
) {
|
|
|
|
document.documentElement.classList.add('light');
|
2024-01-02 00:22:57 +00:00
|
|
|
} else if (localStorage.theme === 'dark') {
|
2024-01-02 00:05:05 +00:00
|
|
|
document.documentElement.classList.add('dark');
|
2023-11-05 23:01:55 +00:00
|
|
|
} else {
|
|
|
|
document.documentElement.classList.add('dark');
|
2024-01-02 00:22:57 +00:00
|
|
|
document.documentElement.classList.add(localStorage.theme);
|
2023-11-05 23:01:55 +00:00
|
|
|
}
|
|
|
|
</script>
|
|
|
|
|
2023-10-08 22:38:42 +00:00
|
|
|
%sveltekit.head%
|
|
|
|
</head>
|
|
|
|
<body data-sveltekit-preload-data="hover">
|
|
|
|
<div style="display: contents">%sveltekit.body%</div>
|
|
|
|
</body>
|
|
|
|
</html>
|