macOS light terminal mode makes some Claude Code diff text invisible
Bug description
On macOS, when using a light terminal theme, some text rendered by Claude Code can become nearly invisible because the text color matches or is too close to the terminal background color.
This is especially noticeable in diff/code rendering views. In the screenshot below, part of the rendered text is effectively hidden due to insufficient contrast.
Environment
- OS: macOS
- Terminal theme: Light mode
- Product: Claude Code
- Model: gpt-5.4
- Claude Code version: 2.1.87.d34
Steps to reproduce
- Open Claude Code in a terminal configured with a light theme on macOS.
- Trigger a response that renders a code diff or syntax-highlighted block.
- Observe that some tokens/text use colors with very low contrast against the light background.
Expected behavior
All rendered text should remain readable in light terminal themes, with sufficient contrast between foreground and background.
Actual behavior
Some text colors appear too close to the terminal background color, making portions of the content difficult or impossible to read.
Notes
This looks like a terminal color / theme contrast issue in Claude Code’s rendering logic for diffs or syntax highlighting. It may need:
- a light-theme-safe color palette
- automatic contrast adjustment
- or a fallback to default terminal foreground colors in low-contrast cases
This issue has 5 comments on GitHub. Read the full discussion on GitHub ↗