Low-contrast syntax highlighting for some Ruby tokens in dark terminals

Resolved 💬 2 comments Opened Apr 3, 2026 by g-pavlik Closed Apr 3, 2026

Description

Some syntax tokens in Claude Code's terminal code blocks have very low contrast against dark backgrounds, making them nearly unreadable. Specifically, Ruby's delegate keyword renders in a dim gray that's barely visible. (This is Ruby code)

Screenshot

The delegate line is almost invisible against the dark terminal background:

!low-contrast-delegate

Environment

  • Claude Code CLI on Alacritty terminal
  • Dark colorscheme (TokyoNight Night, background ~#1a1b26)
  • NixOS / Hyprland

Expected behavior

All syntax tokens should have sufficient contrast against both dark and light terminal backgrounds, or Claude Code should respect the terminal's color palette.

Notes

Claude Code does its own syntax highlighting for code blocks independent of the terminal colorscheme. There's currently no way for users to configure or override these colors.

🤖 Generated with Claude Code

View original on GitHub ↗

This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗