Skip to content

Fix Ayu Dark/Mirage dim terminal colors appearing as white#51462

Merged
danilo-leal merged 2 commits intozed-industries:mainfrom
tiwari91:fix/46126-ayu-dark-dim-terminal-colors
Mar 16, 2026
Merged

Fix Ayu Dark/Mirage dim terminal colors appearing as white#51462
danilo-leal merged 2 commits intozed-industries:mainfrom
tiwari91:fix/46126-ayu-dark-dim-terminal-colors

Conversation

@tiwari91
Copy link
Copy Markdown
Contributor

@tiwari91 tiwari91 commented Mar 13, 2026

Summary

Closes #46126

Dim terminal colors in Ayu Dark and Ayu Mirage were defined as light pastels instead of muted/darker versions of the normal colors. On a dark background, the APCA minimum contrast algorithm boosted these already-light colors toward white, making "dimmed" text (e.g. zsh-autosuggestions) appear brighter than normal text.

Root cause

Color Ayu Dark (before) Ayu Dark (after) Pattern
dim_foreground #0d1016 (= background!) #85847f Muted foreground
dim_red #febab9 (light pink) #a74f53 70% of normal red
dim_green #d8eca8 (light pastel) #769735 70% of normal green
dim_yellow #ffd9aa (light pastel) #b17d3a 70% of normal yellow

The fix follows the same convention as Gruvbox and One Dark, where dim = ~70% brightness of the normal color.

Ayu Light was already correct (dim colors are darker, which is correct for light backgrounds).

Test plan

  • Open terminal in Zed with Ayu Dark theme
  • Enable zsh-autosuggestions (or any tool that uses dim/faint ANSI colors)
  • Type a partial command to trigger autosuggestions
  • Verify suggested text appears as muted/dim, not bright white
  • Repeat with Ayu Mirage theme
  • Verify Ayu Light theme is unaffected

Release Notes:

  • Improved some Ayu Dark/Mirage theme's terminal colors.

@cla-bot cla-bot bot added the cla-signed The user has signed the Contributor License Agreement label Mar 13, 2026
@zed-community-bot zed-community-bot bot added the first contribution the author's first pull request to Zed. NOTE: the label application is automated via github actions label Mar 13, 2026
@danilo-leal danilo-leal self-assigned this Mar 13, 2026
@danilo-leal
Copy link
Copy Markdown
Member

Heya, thanks for the PR! I think some other unrelated changes leaked through on it, though; mind cleaning those up?

Closes zed-industries#46126

The dim terminal colors in Ayu Dark and Ayu Mirage were defined as light
pastels (e.g. dim_red: #febab9) instead of muted/darker versions of the
normal colors. On a dark background, the minimum contrast algorithm would
boost these already-light colors toward white, making "dimmed" text appear
brighter than normal text.

This follows the same pattern used by Gruvbox and One Dark, where dim
colors are ~70% brightness of the normal color (e.g. dim_red: #a74f53
from normal red: #ef7177).

Ayu Light was already correct (its dim colors are darker, which is the
correct direction for dimming on a light background).
@tiwari91 tiwari91 force-pushed the fix/46126-ayu-dark-dim-terminal-colors branch from d675036 to 24ed3f4 Compare March 13, 2026 13:53
@tiwari91
Copy link
Copy Markdown
Contributor Author

Cleaned up — rebased on main so only the ayu.json theme changes are included now. Sorry about that!

Copy link
Copy Markdown
Member

@danilo-leal danilo-leal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@danilo-leal danilo-leal merged commit b6fec83 into zed-industries:main Mar 16, 2026
31 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla-signed The user has signed the Contributor License Agreement first contribution the author's first pull request to Zed. NOTE: the label application is automated via github actions

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Ayu Dark Theme Shows Dimmed Terminal Text as White

2 participants