Skip to content

feat(gui): redesign phase 1 — tokens & global CSS for figure/ground - #239

Merged
CameronBrooks11 merged 1 commit into
mainfrom
feat/gui-redesign-phase1-tokens
Jun 27, 2026
Merged

CameronBrooks11 merged 1 commit into
mainfrom
feat/gui-redesign-phase1-tokens

Conversation

@CameronBrooks11

Copy link
Copy Markdown
Member

Part of the GUI redesign epic #238. Implements Phase 1 (#235): pure token / global-CSS value changes, no component restructure.

Changes

  • Figure/ground (the one high-severity audit finding): widen the dark surface ramp and add --color-bg-canvas so the viewport reads as the lit work surface instead of merging with the rails.
  • Borders: --color-border #242428 → #3a3a40 (~1.2:1 → ~3:1, WCAG 1.4.11) — inputs/panels are now clearly bounded.
  • Single accent: retire the teal-adjacent success hue (#32d2b6 → #22c55e) so green stops colliding with brand teal; align soft error/warning to saturated values.
  • Type/text: add --color-text-label; prune the redundant 15px (--font-size-md) rung.
  • Light theme AA: deepen the ground (#f9f9fb → #eef0f4) so white panels float; keep dark text on teal (--color-text-inverse → #08201e) — white was a 2.9:1 fail.
  • Reduced motion: global prefers-reduced-motion block zeroing the transition tokens (no !important, which stylelint forbids); hover transitions added to .vp__btn, .toast__close, .log__btn.

Verification

  • lint:css, lint:css:vars, check:svelte (0 errors), tsc, 315/315 vitest all green.
  • QA'd live on npm run tauri dev (real backend): figure/ground confirmed in both dark and light themes.

Refs #235

Widen the dark surface ramp and add a dedicated --color-bg-canvas so the
viewport reads as the lit figure instead of merging with the rails. Raise
--color-border to ~3:1 on panels (WCAG 1.4.11). Make teal the single accent
by retiring the teal-adjacent success hue (#32d2b6 -> #22c55e) and aligning
the soft error/warning tokens to their saturated values. Add --color-text-label
and prune the redundant 15px type rung. Fix light theme: deepen the ground so
panels float and keep dark text on teal fills (white was a 2.9:1 AA fail).
Honor prefers-reduced-motion by zeroing the transition tokens (no !important,
which stylelint forbids).

Refs #235
@CameronBrooks11
CameronBrooks11 merged commit dd43650 into main Jun 27, 2026
18 checks passed
@CameronBrooks11
CameronBrooks11 deleted the feat/gui-redesign-phase1-tokens branch June 27, 2026 04:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant