Skip to content

fix(themes): fix WCAG AA contrast failures in 3 built-in themes#115

Merged
johannesjo merged 3 commits into
johannesjo:mainfrom
brooksc:task/contrast-a845df
May 16, 2026
Merged

fix(themes): fix WCAG AA contrast failures in 3 built-in themes#115
johannesjo merged 3 commits into
johannesjo:mainfrom
brooksc:task/contrast-a845df

Conversation

@brooksc
Copy link
Copy Markdown
Contributor

@brooksc brooksc commented May 16, 2026

Summary

Three built-in themes had accent/border-focus colors that failed the WCAG AA minimum contrast ratio of 4.5:1 against their respective backgrounds. This caused accessibility issues for users who rely on sufficient color contrast (e.g. low-vision users, or users in bright environments).

Changes

Theme Property Old color New color Old ratio New ratio
classic --accent, --border-focus #4c6fff #4267ff 4.17:1 4.55:1
islands-dark --accent, --border-focus #548af7 #286cf5 3.30:1 4.61:1
islands-light --accent, --border-focus #3574f0 #2c6def 4.27:1 4.60:1

All three now meet WCAG AA (≥ 4.5:1). The hue shifts are minimal and the visual appearance of each theme is essentially unchanged.

What these colors affect

  • Primary button backgrounds
  • Focused input/textarea border rings
  • Active task highlight in the sidebar
  • Keyboard focus outlines
  • Active terminal pane border

Testing

Switch between the classic, islands-dark, and islands-light themes in settings and verify buttons, focused inputs, and selected tasks look correct. Contrast ratios can be confirmed with the browser/DevTools accessibility inspector.

brooksc and others added 2 commits May 15, 2026 19:51
- classic:       #4c6fff → #4267ff  (4.17→4.55:1 on #0d1117)
- islands-dark:  #548af7 → #286cf5  (3.30→4.61:1 on #0f1923)
- islands-light: #3574f0 → #2c6def  (4.27→4.60:1 on #f5f7fa)
@johannesjo
Copy link
Copy Markdown
Owner

@copilot resolve the merge conflicts in this pull request

@johannesjo
Copy link
Copy Markdown
Owner

Thank you very much for this! <3

@johannesjo johannesjo merged commit 2d49608 into johannesjo:main May 16, 2026
2 checks passed
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.

2 participants