#18831: feat(tui): add light theme support for light terminal backgrounds
cli
size: M
## Summary
Adds `--theme` flag to `openclaw tui` with three modes:
- `dark` (default): existing dark theme
- `light`: new light-friendly palette
- `auto`: detect terminal background via OSC 11
## Changes
- `src/tui/theme/theme.ts`: Add light theme colors and auto-detection
- `src/cli/tui-cli.ts`: Add `--theme` CLI flag
- `src/tui/theme/syntax-theme.ts`: Export theme mode type
## Testing
Tested with GNOME Terminal (Tango Light theme):
- `openclaw tui --theme light` - readable on light backgrounds
- `openclaw tui --theme auto` - correctly detects and applies theme
Closes #16067
Most Similar PRs
#5509: Fix TUI crash when terminal window is too narrow
by omar-khaled-2 · 2026-01-31
55.6%
#4035: fix(tui): ensure UI updates when status changes
by willerxar-cmyk · 2026-01-29
55.6%
#13356: ui: align Thinking button active state in light theme with dark theme
by yamoroc · 2026-02-10
54.9%
#4109: fix(cli): bypass config guard for tui --url
by hopenjin · 2026-01-29
53.5%
#10802: feat: add ui.waitingPhrases config for custom spinner verbs
by eyekron · 2026-02-07
53.4%
#18942: fix(tui): trigger render after finalizing chat assistant message
by BinHPdev · 2026-02-17
53.4%
#20392: feat(tui): add image attachment support via /image command and drag...
by markshields-tl · 2026-02-18
53.1%
#23071: fix(tts): make config auto=off a hard-disable that overrides user p...
by hydro13 · 2026-02-22
52.6%
#23678: fix(ui): Control UI shows no guidance on 1008 pairing required (#23...
by yinghaosang · 2026-02-22
52.2%
#23764: feat(tui): render inline images via MEDIA: protocol and pi-tui Image
by ademczuk · 2026-02-22
52.0%