Built-in Styles
Glow includes several pre-configured styles from the Glamour library:auto- Automatically detects your terminal’s background color and selects an appropriate style (default)dark- Optimized for dark terminal backgroundslight- Optimized for light terminal backgroundspink- A pink-themed styledracula- Based on the popular Dracula color schemetokyo-night- Based on the Tokyo Night color schemenotty- Special style for non-TTY output (pipes, redirects)
Using the —style Flag
Specify a style with the--style (or -s) flag:
Auto Style Detection
Theauto style (default) intelligently detects your terminal’s background color:
When output is redirected or piped (non-TTY), Glow automatically uses the
notty style unless you explicitly specify a different style.Custom JSON Stylesheets
You can create custom styles using JSON configuration files. Pass the path to your custom stylesheet:Style Validation
Glow validates styles at startup:- Checks if the style is a built-in default
- If not, expands the file path (supports
~and environment variables) - Verifies the file exists
Terminal Background Detection
Glow uses Lipgloss to detect your terminal’s background color for theauto style:
Non-TTY Output
When Glow detects that stdout is not a terminal (e.g., when piping output), it automatically applies thenotty style:
- File redirection
- Piping to other commands
- Non-interactive environments
Configuration File
Set a default style in your Glow configuration file (~/.config/glow/glow.yml):
Learn More
Create and customize your own JSON stylesheets for complete control over markdown rendering