This commit is contained in:
sam 2024-06-09 15:48:26 +02:00
parent 14f8e77e6a
commit a2f001392b
Signed by: sam
GPG key ID: B4EF20DDE721CAA1
11 changed files with 241 additions and 2 deletions

View file

@ -4,6 +4,13 @@
<meta charset="utf-8" />
<link rel="icon" href="%sveltekit.assets%/favicon.png" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<script>
let theme = localStorage.getItem("pronounscc-theme");
if (!theme || theme === "auto")
theme = window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light";
document.documentElement.setAttribute("data-bs-theme", theme);
</script>
%sveltekit.head%
</head>
<body data-sveltekit-preload-data="hover">