codex icon indicating copy to clipboard operation
codex copied to clipboard

Control over color theme in TUI

Open doggy8088 opened this issue 1 year ago • 31 comments

The color theme of the Codex CLI is a MUST for customization.

doggy8088 avatar Jul 18 '25 18:07 doggy8088

Something similar to “posting”

MiguelRipoll23 avatar Sep 20 '25 11:09 MiguelRipoll23

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 ->

Image

level hard ->

Image

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?

drswobodziczka avatar Sep 27 '25 16:09 drswobodziczka

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.

PaulRBerg avatar Oct 03 '25 18:10 PaulRBerg

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.

boris-lapouga avatar Oct 06 '25 14:10 boris-lapouga

Google's gemini-cli has some great support for color themes as well, under the /theme command.

arsaccol avatar Oct 08 '25 08:10 arsaccol

Color improvements will probably come after the release of GPT-6.

heeseon87 avatar Oct 16 '25 01:10 heeseon87

Image

Here's how it looks for me after update. 100% unusable

Edit: works with export TERM=dumb which loses me other syntax highlighting

rr- avatar Oct 16 '25 08:10 rr-

Image Here's how it looks for me after update. 100% unusable

Edit: works with export TERM=dumb which loses me other syntax highlighting

I had the same, solved it by restarting the terminal app

Elijas avatar Oct 17 '25 04:10 Elijas

yes this is painful, I can barely read in darkmode

Image

Hargbratch avatar Nov 16 '25 03:11 Hargbratch

ahh this is intentional, how unfortunate

Image

Hargbratch avatar Nov 16 '25 05:11 Hargbratch

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.

Image

edit: you'll wanna add it to your PATH then too....

Hargbratch avatar Nov 16 '25 05:11 Hargbratch

使用 codex 修改了 codex 配色。但它的总结内容,还是没有 claude code 那样易读。 Image

zomem avatar Nov 18 '25 01:11 zomem

使用 codex 修改了 codex。但它的总结内容,还是没有 claude 代码那样易读。 图像

To be honest, this display style is already excellent compared to the existing one.

Wan9xy avatar Nov 20 '25 01:11 Wan9xy

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.

uhs-robert avatar Dec 02 '25 16:12 uhs-robert

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.

Eriz1818 avatar Jan 25 '26 13:01 Eriz1818

I implemented /themes (theme selection + theming support) in my fork, xCodex (xcodex).

Will you open a pull request to this feature?

Chavao avatar Jan 28 '26 14:01 Chavao

@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.

etraut-openai avatar Jan 28 '26 16:01 etraut-openai

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.

Eriz1818 avatar Jan 29 '26 08:01 Eriz1818

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

mert-kurttutan avatar Feb 17 '26 17:02 mert-kurttutan

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

I second this. codex should at least give the possibility to use ANSI colors. The hardcoding is terrible

tummetott avatar Feb 18 '26 10:02 tummetott