Skip to main content

Colors

Basic Colors

Set the fundamental terminal colors:
Colors can be specified as:
  • Hex with hash: #RRGGBB
  • Hex without hash: RRGGBB
  • Named X11 colors: black, white, red, etc.

Terminal Color Palette

Customize the 256-color palette:
For most themes, you only need to set the first 16 colors (indices 0-15). Ghostty can automatically generate the extended palette (16-255) from these base colors.See the 256 colors cheat sheet for palette index definitions.
When enabled (default since 1.3.0), Ghostty automatically generates palette colors 16-255 from your base 16 ANSI colors:
This creates a cohesive color scheme. Explicitly set colors via palette are never overwritten.

Palette Formats

Palette indices can be specified in multiple number formats:

Themes

Using Themes

Ghostty includes many built-in themes:
List available themes:

Theme Locations

Themes are searched in this order:
  1. Absolute path (if specified)
  2. $XDG_CONFIG_HOME/ghostty/themes/
  3. Built-in themes directory

Light and Dark Themes

Specify different themes for light and dark mode:
Whitespace around values is trimmed. Order doesn’t matter. Both light and dark must be specified.
Known bugs with light/dark mode:
  • macOS: Titlebar tabs style is not updated when switching themes

Creating Custom Themes

Theme files are just Ghostty config files:
Themes can set any configuration option, but built-in themes are audited to only set safe options. Only use themes from trusted sources!

Cursor

Cursor Colors

Cursor Style

Shell integration automatically sets the cursor to a bar at the prompt. Disable this with:
Running programs can also request cursor styles via escape sequences (DECSCUSR).

Cursor Blinking

Cursor Opacity

Very low opacity values (e.g., 0.3) may make the cursor hard to find.

Selection Colors

If not set, selection uses inverted window background/foreground colors (default behavior).

Background Customization

Background Opacity

macOS: Background opacity is disabled in native fullscreen mode. Changing this requires restarting Ghostty.

Background Blur

macOS 26.0+ supports native glass effects:

Background Image

Background images are currently duplicated in VRAM per terminal, which can increase memory usage for large images.
Currently PNG and JPEG only. Other formats are not yet supported (as of 1.2.0).

Split and Window Styling

Unfocused Split Appearance

Split Divider

Color Space

Alpha Blending

Control how colors are blended:
  • native: Best default on macOS
  • linear-corrected: Best default on Linux - eliminates color fringing without affecting text weight
  • linear: Only if you want very thin/thick text rendering

Window Color Space

Window Theme

Control the window chrome theme:
On macOS with macos-titlebar-style = tabs or transparent, window theme is automatically set based on background luminosity.

Contrast

Ensure readable text:
Higher values make text more readable but may change colors significantly (toward black/white).

Advanced Visual Settings

Window Padding Color

On primary screen (not Vim, etc.), extending is disabled if:
  • Nearest row has default background cells
  • Nearest row is a prompt (requires shell integration)
  • Nearest row contains powerline characters

Search Colors

Color Resources

256 Color Chart

Terminal color palette reference

X11 Color Names

Named color reference

Built-in Themes

Browse included themes

WCAG Contrast

Accessibility guidelines