From 51a0eb76dee1c65693124cb67de544bc22728c35 Mon Sep 17 00:00:00 2001 From: Marcel Date: Wed, 25 Mar 2026 12:38:16 +0100 Subject: [PATCH] fix(css): set form control bg/color to surface tokens in base layer Browser-default form controls (input, textarea, select) render with a white background that ignores CSS custom properties in dark mode. Adding bg-surface and text-ink to the base layer ensures they theme correctly without touching every component. Co-Authored-By: Claude Sonnet 4.6 --- frontend/src/routes/layout.css | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/frontend/src/routes/layout.css b/frontend/src/routes/layout.css index 883e92ad..32a8e2a5 100644 --- a/frontend/src/routes/layout.css +++ b/frontend/src/routes/layout.css @@ -183,4 +183,12 @@ font-family: var(--font-sans); font-weight: 600; } + + /* Form controls — always use surface bg and ink text so they theme correctly */ + input, + textarea, + select { + background-color: var(--c-surface); + color: var(--c-ink); + } }