27 lines
1.0 KiB
HTML
27 lines
1.0 KiB
HTML
<!doctype html>
|
||
<html lang="en" data-theme="gruvbox">
|
||
<head>
|
||
<script>
|
||
// Immediately apply saved or system theme – no flash
|
||
(function () {
|
||
const saved = localStorage.getItem('theme');
|
||
const prefersDark = window.matchMedia('(prefers-color-scheme: dark)').matches;
|
||
const theme =
|
||
saved === 'dark' || saved === 'light' ? saved : prefersDark ? 'dark' : 'light';
|
||
document.documentElement.setAttribute('data-theme', theme);
|
||
document.documentElement.style.setProperty('--initial-load', 'true');
|
||
})();
|
||
</script>
|
||
<meta charset="utf-8" />
|
||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||
<meta name="text-scale" content="scale" />
|
||
%sveltekit.head%
|
||
</head>
|
||
<body data-sveltekit-preload-data="hover">
|
||
<div style="display: contents">%sveltekit.body%</div>
|
||
<!-- <div id="crt-vignette" class="crt-vignette" aria-hidden="true"></div> -->
|
||
<div id="crt-scanlines" class="crt-scanlines" aria-hidden="true"></div>
|
||
<div id="crt-grain" class="crt-grain" aria-hidden="true"></div>
|
||
</body>
|
||
</html>
|