Powerlevel10k gives you two independent levers for controlling prompt colors: the terminal color palette andDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/romkatv/powerlevel10k/llms.txt
Use this file to discover all available pages before exploring further.
POWERLEVEL9K_* configuration parameters. You can use either approach alone or combine them. After making changes, run source ~/.p10k.zsh to apply them to the current session without restarting Zsh.
Approach 1 — Change the Terminal Color Palette
Every terminal emulator lets you customize the 16 base colors (numbered 0–15) that form the “ANSI” palette. When you select a color scheme such as Tango Dark, Solarized Dark, or Nord in your terminal’s preferences, you are remapping these 16 slots. Because Powerlevel10k uses colors 0–15 for the following prompt styles, changing the palette directly changes how those styles look:- Rainbow — uses terminal palette colors for the
vcsand other segments - Lean → 8 colors — confines all segment colors to palette colors 0–7
- Pure → Original — uses only palette colors
- iTerm2: Preferences → Profiles → Colors → Color Presets
- GNOME Terminal: Preferences → (profile) → Colors
- Windows Terminal: Settings → (profile) → Appearance → Color scheme
- Alacritty:
colors:section in~/.config/alacritty/alacritty.toml - kitty:
~/.config/kitty/kitty.confcolor settings
Approach 2 — Set POWERLEVEL9K_* Parameters
Every prompt segment respects aPOWERLEVEL9K_<SEGMENT>_FOREGROUND and POWERLEVEL9K_<SEGMENT>_BACKGROUND parameter. Open ~/.p10k.zsh, search for the segment name, and adjust the values.
Numbered Colors (0–255)
Colors 0–15 are terminal-palette colors — they look different depending on your terminal’s color scheme. Colors 16–255 are fixed xterm colors — they always display the same regardless of the terminal palette.24-bit Truecolor (#RRGGBB)
If your terminal supports truecolor, you can specify any color using a CSS-style hex triplet:
Applying Changes
POWERLEVEL9K_LEFT_PROMPT_ELEMENTS or POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS, use p10k reload instead.
Icon Mode (POWERLEVEL9K_MODE)
ThePOWERLEVEL9K_MODE parameter controls which icon set Powerlevel10k uses. It is best set by p10k configure, but you can change it manually:
| Value | Icon set |
|---|---|
nerdfont-complete | Full Nerd Fonts icon set (Nerd Fonts v2 / older releases) |
nerdfont-v3 | Nerd Fonts v3 icon set (recommended for Nerd Fonts v3+) |
powerline | Powerline-only icons (no Nerd Font required) |
ascii | Plain ASCII characters; works with any font and locale |
VCS Loading Background
When Powerlevel10k is computing Git status asynchronously, thevcs segment briefly displays with a grey loading background. In Rainbow style this can be hard to read. Adjust the loading color with:
Rainbow Style — Directory Visibility
In Rainbow style the current directory is shown as white text on a blue background. If your terminal’s blue color is very light, the white text may be hard to read. Adjust the directory segment colors with these parameters in~/.p10k.zsh:
POWERLEVEL9K_DIR_BACKGROUND to a darker blue (e.g., 27) or another color entirely for better contrast.
VSCode Terminal foreground color override. By default, VSCode Terminal applies a minimum contrast ratio algorithm that may replace the foreground color you set with a different one it considers more readable. To disable this behavior, open VSCode settings and set
terminal.integrated.minimumContrastRatio to 1. See the VSCode documentation for details.