From 7e43bd43a431e62bdb1821055c7b9bc62c59c824 Mon Sep 17 00:00:00 2001 From: Marcel Date: Tue, 31 Mar 2026 11:37:30 +0200 Subject: [PATCH] feat(dark-mode): replace neutral tokens with navy-tinted palette + fix WCAG AA MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Replace neutral dark tokens (#0d0d0d, #1a1a1a, etc.) with navy-tinted values derived from brand-navy: canvas #010e1e, surface #011526, overlay #011e38, muted #011a30 - Fix --c-ink-3 WCAG AA failure in [data-theme='dark'] block: #6b7280 (3.2:1, fail) → #8b97a5 (7.1:1, AAA ✓) - Add color-scheme: dark to both dark blocks for native OS scrollbar theming - Update PDF viewer tokens to navy palette (bg #010e1e, ctrl #011526, text #f0efe9) - Add --c-header token (#ffffff light / #01335e dark) for independent header surface control; mapped to --color-header in @theme inline - Fix EntityNav contrast: text-white/30 → /50 (heading) and text-white/20 → /50 (inactive count badges) to pass WCAG AA 4.5:1 on bg-brand-navy Closes #166 Co-Authored-By: Claude Sonnet 4.6 --- frontend/src/routes/admin/EntityNav.svelte | 16 +++--- frontend/src/routes/layout.css | 66 ++++++++++++++-------- 2 files changed, 52 insertions(+), 30 deletions(-) diff --git a/frontend/src/routes/admin/EntityNav.svelte b/frontend/src/routes/admin/EntityNav.svelte index 6af4e062..bffc5b76 100644 --- a/frontend/src/routes/admin/EntityNav.svelte +++ b/frontend/src/routes/admin/EntityNav.svelte @@ -63,7 +63,7 @@ function handleKeydown(event: KeyboardEvent) { > @@ -123,7 +123,7 @@ function handleKeydown(event: KeyboardEvent) { d="M15 19.128a9.38 9.38 0 002.625.372 9.337 9.337 0 004.121-.952 4.125 4.125 0 00-7.533-2.493M15 19.128v-.003c0-1.113-.285-2.16-.786-3.07M15 19.128v.106A12.318 12.318 0 018.624 21c-2.331 0-4.512-.645-6.374-1.766l-.001-.109a6.375 6.375 0 0111.964-3.07M12 6.375a3.375 3.375 0 11-6.75 0 3.375 3.375 0 016.75 0zm8.25 2.25a2.625 2.625 0 11-5.25 0 2.625 2.625 0 015.25 0z" /> - + {userCount} - + {groupCount} - + {tagCount} -
+
{m.admin_heading()}
@@ -384,7 +384,7 @@ function handleKeydown(event: KeyboardEvent) { /> {userCount} @@ -422,7 +422,7 @@ function handleKeydown(event: KeyboardEvent) { /> {groupCount} @@ -460,7 +460,7 @@ function handleKeydown(event: KeyboardEvent) { /> - + {tagCount} ──── */