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.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/ghostty-org/ghostty/llms.txt
Use this file to discover all available pages before exploring further.
Using Built-in Themes
Ghostty ships with many built-in themes. To see all available themes:Setting a Theme
Add thetheme configuration to your config file:
- Your configuration directory:
~/.config/ghostty/themes/ - Ghostty’s resource directory (built-in themes)
Light and Dark Mode Themes
You can specify different themes for light and dark mode:Whitespace around theme names is trimmed, and the order of light/dark doesn’t matter.
Custom Themes
Creating a Custom Theme
Create your theme file
Theme files use the same syntax as Ghostty’s main configuration file:
~/.config/ghostty/themes/my-theme
Using Absolute Paths
You can also reference a theme file with an absolute path: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: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:Advanced Color Features
Cursor Colors
Customize the cursor and its text:Selection Colors
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
Related Configuration
- background-opacity - Set terminal transparency
- background-image - Add a background image
- See the color configuration reference for all color options