claude-code icon indicating copy to clipboard operation
claude-code copied to clipboard

Add system theme support (auto-switch between light/dark)

Open IrumiDesu7 opened this issue 4 months ago • 5 comments

Description

Claude Code should support following the system theme, automatically switching between light and dark modes based on OS preferences.

Current Behavior

Claude Code has theme settings accessible via /theme or /config commands, allowing users to manually select between light and dark themes. However, there is no option to automatically follow the system theme.

Desired Behavior

Similar to VS Code's system theme support, Claude Code should automatically switch themes based on OS preferences.

VS Code implements this with settings like:

{
  "window.autoDetectColorScheme": true,
  "workbench.preferredDarkColorTheme": "Solarized Dark",
  "workbench.preferredLightColorTheme": "Solarized Light"
}

Claude Code should offer similar functionality:

  • Automatically switch to dark theme when system is in dark mode
  • Automatically switch to light theme when system is in light mode
  • Update in real-time when system theme changes (no restart required)

Use Case

Users who switch between light mode (daytime) and dark mode (nighttime) at the OS level expect all their development tools to follow the same preference. This creates a consistent experience across VS Code, terminals, and Claude Code.

Proposed Implementation

Add a new theme option alongside existing light/dark themes:

Via /theme command:

  • light (existing)
  • dark (existing)
  • auto or system (new - follow OS theme)

Or in ~/.claude/settings.json:

{
  "theme": "auto"
}

Environment

  • OS: macOS (though this should work on all platforms)

IrumiDesu7 avatar Nov 17 '25 23:11 IrumiDesu7

Found 3 possible duplicate issues:

  1. https://github.com/anthropics/claude-code/issues/2990
  2. https://github.com/anthropics/claude-code/issues/1148
  3. https://github.com/anthropics/claude-code/issues/1076

This issue will be automatically closed as a duplicate in 3 days.

  • If your issue is a duplicate, please close it and 👍 the existing issue instead
  • To prevent auto-closure, add a comment or 👎 this comment

🤖 Generated with Claude Code

github-actions[bot] avatar Nov 17 '25 23:11 github-actions[bot]

I have proposed a simple config that might helps

IrumiDesu7 avatar Nov 17 '25 23:11 IrumiDesu7

my current workaround: https://github.com/durandom/dotfiles/commit/29c6a04db06fd1f09a4924541abbeb469ebfdc25

  • a script to set the theme
  • hook into wezterms auth theme switching

obviously heavily bound to macos and wezterm.

durandom avatar Dec 08 '25 08:12 durandom

+1

bjornbak avatar Jan 01 '26 05:01 bjornbak

+1

shuneihayakawa avatar Jan 06 '26 01:01 shuneihayakawa

This issue has been inactive for 30 days. If the issue is still occurring, please comment to let us know. Otherwise, this issue will be automatically closed in 30 days for housekeeping purposes.

github-actions[bot] avatar Feb 05 '26 10:02 github-actions[bot]

Still occurring

Digipom avatar Feb 06 '26 14:02 Digipom