Repository navigation
fix(gui): light-theme AA — status foregrounds, control borders, accent - #253
Merged
Merged
Conversation
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.
Closed
6 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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:
error/warning/success/info) had no light-theme override → 2.2–3.8:1 on near-white surfaces.--color-borderwas ~1.4:1 on the input fill (its comment falsely claimed 3:1) → input/select/fieldset boundaries fail WCAG 1.4.11.Fix
--status-*stays the saturated fill (button backgrounds, paired with--color-text-inverse— untouched, re-verified ≥4.5:1 both themes). New--status-*-fgforeground 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-borderstays the hairline separator. Misleading comment corrected.--color-border-focusand--color-primary-soft→#0b766bin light blocks;.icon-btn--activeand 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 ✓