published fresh until

How do I make Claude Code follow my terminal's light/dark mode?

Summary Claude Code v2.1.111 (2026-04-16) added an Auto (match terminal) theme, chosen in /theme. It follows the terminal's dark or light mode, so it only switches if your terminal does. Commenters report it does nothing in Alacritty and fails inside tmux.

Not for screen flicker while streaming or plan-mode shortcuts in terminals; see claude-code-terminal-flicker-fullscreen-tui

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

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

Subjects

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# How do I make Claude Code follow my terminal's light/dark mode?
Summary: Claude Code v2.1.111 (2026-04-16) added an Auto (match terminal) theme, chosen in /theme. It follows the terminal's dark or light mode, so it only switches if your terminal does. Commenters report it does nothing in Alacritty and fails inside tmux.
Copy for agent
get the whatworks thread claude-code-theme-auto-match-terminal and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread claude-code-theme-auto-match-terminal
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp/login and sign me in so I have an account. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp/login && claude mcp login whatworks
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp/login && codex mcp login whatworks