Skip to main content
Ghostty supports a powerful theming system that allows you to customize colors and appearance. You can use built-in themes, create custom themes, or define colors directly in your configuration.

Using Built-in Themes

Ghostty ships with many built-in themes. To see all available themes:

Setting a Theme

Add the theme configuration to your config file:
Themes are searched in two locations:
  1. Your configuration directory: ~/.config/ghostty/themes/
  2. Ghostty’s resource directory (built-in themes)

Light and Dark Mode Themes

You can specify different themes for light and dark mode:
Both light and dark must be specified in this format. The theme will automatically switch based on your desktop environment’s appearance setting.
Whitespace around theme names is trimmed, and the order of light/dark doesn’t matter.

Custom Themes

Creating a Custom Theme

1

Create the themes directory

2

Create your theme file

Theme files use the same syntax as Ghostty’s main configuration file:
~/.config/ghostty/themes/my-theme
3

Apply your theme

~/.config/ghostty/config

Using Absolute Paths

You can also reference a theme file with an absolute path:
Theme files can set any configuration option. Only use themes from trusted sources.

Color Configuration

Basic Colors

Colors can be specified as hex codes or named X11 colors:

The 256 Color Palette

The palette configuration sets colors 0-255 for terminal applications:
The index can be decimal, binary (0b), octal (0o), or hexadecimal (0x).

Automatic Palette Generation

Since version 1.3.0, Ghostty can automatically generate the extended 256-color palette (indices 16-255) from your base 16 ANSI colors:
This allows theme authors to specify only the base 16 colors while maintaining a cohesive color scheme throughout the palette.

Advanced Color Features

Cursor Colors

Customize the cursor and its text:
You can also match cell colors:

Selection Colors

Or match cell colors (available since 1.2.0):

Minimum Contrast

Ensure text is always readable by setting a minimum contrast ratio:

Examples

Dark Theme

Light Theme

Auto-switching

Custom Colors

Known Issues

  • macOS: Titlebar tab style is not updated when switching between light and dark themes
  • Theme overrides: Colors specified via background, foreground, palette, etc. will override theme colors