Ghostty · sonokai · dark · MIT

Sonokai Espresso for Ghostty

Sonokai Espresso for Ghostty: #312c2b background, 10.7:1 body contrast, and the full 16-color ANSI palette. Save the file to ~/.config/ghostty/themes/<name>. Add theme = <name> to ~/.config/ghostty/config. The same palette also exports to the other supported terminals.

Download themeAll terminalsOpen in editor

Preview

Palette

ANSI

black
red
green
yellow
blue
magenta
cyan
white
b.Black
b.Red
b.Green
b.Yellow
b.Blue
b.Magenta
b.Cyan
b.White

Base colors

Background
Foreground
Cursor
Selection

Contrast

WCAG · vs #312c2b
ColorHexRatioLevel
Foreground#e4e3e110.73:1AAA
Cursor#e4e3e110.73:1AAA
Selection#90817b3.68:1AA large
black#1f1e1c1.21:1—
red#f868824.78:1AA
green#a6cd777.62:1AAA
yellow#f0c66f8.53:1AAA
blue#81d0c97.73:1AAA
magenta#9fa0e15.63:1AA
cyan#f08d715.74:1AA
white#e4e3e110.73:1AAA
brightBlack#90817b3.68:1AA large
brightRed#f868824.78:1AA
brightGreen#a6cd777.62:1AAA
brightYellow#f0c66f8.53:1AAA
brightBlue#81d0c97.73:1AAA
brightMagenta#9fa0e15.63:1AA
brightCyan#f08d715.74:1AA
brightWhite#e4e3e110.73:1AAA

Install for Ghostty

Documentation
  1. Save the file to ~/.config/ghostty/themes/<name>.
  2. Add theme = <name> to ~/.config/ghostty/config.
  3. Reload Ghostty or open a new window.
One-line installsonokai-espresso.conf
mkdir -p "$HOME/.config/ghostty/themes" && curl -fsSL "https://terminalthemes.iwwi.app/ports/ghostty/sonokai-espresso.conf" -o "$HOME/.config/ghostty/themes/sonokai-espresso" && { grep -qxF 'theme = sonokai-espresso' "$HOME/.config/ghostty/config" 2>/dev/null || printf '\ntheme = %s\n' 'sonokai-espresso' >> "$HOME/.config/ghostty/config"; }
# Open a new Ghostty window.
Full configuration
background = #312c2b
foreground = #e4e3e1
cursor-color = #e4e3e1
cursor-text = #312c2b
selection-background = #90817b
selection-foreground = #000000

palette = 0=#1f1e1c
palette = 1=#f86882
palette = 2=#a6cd77
palette = 3=#f0c66f
palette = 4=#81d0c9
palette = 5=#9fa0e1
palette = 6=#f08d71
palette = 7=#e4e3e1
palette = 8=#90817b
palette = 9=#f86882
palette = 10=#a6cd77
palette = 11=#f0c66f
palette = 12=#81d0c9
palette = 13=#9fa0e1
palette = 14=#f08d71
palette = 15=#e4e3e1
Downloadsonokai-espresso.conf

Let an agent install it

Give this prompt to your coding agent. It includes the Ghostty install page, native file, steps, and safety constraints.

Help me install the Sonokai Espresso theme for Ghostty on this machine.

Read the install page: https://terminalthemes.iwwi.app/ghostty/themes/sonokai/espresso/
Native theme file: https://terminalthemes.iwwi.app/ports/ghostty/sonokai-espresso.conf

Follow these steps:
1. Save the file to ~/.config/ghostty/themes/<name>.
2. Add theme = <name> to ~/.config/ghostty/config.
3. Reload Ghostty or open a new window.

One-line install:
mkdir -p "$HOME/.config/ghostty/themes" && curl -fsSL "https://terminalthemes.iwwi.app/ports/ghostty/sonokai-espresso.conf" -o "$HOME/.config/ghostty/themes/sonokai-espresso" && { grep -qxF 'theme = sonokai-espresso' "$HOME/.config/ghostty/config" 2>/dev/null || printf '\ntheme = %s\n' 'sonokai-espresso' >> "$HOME/.config/ghostty/config"; }
# Open a new Ghostty window.

Inspect and back up my existing configuration first. Change only what this theme needs; do not overwrite unrelated settings. Ask before changing my default theme. After installing, verify the file exists and tell me which files changed.

FAQ

Frequently asked questions

Where does the Sonokai Espresso theme go in Ghostty?

Save the file to ~/.config/ghostty/themes/<name>. Add theme = <name> to ~/.config/ghostty/config.

How do I install Sonokai Espresso in Ghostty?

Download the Sonokai Espresso configuration file from this page, run the one-line install command, or place the file in the Ghostty location above. Reload Ghostty or open a new window.

Does Sonokai Espresso keep its colors in Ghostty?

Yes. It uses #312c2b for the background, #e4e3e1 for the foreground, and the full 16-color ANSI palette, with 10.7:1 body contrast. Only the Ghostty file format changes.

Can I use Sonokai Espresso in another terminal?

Yes. The same palette exports to Herdr App, Ghostty, Alacritty, Kitty, iTerm2, and Windows Terminal; only the install path and file format change.