guide

WezTerm TOML Files

Rusty imports terminal color presets from WezTerm-compatible TOML files in term/.

Where Rusty Looks

  1. Near executable: term/
  2. Near executable: dist/term/
  3. Current working directory: term/
  4. Current working directory: dist/term/

Only .toml files are loaded.

Selection and Identity Rules

Required and Optional Colors

Rusty reads keys from [colors] first, then root-level fallback keys.

Field Requirement Fallback
backgroundRequiredNone (theme rejected if missing)
foreground / fgRequiredNone (theme rejected if missing)
cursor / cursor_bg / cursor_borderOptionalForeground
selection_bgOptional#334466
selection_fgOptionalForeground
ANSI paletteRequiredDefined via arrays or named keys

ANSI Palette Requirements

Option A: Arrays

Option B: Named Keys

Indexed Overrides

Supported Color Value Forms

Alpha is parsed but terminal rendering stores RGB values. Fully transparent values are rejected for required palette colors.

Light/Dark Classification

Practical Example

light = false
comment = "Balanced dark blue"

[metadata]
name = "Tokyo Night"
author = "Rusty"

[colors]
foreground = "#C0CAF5"
background = "#1A1B26"
cursor_bg = "#C0CAF5"
selection_bg = "#33467C"
selection_fg = "#C0CAF5"
ansi = ["#15161E", "#F7768E", "#9ECE6A", "#E0AF68", "#7AA2F7", "#BB9AF7", "#7DCFFF", "#A9B1D6"]
brights = ["#414868", "#F7768E", "#9ECE6A", "#E0AF68", "#7AA2F7", "#BB9AF7", "#7DCFFF", "#C0CAF5"]

How To Apply In Rusty

Rusty terminal colors settings page
  1. Place TOML files into term/.
  2. Open Settings -> Terminal Colors.
  3. Click Reload from term/.
  4. Click a theme card to apply instantly.

If a selected terminal theme is missing at startup, Rusty applies fallback terminal colors and clears invalid selection state.