Add system theme support (auto-switch between light/dark)
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) -
autoorsystem(new - follow OS theme)
Or in ~/.claude/settings.json:
{
"theme": "auto"
}
Environment
- OS: macOS (though this should work on all platforms)
Found 3 possible duplicate issues:
- https://github.com/anthropics/claude-code/issues/2990
- https://github.com/anthropics/claude-code/issues/1148
- 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
I have proposed a simple config that might helps
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.
+1
+1
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.
Still occurring