Skip to main content
The list-themes command displays or previews all available themes for Ghostty, with an interactive TUI when run from a terminal.

Usage

Description

When run from a TTY, this command launches an interactive TUI that allows you to preview themes with live color palettes and examples. When output is piped or --plain is specified, it outputs a simple list of theme names. Ghostty searches for themes in two directories:
  1. User themes directory: $XDG_CONFIG_HOME/ghostty/themes or ~/.config/ghostty/themes
  2. System themes directory: Ghostty’s resources directory (shipped themes)
    • macOS: Ghostty.app/Contents/Resources/ghostty/themes
    • Linux: share/ghostty/themes (installation-dependent)
    • From source: zig-out/share/ghostty/themes
You can override the resources directory with the GHOSTTY_RESOURCES_DIR environment variable.

Options

--path
boolean
Show the full path to each theme file alongside the theme name.
--plain
boolean
Force plain listing mode even when running in a TTY. Disables the interactive TUI preview.
--color
string
default:"all"
Specify the color scheme of themes to include in the list:
  • all - Show all themes (default)
  • dark - Show only dark themes
  • light - Show only light themes
-h, --help
flag
Display help information for this command.

Interactive TUI Keys

When running in interactive mode (TTY), use these keys:

Examples

Launch Interactive Preview

Opens the interactive TUI with theme previews, color palettes, and navigation.

List All Themes (Plain)

List with Paths

List Only Dark Themes

Filters to show only themes designed for dark mode.

Pipe to Grep

Find themes matching “nord” in the name.

Applying Themes

To apply a theme from the preview:
  1. Navigate to the desired theme
  2. Press to view save instructions
  3. Either:
    • Press w to write to auto/theme.ghostty and add config-file = ?auto/theme.ghostty to your main config
    • Manually add theme = <theme-name> to your config file

Notes

The TUI preview shows the actual color palette, foreground/background colors, and example terminal output with syntax highlighting to help you see how the theme looks in practice.
User themes in your config directory take precedence over built-in themes with the same name.

See Also