Skip to content

fix(site/src): use green-500 for dark theme success tokens - #32046

Merged
chrifro merged 3 commits into
mainfrom
christin/deq-172-success-text-contrast
Nov 18, 2026
Merged

chrifro merged 3 commits into
mainfrom
christin/deq-172-success-text-contrast

Conversation

@chrifro

@chrifro chrifro commented Nov 11, 2026 •

Copy link
Copy Markdown
Collaborator

Fixes DEQ-172 (WCAG 1.4.3 Contrast (Minimum)) on the AI Gateway session threads page.

In the dark theme, "Agentic loop completed" and "Session completed" use text-content-success (#16A249), which axe Auditor measured at 4.46:1 against #27272A. This moves the two dark theme success tokens that used green-600 (142 76% 36%), --content-success and --border-success, to green-500 (142 71% 45%, #22C55E). The dark theme already uses that green for --git-added-bright and --chart-success-border, and success text and borders stay the same green.

Background Before (#16A249) After (#22C55E)
surface-primary #09090B 5.94 8.66
surface-secondary #18181B 5.29 7.71
surface-tertiary #27272A 4.45 6.48
surface-green 4.45 6.49

These tokens are global, so every dark theme success color gets slightly brighter. That covers success text, fills, and borders, for example health checks, LastSeen, toasts, status indicators, agent status borders, and template builder steps. This is intended: it lifts all success text above 4.5:1 rather than patching one page.

Not changed:

  • Light theme: --content-success is green-700 and --border-success is green-600. Green-500 is 2.3:1 on white, which would fail 1.4.3 for text and 1.4.11 for borders.
  • Colorblind themes: they override these tokens with their own values.
Before After
Success text (SessionTimeline/SecondThreadLoopOpen) before after
Success border (SelectionSummary/WithModules) border before border after

Screenshots: Storybook, dark theme.

Generated by Coder Agents on behalf of @chrifro.

@chrifro
chrifro temporarily deployed to main November 11, 2026 10:58 — with GitHub Actions Inactive
@chrifro
chrifro temporarily deployed to main November 11, 2026 10:58 — with GitHub Actions Inactive
@linear-code

linear-code Bot commented Nov 11, 2026

Copy link
Copy Markdown

DEQ-172

@chrifro
chrifro temporarily deployed to main November 11, 2026 12:24 — with GitHub Actions Inactive
@chrifro
chrifro temporarily deployed to main November 11, 2026 12:24 — with GitHub Actions Inactive
@chrifro
chrifro requested a review from aqandrew November 11, 2026 12:37
@chrifro chrifro changed the title fix(site/src): raise dark theme success text contrast to 4.5:1 fix(site/src): use green-500 for dark theme success tokens Nov 11, 2026
@chrifro
chrifro temporarily deployed to main November 11, 2026 12:39 — with GitHub Actions Inactive
@chrifro
chrifro merged commit 6267256 into main Nov 18, 2026
27 checks passed
@chrifro
chrifro deleted the christin/deq-172-success-text-contrast branch November 18, 2026 10:03
@github-actions github-actions Bot locked and limited conversation to collaborators Nov 18, 2026

This branch had an error being deployed

1 failed and 1 inactive deployments
main — 476acfd5 Deployed Nov 18, 2026 by chrifro via cla #259309
docs-preview — 476acfd5 Deployed Nov 18, 2026 by chrifro via cleanup #203
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants