Control over color theme in TUI
The color theme of the Codex CLI is a MUST for customization.
Something similar to “posting”
At the moment when using codex in a little bit dark terminal (warp) but with the background looking kind of gray then the cursor which is black is completely not visible Just take a look at the screen.
level easy ->
level hard ->
Can you see it? Yeah, I can't. :) But believe me, it's there.
So the question is, can I somehow customize the colors for the Codex CLI agent app?
Customization is one thing, but another thing is that the default color scheme is not great. OpenAI should improve it.
Coming from Claude Code, I find that Codex's color scheme makes text harder to read.
I support it. Current theme is totally unreadable. I understand that's a design language of OpenAI, but it's not a good fit for terminal development. No shame in copying from Claude Code, or allowing users to set some color codes for similar to CC "settings.json" file.
Google's gemini-cli has some great support for color themes as well, under the /theme command.
Color improvements will probably come after the release of GPT-6.
Here's how it looks for me after update. 100% unusable
Edit: works with export TERM=dumb which loses me other syntax highlighting
Here's how it looks for me after update. 100% unusable
Edit: works with
export TERM=dumbwhich loses me other syntax highlighting
I had the same, solved it by restarting the terminal app
yes this is painful, I can barely read in darkmode
ahh this is intentional, how unfortunate
for those who simply cannot live with it, clone the repo, get rustup going on your machine, run this command: rg -l --fixed-strings '.dim()' | xargs -r sed -i 's/\.dim()/\.light_cyan()/g' followed by cargo run --bin codex inside of codex/codex-rs - it doesn't take that long and it sure is an improvement.
edit: you'll wanna add it to your PATH then too....
使用 codex 修改了 codex 配色。但它的总结内容,还是没有 claude code 那样易读。
使用 codex 修改了 codex。但它的总结内容,还是没有 claude 代码那样易读。
To be honest, this display style is already excellent compared to the existing one.
Competitors, like Gemini, offer a vastly superior customization experience with /theme and offer fully comprehensive customization options as well.
- Users can opt to use their native terminal's ANSI colors
- Users can select from pre-packaged popular color schemes like Atom One, Ayu, Dracula, etc.
- Users can create their own custom color scheme via JSON, like so:
{ "AccentBlue": "#519BFF", "AccentCyan": "#5ABAAE", "AccentGreen": "#53D390", "AccentPurple": "#C28EFF", "AccentRed": "#D06666", "AccentYellow": "#F0E68C", "Background": "#101825", "Comment": "#467B99", "DiffAdded": "#8DCD7E", "DiffModified": "#D4A017", "DiffRemoved": "#A23B3B", "Foreground": "#D9E6FA", "GradientColors": [ "#1CA0FD", "#FFA0A0", "#FFA247" ], "Gray": "#30556d", "LightBlue": "#87CEEB", "name": "Oasis Lagoon", "type": "custom" }
This level of customization is the bar set by competitors. This should be the bar that Codex aims to reach at the very minimum if Codex wants to consider itself a competitor.
I implemented /themes (theme selection + theming support) in my fork, xCodex (xcodex).
xCodex only (WIP): https://github.com/Eriz1818/xCodex Docs: https://github.com/Eriz1818/xCodex/blob/main/docs/xcodex/themes.md
What it adds:
- Repo-local theme files (YAML) and a built-in theme catalog with 400+ themes.
- /themes to browse/select themes (and preview in the TUI).
- config.toml support to set theme mode and default light/dark themes.
- custom themes can be added, there are roles for multiple things, more can be added
- you can have different themes for light and dark modes in the OS
Example (config): [themes] dir = "$CODEX_HOME/themes" theme_mode = "auto" # auto|light|dark light = "default" dark = "default"
Notes:
- This is UI/theming only; no model behavior changes.
I implemented /themes (theme selection + theming support) in my fork, xCodex (xcodex).
Will you open a pull request to this feature?
@Chavao, this feature needs to be designed before we jump into an implementation. If you'd like to suggest a design proposal, you could post here in this thread.
I implemented /themes (theme selection + theming support) in my fork, xCodex (xcodex).
Will you open a pull request to this feature?
@Chavao According to the contribution guidelines, Codex doesn't allow PRs for features. So, unfortunately, no.
I implemented /themes (theme selection + theming support) in my fork, xCodex (xcodex).
Will you open a pull request to this feature?
@Chavao According to the contribution guidelines, Codex doesn't allow PRs for features. So, unfortunately, no.
I have read their reasoning in the relevant markdown document still seems not ideal solution. At least you can adapt something similar to the policy of Ghostty codebase where you get vouched after you provided reasonable outline for your contribution through discussions. This seems like redundant gatekeeping slowing down potentially good PRs
Competitors, like Gemini, offer a vastly superior customization experience with
/themeand offer fully comprehensive customization options as well.
- Users can opt to use their native terminal's ANSI colors
- Users can select from pre-packaged popular color schemes like Atom One, Ayu, Dracula, etc.
- Users can create their own custom color scheme via JSON
I second this. codex should at least give the possibility to use ANSI colors. The hardcoding is terrible
Here's how it looks for me after update. 100% unusable
