diff --git a/app-admin/src/app.css b/app-admin/src/app.css
index dd8a76b..d0de454 100644
--- a/app-admin/src/app.css
+++ b/app-admin/src/app.css
@@ -4,16 +4,9 @@
themes: light --default;
}
-/* Admin UI theme: DaisyUI light with a fixed sage primary. Deliberately NOT
- tied to the site's colours (Site design → Colors) (those only apply inside /preview), so
- a light brand colour can't make admin buttons unreadable. #647556 on white
- text is ~5:1 contrast (WCAG AA). */
-@plugin 'daisyui/theme' {
- name: 'light';
- default: true;
- --color-primary: #647556;
- --color-primary-content: #ffffff;
-}
+/* Admin primary/secondary come from the site's colours (Site design →
+ Colors) via $shared/theme, rendered in the root layout's
with an
+ automatically readable text colour. */
/* Hint text under form fields: DaisyUI's .label is nowrap, which stretched
fields to fit long hints. */
diff --git a/app-admin/src/routes/+layout.svelte b/app-admin/src/routes/+layout.svelte
index 7f65d05..ab5f4a6 100644
--- a/app-admin/src/routes/+layout.svelte
+++ b/app-admin/src/routes/+layout.svelte
@@ -4,6 +4,7 @@
import { afterNavigate } from '$app/navigation';
import { page } from '$app/state';
import { createBasketStore, setBasketContext } from '$lib/basket.svelte';
+ import { brandThemeVars, rootStyleTag } from '$shared/theme';
let { children, data } = $props();
@@ -12,6 +13,9 @@
const BARE_ROUTES = ['/login', '/preview'];
let bare = $derived(BARE_ROUTES.includes(page.url.pathname));
+ // The active item is marked with a tint + bar in the brand colour, never
+ // brand-coloured text: the site's primary may be too light to read as text.
+
// Sidebar navigation, grouped by what the studio is doing. Labels are
// user-facing names; hrefs keep the original route names.
const navGroups = [
@@ -55,6 +59,8 @@
+
+ {@html rootStyleTag(brandThemeVars(data.colors))}
{#if bare}
@@ -86,7 +92,7 @@