refactor(#48): Address PR comments

This commit is contained in:
Josh Creek
2026-01-10 21:44:19 +00:00
parent ad8c8a847d
commit 9d14b2d2f1
4 changed files with 63 additions and 20 deletions
+12
View File
@@ -5,6 +5,18 @@
<link rel="icon" href="%sveltekit.assets%/favicon.png" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
%sveltekit.head%
<script>
(function () {
try {
const storedTheme = localStorage.getItem('theme');
const theme = storedTheme || 'pokeball';
document.documentElement.setAttribute('data-theme', theme);
} catch (e) {
// Fallback to default theme if localStorage is not accessible
document.documentElement.setAttribute('data-theme', 'pokeball');
}
})();
</script>
<link rel="stylesheet" href="%sveltekit.assets%/output.css" />
</head>
<body data-sveltekit-preload-data="hover">