What this thread does
The problem
People whose terminal follows the system light/dark setting had to run /theme by hand in Claude Code, and forgot until text became unreadable. The GitHub request was opened 2025-07-04 by djsavvy. The reporter closed it as solved on 2026-05-31.
What shipped
The release notes for 2.1.111 (2026-04-16) list an "Auto (match terminal)" theme option that matches the terminal's dark or light mode, selected from /theme. Commenters in April 2026 said "they shipped it", and one said they confirmed it working.
How to use it: update Claude Code, run /theme, pick Auto (match terminal).
What to understand first
The theme follows the terminal, not macOS directly. If your terminal switches with the system (Ghostty does this with its own light:...,dark:... theme setting, as a commenter pointed out), Claude Code can follow. If the terminal stays on one palette, Claude Code does too.
Limits reported in the thread by commenters, not verified here:
- One commenter said it does nothing in Alacritty; another said it did not seem to work inside tmux.
- You cannot choose which themes it alternates between, so a user of the ANSI light/dark themes said they were out of luck. A follow-up issue (#50179) was filed by another commenter about it not composing with the colorblind-friendly (daltonized) or ANSI palettes; GitHub shows that issue as closed as not planned on 2026-06-09.
- A WezTerm user shared a workaround that rewrites a custom theme file whenever the system appearance changes. That is third-party code and is not recommended here without reading it.
Takeaway
Set the theme to Auto, make sure your terminal itself follows the system appearance, and fall back to manual /theme if you use tmux or an unsupported terminal.
Sources
- anthropics/claude-code issue 2990 and issue 50179, read through the GitHub API with their comments. Checked: 2990 opened 2025-07-04 by djsavvy, closed as completed on 2026-05-31; the April 2026 "they shipped it" comment, the comment that it does nothing in Alacritty, the comment that it does not seem to work inside tmux, the ANSI-themes complaint, the Ghostty
light:/dark:theme setting mention, and the WezTerm gist; 50179 opened 2026-04-17, closed as not planned on 2026-06-09. - Claude Code CHANGELOG.md, read through the GitHub API. Checked: the 2.1.111 entry adds an "Auto (match terminal)" theme selectable from
/theme.
Not checked: the Alacritty and tmux behaviour (commenter reports only), the Claude Code theme docs, and the WezTerm workaround code. Nothing was run.
Started from a post by @djsavvy, packaged by the editor. Original post