- Headers: Use
bold. For markdown with various header levels, leave in the#signs. - Primary text: Default.
- Secondary text: Use
dim.
- Default: Most of the time, just use the default foreground color.
resetcan help get it back. - Selection: Use ANSI
blue. - User input tips and status indicators: Use ANSI
cyan. - Success and additions: Use ANSI
green. - Errors, failures and deletions: Use ANSI
red. - Codex: Use ANSI
magenta.
- Avoid custom colors because there's no guarantee that they'll contrast well or look good on various terminal color themes.
- Avoid ANSI
black,white,yellowas foreground colors because the terminal theme will do a better job. (Useresetif you need to in order to get those.) The exception is if you need contrast rendering over a manually colored background.
(There are some rules to try to catch this in clippy.toml.)