Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Preset Colors

Reference of all named color presets.

Basic Colors

NameHex CodePreview
black#000000■ Black
red#800000■ Red
green#008000■ Green
yellow#808000■ Yellow
blue#000080■ Blue
magenta#800080■ Magenta
cyan#008080■ Cyan
white#c0c0c0■ White

Bright Colors

NameHex CodePreview
bright_black / gray#808080■ Gray
bright_red#ff0000■ Bright Red
bright_green#00ff00■ Bright Green
bright_yellow#ffff00■ Bright Yellow
bright_blue#0000ff■ Bright Blue
bright_magenta#ff00ff■ Bright Magenta
bright_cyan#00ffff■ Bright Cyan
bright_white#ffffff■ Bright White

Alternative Names

AlternativeMaps To
greygray
dark_graybright_black
light_graywhite

Semantic Colors

Vitals

NameDefaultPurpose
health#00ff00Health bar
health_low#ffff00Low health warning
health_critical#ff0000Critical health
mana#0080ffMana bar
stamina#ff8000Stamina bar
spirit#ff00ffSpirit bar

Status Indicators

NameDefaultPurpose
hidden#00ff00Hidden status
invisible#00ffffInvisible status
stunned#ffff00Stunned status
webbed#ff00ffWebbed status
prone#00ffffProne status
kneeling#ff8000Kneeling status
sitting#808080Sitting status
dead#ff0000Dead status

Streams

NameDefaultPurpose
main#ffffffMain text
room#ffff00Room descriptions
combat#ff4444Combat messages
speech#00ffffPlayer speech
whisper#ff00ffWhispers
thoughts#00ff00ESP/thoughts

UI Elements

NameDefaultPurpose
border#404040Widget borders
border_focused#ffffffFocused widget border
background#000000Background
text#ffffffDefault text
text_dim#808080Dimmed text

Game Presets

Colors matching game highlight presets:

Preset IDNameColor
speechSpeech#00ffff
thoughtThoughts#00ff00
whisperWhispers#ff00ff
boldBold textInherits + bold
roomNameRoom name#ffff00
roomDescRoom description#c0c0c0

Using Colors

In colors.toml

[theme]
# Use preset names
health = "bright_green"
mana = "bright_blue"

# Or hex codes
border = "#333333"
text = "#e0e0e0"

In highlights.toml

[[highlights]]
pattern = "something"
fg = "bright_red"        # Preset name
bg = "#000080"           # Hex code

In widgets

[[widgets]]
type = "progress"
color = "health"         # Semantic color
border_color = "cyan"    # Basic color

Hex Color Format

FormatExampleNotes
6-digit#ff0000Full RGB
3-digit#f00Shorthand (expands to #ff0000)

Color Selection Tips

High Contrast

For accessibility, use high-contrast combinations:

# Good contrast
text = "#ffffff"
background = "#000000"

# Also good
text = "#000000"
background = "#ffffff"

Colorblind-Friendly

Avoid relying solely on red/green distinction:

# Instead of red/green
health = "#00ff00"     # Green
danger = "#ff0000"     # Red

# Use additional cues
health = "#00ffff"     # Cyan
danger = "#ff00ff"     # Magenta

Thematic Palettes

Nord Theme:

background = "#2e3440"
text = "#eceff4"
red = "#bf616a"
green = "#a3be8c"
blue = "#81a1c1"

Solarized Dark:

background = "#002b36"
text = "#839496"
red = "#dc322f"
green = "#859900"
blue = "#268bd2"

Dracula:

background = "#282a36"
text = "#f8f8f2"
red = "#ff5555"
green = "#50fa7b"
blue = "#8be9fd"

Color Inheritance

Some colors inherit or derive from others:

# Base color
text = "#ffffff"

# Derived (if not specified)
text_dim = text * 0.5    # Dimmer version

See Also