Improve layout/behavior and accessibility

This commit is contained in:
Codex
2026-03-07 10:46:25 +00:00
parent a72ebc014c
commit 6e712e535d
8 changed files with 457 additions and 105 deletions

View File

@@ -1,8 +1,26 @@
<!doctype html>
<html lang="en">
<html lang="en" data-theme="dark" data-palette="classic">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<script>
(function () {
try {
const doc = document.documentElement;
const savedTheme = localStorage.getItem('theme');
const savedPalette = localStorage.getItem('palette');
const prefersDark =
typeof window.matchMedia === 'function' &&
window.matchMedia('(prefers-color-scheme: dark)').matches;
doc.dataset.theme = savedTheme || (prefersDark ? 'dark' : 'light');
if (savedPalette) {
doc.dataset.palette = savedPalette;
}
} catch (error) {
// Ignore errors if storage or matchMedia is unavailable
}
})();
</script>
%sveltekit.head%
</head>
<body data-sveltekit-preload-data="hover">