# Fix Ayu Dark/Mirage dim terminal colors appearing as white \(\#51462\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/b6fec83e72a0d5fcce99148102bd6361512ea52f)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: b6fec83e72a0d5fcce99148102bd6361512ea52f

Requested commit: b6fec83e72a0d5fcce99148102bd6361512ea52f

Commit: b6fec83e72a0d5fcce99148102bd6361512ea52f

Tree: 9caea86b6d85c418f6cf75b9761dc88279c63a98

Author: tiwari91

Committer: GitHub

## Message

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

## 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.

Co-authored-by: Danilo Leal <daniloleal09@gmail.com>
```

## Parents

- [0e2ce490656687ac1dce16fd581898517cf0534f](https://git.cafe/gitcafe/zed/commit/0e2ce490656687ac1dce16fd581898517cf0534f?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/b6fec83e72a0d5fcce99148102bd6361512ea52f?format=markdown)
