Themes are JSON files that define color schemes for the TUI. Drop them in .rig/themes/ or ~/.rig/agent/themes/ and switch with /theme.
{
"name": "My Theme",
"vars": {
"primary": "#66d9ef",
"text": "#f8f8f2"
},
"colors": {
"accent": "primary",
"fg.default": "text"
}
}| Section | Purpose |
|---|---|
name |
Display name |
vars |
Reusable color variables |
colors |
Maps 51 semantic tokens to colors |
| Format | Example | Description |
|---|---|---|
| Variable ref | "primary" |
References a var by name |
| 256-color | "39" |
xterm 256-color palette index (0-255) |
| RGB hex | "#ff0000" |
24-bit truecolor |
| Empty | "" |
Terminal default |
fg.default, fg.muted, fg.subtle, fg.emphasis, fg.success, fg.warning, fg.error, fg.info, fg.primary, fg.secondary
bg.default, bg.subtle, bg.emphasis, bg.muted, bg.overlay
border.default, border.muted, border.emphasis, border.subtle
status.success, status.warning, status.error, status.info
link.default, link.hover, link.active, link.visited
panel.bg, panel.border, panel.title, panel.subtitle
input.bg, input.border, input.text, input.placeholder
button.bg, button.text, button.border, button.hover
badge.bg, badge.text, badge.border
code.bg, code.text, code.border
accent, border, success, error, muted, dim, text
See examples/themes/ for complete theme files:
dark.json- 256-color dark themelight.json- 256-color light thememonokai.json- RGB hex Monokai theme