[BUG] Error text color too dark on dark terminal backgrounds
Preflight Checklist
- [x] I have searched existing issues and this hasn't been reported yet
- [x] This is a single bug report (please file separate reports for different bugs)
- [x] I am using the latest version of Claude Code
What's Wrong?
Description
The error text color used in CLI output (e.g., /sandbox command errors) uses rgb(171, 43, 63) — a dark
burgundy/red that's difficult to read on dark terminal backgrounds.
Example
Running /sandbox when settings are overridden produces:
Error: Sandbox settings are overridden by a higher-priority configuration and cannot be changed locally.
The ANSI escape uses a dark red that has poor contrast against common dark themes (e.g., iTerm2 default
dark, VS Code terminal dark).
Suggestion
Use a brighter red variant (e.g., rgb(255, 85, 85) or rgb(239, 68, 68)) for error messages to improve
readability across both light and dark terminal backgrounds.
Environment
- macOS
- Terminal: dark background theme
<img width="868" height="114" alt="Image" src="https://github.com/user-attachments/assets/955a1792-2c0b-422d-8a8e-974bbf94dcd3" />
What Should Happen?
The red text for errors should be readable in dark mode.
Error Messages/Logs
Steps to Reproduce
Make an error happen
Claude Model
Sonnet (default)
Is this a regression?
No, this never worked
Last Working Version
_No response_
Claude Code Version
2.1.107 (Claude Code)
Platform
Anthropic API
Operating System
macOS
Terminal/Shell
Warp
Additional Information
_No response_
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗