Skip to content

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

Closed

Description

@CameronBrooks11

Part of #246. Blocker. The light theme does not actually meet AA — the original brief said "light + dark both AA."

Findings (verified)

  • [HIGH] Status colors have no light-theme override. src/styles/tokens.css:76-100 — the [data-theme=light] block (~156-176) and the prefers-color-scheme: light block (~179-201) override surface/text/border/primary-soft/slate/blue but never --color-error/-warning/-success/-info. The dark-tuned hexes render as text/icons on near-white: success 2.28:1, info 2.21:1, warning 2.80:1, error 3.76:1 — all below the 4.5:1 text threshold. Affects notifications, diagnostics status text, empty-state error titles, toast icons, stream-log error rows.
  • [MED] --color-border is not the 3:1 its comment claims. tokens.css:53 — comment says "~3:1 on panel — meets WCAG 1.4.11"; measured 1.39–1.66:1 against the actual input fill in both themes, so input/select/fieldset boundaries fail 1.4.11. The misleading comment reads as a guarantee and is itself a hazard.
  • [MED] Teal accent fails on white in light theme. --color-primary #12a89a ≈ 2.96:1 on white (used for focus rings, .icon-btn--active, row focus outline — below the 3:1 non-text min); --color-primary-soft link ≈ 3.98:1 (below 4.5:1).

Acceptance

  • Add darker light-theme variants for each status color in both light blocks (e.g. error ~#c62828, warning ~#b45309, success ~#15803d, info ~#1d4ed8); verify each usage site reaches 4.5:1 text / 3:1 icon+border on white.
  • Strengthen --color-border to genuinely hit 3:1 against the input fill, or add a dedicated --color-border-control for inputs/selects/fieldsets; correct the comment either way.
  • Darken the on-white accent (focus/active/link) for light theme only — the filled primary button already passes via inverse text, so leave that.
  • Spot-check with a contrast tool; full gate (lint:css, check:svelte, test) + live light-theme QA.

Activity

  1. added
    enhancement
    gui
    on Jun 27, 2026
  2. added a commit that references this issue on Jun 27, 2026
    3af3447
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementgui

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions