Skip to content

Latest commit

 

History

History
97 lines (86 loc) · 1.52 KB

colors.md

File metadata and controls

97 lines (86 loc) · 1.52 KB

Rich supports a wide range of colors and styles for text, backgrounds, and borders. Here’s a comprehensive list of possible colors and styles you can use to customize your config.ini file.

Customizing hi Display Colors

Rich supports the standard 16 ANSI colors and many more extended colors. Here are the most commonly used ones:

Standard ANSI Colors:

  • black
  • red
  • green
  • yellow
  • blue
  • magenta
  • cyan
  • white
  • bright_black (gray)
  • bright_red
  • bright_green
  • bright_yellow
  • bright_blue
  • bright_magenta
  • bright_cyan
  • bright_white

Extended Colors (a few examples):

  • grey0 to grey100
  • navy_blue
  • dark_blue
  • blue3
  • blue1
  • dark_green
  • deep_sky_blue4
  • dodger_blue3
  • dodger_blue2
  • chartreuse4
  • turquoise4
  • steel_blue
  • green_yellow
  • medium_orchid
  • orange_red1
  • hot_pink
  • deep_pink4
  • medium_violet_red
  • goldenrod2
  • light_salmon3
  • light_pink4

Styles

Rich also supports various text styles:

  • bold
  • dim
  • italic
  • underline
  • blink
  • reverse
  • conceal
  • strike

Background Colors

Any of the colors can be used as a background by prefixing with on :

  • on black
  • on red
  • on green
  • on yellow
  • on blue
  • on magenta
  • on cyan
  • on white
  • on bright_black
  • on bright_red
  • on bright_green
  • on bright_yellow
  • on bright_blue
  • on bright_magenta
  • on bright_cyan
  • on bright_white

Borders

Rich supports several box styles for table borders:

  • ascii
  • simple
  • minimal
  • minimal_heavy_head
  • minimal_double_head
  • simple_head
  • rounded
  • heavy
  • heavy_edge
  • heavy_head
  • double
  • double_edge
  • square