From 70f29733961dd9161b5a781d4a4fcd0c3835c3a5 Mon Sep 17 00:00:00 2001 From: Ilia Denisov Date: Fri, 22 May 2026 08:40:38 +0200 Subject: [PATCH] fix(ui): darken light-theme danger to meet AA contrast MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit With the default theme now following the OS, Playwright renders the light theme, where the previous light `--color-danger` (#c84d4d, ~3.9:1 on a near-white surface) failed WCAG 1.4.3 on error text — caught by the axe scan of the science designer's empty-name error. Darken light `--color-danger` to #c0392b (~5.5:1 on white; white-on-danger fills stay ≥5:1). Dark theme unchanged. --- ui/frontend/src/lib/theme/tokens.css | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/frontend/src/lib/theme/tokens.css b/ui/frontend/src/lib/theme/tokens.css index 25c8a35..13fcdd3 100644 --- a/ui/frontend/src/lib/theme/tokens.css +++ b/ui/frontend/src/lib/theme/tokens.css @@ -121,9 +121,9 @@ --color-accent-contrast: #ffffff; --color-accent-subtle: rgba(74, 99, 216, 0.1); - --color-danger: #c84d4d; + --color-danger: #c0392b; --color-danger-contrast: #ffffff; - --color-danger-subtle: rgba(200, 77, 77, 0.1); + --color-danger-subtle: rgba(192, 57, 43, 0.1); --color-success: #2f8f63; --color-success-subtle: rgba(47, 143, 99, 0.12);