TUI means terminal user interface: the interactive Codex session opened by running codex.
Does /theme save my choice?
Confirming a theme saves the syntax-highlighting choice as tui.theme in config.toml.
Can I use a custom theme?
Place a .tmTheme file in $CODEX_HOME/themes and select it from the picker.
How can I switch back?
Open /theme and select your previous theme.
Evidence and limitations
Applies to
Codex CLI TUI
Version evidence
Current official documentation
Evidence sources
Official CLI customization, command and configuration documentation.
Evidence observed
2026-10-04
Verification
Official-docs reviewed; not manually tested in every terminal environment.
Rights / permission reference
Original editorial text by CodexSkin.space; external sources are linked for evidence.
Asset hosting
external-original-only; cited third-party assets are not rehosted.
Last reviewed
2026-10-04
Independent notice
CodexSkin.space is an independent community guide site and is not affiliated with, endorsed by, or sponsored by OpenAI. “OpenAI,” “Codex,” and “ChatGPT” may be trademarks of their respective owners.
External links are source links for evaluation. This guide does not certify safety, security, compatibility, quality, rights, or suitability.
Risk notes
Theme colors depend on your terminal and the selected theme. This setting controls syntax highlighting in code blocks and diffs.
Rollback
Open /theme again and select your previous theme. If you edited config.toml manually, restore its previous tui.theme value.