Skip to content

fix(gui): light-theme AA — status foregrounds, control borders, accent - #253

Merged
CameronBrooks11 merged 1 commit into
mainfrom
fix/247-light-theme-aa
Jun 27, 2026
Merged

CameronBrooks11 merged 1 commit into
mainfrom
fix/247-light-theme-aa

Conversation

@CameronBrooks11

Copy link
Copy Markdown
Member

Closes #247. Part of epic #246 (post-redesign audit follow-ups).

Problem

The repeat design audit found the light theme did not meet the "light + dark both AA" goal:

  • [HIGH] status colors (error/warning/success/info) had no light-theme override → 2.2–3.8:1 on near-white surfaces.
  • [MED] --color-border was ~1.4:1 on the input fill (its comment falsely claimed 3:1) → input/select/fieldset boundaries fail WCAG 1.4.11.
  • [MED] teal accent on white was below threshold for focus rings, links, active icons.

Fix

  • Split the overloaded status tokens: --status-* stays the saturated fill (button backgrounds, paired with --color-text-inverse — untouched, re-verified ≥4.5:1 both themes). New --status-*-fg foreground layer for text/icons/dots/borders — bright on dark panels, darkened per-theme in the light blocks (#c62828 / #b45309 / #15803d / #1d4ed8 / #a16207). All foreground usages repointed across shell/machine/canvas/editors/dialogs/notifications.
  • --color-border-control (dark #707079, light #7b8699, both ≥3:1 on the panel-alt fill) for inputs/selects/fieldsets; --color-border stays the hairline separator. Misleading comment corrected.
  • On-white accent: --color-border-focus and --color-primary-soft → #0b766b in light blocks; .icon-btn--active and the layer-row focus outline now use the theme-aware tokens.

All contrast values WCAG-verified with a contrast calculator.

Verification

  • lint:css, lint:css:vars, check:svelte (0 errors), tsc, 316/316 tests ✓
  • Live Chrome QA in light theme: "Preview failed" error text now a readable deeper red, inputs show visible control borders, status dot darkened, teal accent preserved; dark theme unchanged.

The light theme fell short of the "light + dark both AA" goal. Three fixes:

- Status colors had no light-theme override and rendered at 2.2–3.8:1 on
  near-white surfaces. Split the overloaded status tokens into a saturated
  fill layer (--status-*, unchanged — button backgrounds keep pairing with
  --color-text-inverse) and a new foreground layer (--status-*-fg) for
  text/icons/dots/borders. Foregrounds are bright on dark panels and darkened
  per-theme in the light blocks (error #c62828, warning #b45309, success
  #15803d, info #1d4ed8, caution #a16207) to clear 4.5:1 text / 3:1 graphical.
- Input/select/fieldset boundaries used --color-border (~1.4:1), failing
  WCAG 1.4.11 despite a comment claiming 3:1. Added --color-border-control
  (dark #707079, light #7b8699 — both >=3:1 on the panel-alt fill) and pointed
  controls at it; --color-border stays the hairline separator. Comment fixed.
- The teal accent on white was below threshold for focus rings, links, and
  active icons. Darkened --color-border-focus and --color-primary-soft to
  #0b766b in the light blocks; .icon-btn--active and the layer row focus
  outline now use those theme-aware tokens. Filled primary button unchanged.

All status foreground usages repointed to --status-*-fg across the shell,
machine, canvas, editors, dialogs, and notification CSS. Contrast values
verified; filled danger/warn buttons re-checked (>=4.5:1 in both themes).

Part of #246. Closes #247.
@CameronBrooks11
CameronBrooks11 merged commit 3af3447 into main Jun 27, 2026
18 checks passed
@CameronBrooks11
CameronBrooks11 deleted the fix/247-light-theme-aa branch June 27, 2026 14:53
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.

GUI: light-theme AA — status colors, borders, on-white accent

1 participant