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:
- User themes directory:
$XDG_CONFIG_HOME/ghostty/themesor~/.config/ghostty/themes - 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
- macOS:
GHOSTTY_RESOURCES_DIR environment variable.
Options
Show the full path to each theme file alongside the theme name.
Force plain listing mode even when running in a TTY. Disables the interactive TUI preview.
Specify the color scheme of themes to include in the list:
all- Show all themes (default)dark- Show only dark themeslight- Show only light themes
Display help information for this command.
Interactive TUI Keys
When running in interactive mode (TTY), use these keys:Examples
Launch Interactive Preview
List All Themes (Plain)
List with Paths
List Only Dark Themes
Pipe to Grep
Applying Themes
To apply a theme from the preview:- Navigate to the desired theme
- Press
⏎to view save instructions - Either:
- Press
wto write toauto/theme.ghosttyand addconfig-file = ?auto/theme.ghosttyto your main config - Manually add
theme = <theme-name>to your config file
- Press
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.