rose-pine / rose-pine/zed

Low contrast for enum names when semantic tokens are enabled (Rust)

Open
#26 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
No language data
Stars
66
Forks
13
PR merge metrics
No merged PRs in 30d

Description

Since Zed added official semantic tokens support for syntax highlighting, when enabled, rose-pine's color selection for enum names in Rust isn't good as it's very low contrast, and inconsistent with struct names.

Zed (latest with "semantic_tokens": "combined"):
Image

VS Code:
Image

I don't like how the enum name (ColorTest) is this dark. It's harder to scan the code, as it just blends in with regular keywords. struct names look good, so this is almost certainly unintended.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the theme rules that control Rust enum and struct names when Zed semantic tokens are enabled. Compare the enum-name color with struct names and the provided VS Code reference; done means enum names have readable contrast and are visually consistent with struct names.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
design
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.