I use Ghostty themes as a small context system. Some terminals are for normal development, some are for writing, and some should look visibly dangerous before I type anything with production consequences.

This page is my reference for the colors I like and the commands to use them. My ghostty-dynamic-themes CLI applies a named Ghostty theme immediately to a running terminal session.

Switch colors from Ghostty.

Run this in the Ghostty tab or split I want to recolor:

ghostty-themes "TokyoNight Moon"

The background, text, cursor, and sixteen ANSI palette colors change immediately. There is no config edit or restart. The change lasts for the current terminal session; I run the command again in a new tab or window when I want the same colors there.

To explore the themes installed with my version of Ghostty:

ghostty-themes list
ghostty-themes list moon
ghostty-themes random
ghostty-themes --help

list moon searches theme names without caring about case. Applying a theme requires its exact, case-sensitive name; I keep quotes around names with spaces. The built-in theme is spelled Borland. random draws from the full installed collection.

The CLI reads named theme files from the Ghostty installation, so the available choices follow the installed Ghostty version. The hex values below are a palette reference; to switch colors, I use the theme’s name.

The short list.

These are the colors I keep coming back to. Each command applies that theme to the terminal where I run it.

ThemeWhy I use itCommand
Black MetalA quiet black workspace with restrained contrast.ghostty-themes "Black Metal"
BorlandLoud old-IDE blue and yellow for an unmistakable tab.ghostty-themes "Borland"
Coffee ThemeWarm, paper-like colors when I want a light terminal.ghostty-themes "Coffee Theme"
Django SmoothCalm green with bright text that is easy to recognize.ghostty-themes "Django Smooth"
Gruvbox Light HardEarthy light colors for writing and longer shell sessions.ghostty-themes "Gruvbox Light Hard"
Hot Dog StandA red-and-yellow alarm bell for high-risk work.ghostty-themes "Hot Dog Stand"
MedallionWarm bronze for focused sessions.ghostty-themes "Medallion"
Red AlertA red visual cue before typing commands with production consequences.ghostty-themes "Red Alert"
TokyoNight MoonDark blue with readable syntax colors for everyday coding.ghostty-themes "TokyoNight Moon"

For example, I can move from everyday coding to a clearly marked production session, then return to my usual colors:

ghostty-themes "Red Alert"
# Run the commands for this session.
ghostty-themes "TokyoNight Moon"

How I ask Codex to switch themes.

With my apply-theme and random-theme skills installed, I can ask Codex directly:

$apply-theme "TokyoNight Moon"
$random-theme

An agent can also call the installed CLI:

ghostty-themes "Django Smooth" --tty

--tty writes directly to terminals found in the process ancestry. The CLI also selects that route automatically when stdout is captured by an agent. This is why I use the CLI instead of asking an agent to print raw escape sequences into captured shell output.

A desktop-launched agent may have no ancestor terminal. In that case, I run this inside the Ghostty tab I want to change:

tty

If it prints /dev/ttys001, I give the agent this command, replacing the device with the actual output from my tab:

ghostty-themes "Django Smooth" --terminal /dev/ttys001

The device identifies that terminal session, so I check it again after closing or replacing the tab. If the CLI reports No terminal found, I use this explicit target or run the command directly in Ghostty.

If a theme cannot be found.

For Theme not found, I run ghostty-themes list and copy the exact name. For Ghostty themes not found, I check that Ghostty is installed. On macOS, the CLI normally reads /Applications/Ghostty.app/Contents/Resources/ghostty/themes; a different installation can be selected with --themes-dir:

ghostty-themes list --themes-dir "/path/to/ghostty/themes"
ghostty-themes "TokyoNight Moon" --themes-dir "/path/to/ghostty/themes"

Palette reference.

These are the background, foreground, and cursor colors for my short list. The CLI also applies each theme’s sixteen ANSI colors for shell and application output.

  • Black Metal: background #000000; foreground #c1c1c1; cursor #c1c1c1.
  • Borland: background #0000a4; foreground #ffff4e; cursor #ffa560.
  • Coffee Theme: background #f5deb3; foreground #000000; cursor #a1a1a1.
  • Django Smooth: background #245032; foreground #f8f8f8; cursor #4c7e5c.
  • Gruvbox Light Hard: background #f9f5d7; foreground #3c3836; cursor #3c3836.
  • Hot Dog Stand: background #ea3323; foreground #ffffff; cursor #ffff54.
  • Medallion: background #1d1908; foreground #cac296; cursor #d3ba30.
  • Red Alert: background #762423; foreground #ffffff; cursor #ffffff.
  • TokyoNight Moon: background #222436; foreground #c8d3f5; cursor #c8d3f5.