Skip to content

Themes

The default is terminal, which takes its colors from your terminal emulator rather than naming any of its own.

Also built in: dracula, alucard (Dracula's light counterpart), nord, gruvbox, solarized-dark, solarized-light, catppuccin, tokyo-night, and plain (a 16-color-safe fallback with no truecolor hex codes, for terminals with no real color support).

Truecolor-to-256/16-color degradation is handled automatically by lipgloss/termenv based on the terminal's detected color profile (and $COLORTERM) - themes don't need separate variants per color depth.

The terminal theme

Every other theme here is a per-machine decision. A hex palette is right on the terminal it was chosen against and arbitrary everywhere else, so the same config.toml carried to another machine puts a Dracula TUI inside a Gruvbox terminal, and keeping the two in step means running a theme switcher that writes a torrnado theme file on every machine you use.

terminal sidesteps that. It names slots in the emulator's palette - "cyan", "red", "bright black" - and leaves the text and the background alone entirely, so the TUI is already in whatever scheme the terminal is set to. Nothing to configure, nothing to copy between machines, and no assumption about whether your terminal is light or dark.

It also means switching your terminal's color scheme recolors a running TUI by itself, instantly and including what is already on screen. Your emulator resolves those color slots as it draws, so the change happens at its end without torrnado being involved - unlike a theme file, which is what the file watching below is for.

The trade is that you get sixteen colors and the emulator's idea of them. muted is bright black, so it only reads as dimmer text if your scheme puts a real gray there; a scheme that sets bright black near its background will flatten the distinction. If you want an exact look, pick one of the named themes or write your own.

plain is not this theme, despite also avoiding hex: it pins the text to ANSI 7 on ANSI 0, which is light gray on black, so it assumes a dark terminal. terminal inherits the default pair instead and is right on either.

Writing your own

To customize or add a theme, drop a TOML file at ~/.config/torrnado/themes/<name>.toml (matching theme = "<name>" in config.toml) with all ten colors set:

background  = "#1a1b26"
foreground  = "#c0caf5"
muted       = "#565f89"
accent      = "#7aa2f7"
success     = "#9ece6a"
warning     = "#e0af68"
error       = "#f7768e"
border      = "#292e42"
selected_bg = "#292e42"
selected_fg = "#c0caf5"

A file matching a built-in theme's name overrides that built-in.

A color can be a hex value, a number from 0 to 15 naming a slot in the terminal's own palette, or "default", which leaves that element to the terminal - what terminal uses for its text and background. All ten keys still have to be present: "default" says "the terminal's", while leaving a key out is the mistake that is reported as a missing color.

border draws the panes' outlines, one cell wide, and every built-in uses the same colour for it as for muted. The palettes these come from name a "surface" or "current line" shade that looks like the obvious choice, but it is meant to fill a panel rather than draw a line - as a border it disappears into the background. Only the focused pane escapes that, because its border is drawn in accent.

accent is the one worth choosing carefully. It marks the row under the cursor, the focused pane's border, the active tab and the progress fill, and it does all of that as a foreground colour with nothing behind it - unlike selected_bg, which brings its own contrast. Pick something that reads clearly against background, or the one row you are meant to be looking at ends up harder to see than the rest.

Switching themes at runtime

:theme opens a floating picker over the panes. Moving through it applies each theme as you go - the list, sidebar and detail pane underneath recolor live, so you judge a theme on your own torrents rather than on a swatch. enter keeps it, esc puts back the one you started with. Your own themes from the themes directory are listed alongside the built-ins and marked (user); one that fails to parse is reported and stepped over rather than applied.

:theme nord switches straight to a named theme without opening the picker.

Editing a theme while torrnado runs

The TUI checks the active theme's file about once a second, and when the file has changed it applies it straight away, without a restart. Save an edit to ~/.config/torrnado/themes/<name>.toml and the open TUI recolors. If the file is a symlink, the change that counts is to the file it points at. That lets a theme switcher keep one file, say current.toml with theme = "current", linked to a palette it regenerates on every switch, and every running torrnado follows it.

It follows the theme in use, so after :theme nord it is nord's file that counts, and a built-in theme has no file to follow. Nothing is reloaded while the :theme picker is open. A file that fails to load is reported once and the last good theme stays, until the file changes again.

The choice lasts for the session. torrnado will not rewrite your config.toml - doing so would re-encode the file and lose its comments and ordering - so to keep a theme, put theme = "nord" in it yourself.