feat(webui): adopt the violet palette, and give the outlet the viewport

Takes style.css, lib/theme.ts and index.html's pre-paint script from the
palette work on worktree-groovy-imagining-widget (73e602a7..72034249), leaving
its flat topbar and route table behind. The theme is a data-theme attribute set
before the first paint, so a reload does not flash the wrong palette, and
color-scheme moves with it.

The outlet takes the viewport height below the topbar so an empty state has
somewhere to sit.
This commit is contained in:
sam committed 2026-09-20 18:52:15 +10:00
1 parent 2bddb9f36a
commit 393e30ed1a
7 files changed
+272 -131

No files matched your search

+14
View File
@@ -5,6 +5,20 @@
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>archie-ui</title>
<script>
// Set before the first paint so a reload does not flash the wrong
// palette. Kept in sync with src/lib/theme.ts; a blocked localStorage
// falls back to dark, which is the default theme.
(function () {
var theme = "dark";
try {
if (localStorage.getItem("archie.theme") === "light") theme = "light";
} catch (e) {
/* default stands */
}
document.documentElement.dataset.theme = theme;
})();
</script>
</head>
<body>
<div id="app"></div>