From 2121817c047ddaceea69de6dbedcf663427b6e68 Mon Sep 17 00:00:00 2001 From: Stan Grams Date: Fri, 17 Jul 2026 20:57:43 +0200 Subject: [PATCH] [style](trx-frontend-http): refine web UI design system and a11y Introduce a shared design-token layer and apply it to the web frontend for a more consistent, readable, and accessible feel. Pure CSS plus one HTML block; no app.js behaviour changes, and the existing multi-theme (style x light/dark) system is preserved. - Add spacing, type, radius and motion tokens to :root. - Fix undefined --surface consumed by .controls-tray, which dropped the panel background entirely; it now resolves per theme. - Set body line-height and font smoothing; collapse near-duplicate font sizes onto canonical scale steps. - Rebuild the auth gate with classes and replace hardcoded colours (#ff6b6b, #9aa4b5) with theme variables so it renders correctly in every theme. - Add an opacity fade on tab switches, gated by prefers-reduced-motion. - Extend focus-visible rings to the spectrum canvas, tabindex controls and links. - Add a self-theming --accent-text token to lift accent-coloured text (links, active tab) to WCAG AA without altering brand fills. Co-authored-by: Claude Opus 4.8 Claude-Session: https://claude.ai/code/session_01NFpGtGTWUEYXLwZeZs2RAV Signed-off-by: Stan Grams --- .../trx-frontend-http/assets/web/index.html | 22 +- .../trx-frontend-http/assets/web/style.css | 216 ++++++++++++++---- 2 files changed, 177 insertions(+), 61 deletions(-) diff --git a/src/trx-client/trx-frontend/trx-frontend-http/assets/web/index.html b/src/trx-client/trx-frontend/trx-frontend-http/assets/web/index.html index 232b0845..569c3084 100644 --- a/src/trx-client/trx-frontend/trx-frontend-http/assets/web/index.html +++ b/src/trx-client/trx-frontend/trx-frontend-http/assets/web/index.html @@ -104,24 +104,24 @@ SPDX-License-Identifier: GPL-2.0-or-later -