fix(desktop): improve light theme terminal color contrast

Closed
KI
1y ago
+94-22

Summary

  • Fix invisible text in terminal when using light theme (especially in Claude Code diffs)
  • Update brightWhite from #ffffff to #1a1a1a - was completely invisible on white background
  • Darken all ANSI colors for proper contrast on light backgrounds

Test plan

  • Switch to light theme in desktop app
  • Run Claude Code and trigger a diff (e.g., make a code change)
  • Verify all diff text is visible and readable
  • Check that other terminal colors (red for removals, green for additions) have good contrast

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Style

    • Refined light terminal color palette for improved contrast and readability on light backgrounds; adjusted standard and bright colors, cursors, and selections.
  • New Features

    • Terminal sessions can now accept a dark/light theme preference and will set a matching terminal environment variable.
    • Light theme exposes extended 256-color ANSI palette and an inactive selection background for richer, more consistent terminal rendering.

✏️ Tip: You can customize this high-level summary in your review settings.