|
|
@ -30,6 +30,16 @@
|
|
|
|
%sveltekit.head%
|
|
|
|
%sveltekit.head%
|
|
|
|
</head>
|
|
|
|
</head>
|
|
|
|
<body data-sveltekit-preload-code="hover">
|
|
|
|
<body data-sveltekit-preload-code="hover">
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
|
|
|
const themeValue = JSON.parse(localStorage.getItem('svelte:theme'))?.current;
|
|
|
|
|
|
|
|
const systemPreferredTheme = window.matchMedia('(prefers-color-scheme: dark)').matches
|
|
|
|
|
|
|
|
? 'dark'
|
|
|
|
|
|
|
|
: 'light';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
document.body.classList.remove('light', 'dark');
|
|
|
|
|
|
|
|
document.body.classList.add(themeValue ?? systemPreferredTheme);
|
|
|
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
|
|
<div style="height: 100%">%sveltekit.body%</div>
|
|
|
|
<div style="height: 100%">%sveltekit.body%</div>
|
|
|
|
</body>
|
|
|
|
</body>
|
|
|
|
</html>
|
|
|
|
</html>
|
|
|
|