Skip to main content

Theming

How DropTerm picks its theme mode and color scheme - the Application theme dropdown and the two per-mode scheme pickers.

Application theme​

You pick the theme mode under "Application theme" on the Appearance page of the Settings. The mode decides which color scheme is active, the window background, and the tab bar and grab bar. You never need COSMIC Appearance to flip the terminal's mode.

  • Follow system (the default): DropTerm reads your desktop's light/dark preference through the standard desktop portal (color-scheme) - any compliant desktop, COSMIC included - and follows it live: flip the OS, and the scheme, background, tab bar, grab bar, and Settings restyle without a restart. If the preference can't be read (no portal, no preference set, or a read error), DropTerm falls back to dark. On Windows the preference comes from the system's light/dark setting, no portal, and flipping it in Windows Settings restyles the running terminal the same way.
  • Dark / Light: the app pins that mode independently of the system. Your pick decides the active scheme, the window background, the tab bar and grab bar, and Settings; OS flips change nothing.
  • Switching back to Follow system picks up the current system mode immediately, and the app follows system flips again.

Theme picks apply live: the running tabs restyle at once - cells, background, tab bar, grab bar, and the Settings popup in the same pass. The full effect shows when Settings closes.

Color schemes​

The terminal's colors come from a built-in color scheme, one per theme mode. The Appearance page of the Settings has two scheme pickers: "Dark color scheme" (active in dark mode) and "Light color scheme" (active in light mode).

The palette is the preview. The closed control shows the scheme's name over a strip of its real colors; open it and every scheme appears as its name plus swatches - the background, the foreground, then the sixteen ANSI colors your terminal renders with. Those eighteen colors are everything a scheme contains - there is no separate preview pane - and the swatches use the same color conversion as the terminal, so a swatch can never disagree with what you see. Click a row to apply it; Escape or a click outside closes the list without picking, and the picked row is marked. Which picker is live follows the Application theme dropdown: Follow system tracks the OS preference through the portal (on Windows, the window's own appearance), Dark/Light pin one. A mode change from either side switches the active scheme; a config edit re-applies live.

Twelve built-in schemes ship with DropTerm, all community standards that render identically on any platform. The defaults, GitHub Dark and GitHub Light, are transcribed from GitHub's Primer palettes (the table primer/github-vscode-theme publishes). The other ten - Catppuccin Latte, Catppuccin Mocha, Dracula, Gruvbox Dark, Gruvbox Light, Nord, Solarized Dark, Solarized Light, Tokyo Night Day, and Tokyo Night Storm - come from their official upstream palettes. The old COSMIC Dark and COSMIC Light schemes are gone: they had no background of their own and took the system theme's instead. A config that still stores either name falls back like any other unknown name (below).

  • Every scheme owns its background: pick Dracula and Dracula's #282a36 renders behind the cells. The tab bar and grab bar follow it, so cells and bars can never disagree, and nothing tracks your system theme's colors. opacity multiplies on top of the background.
  • Your pick persists by scheme name. A stored name that matches nothing - a scheme removed or renamed, a name hand-typed - falls back quietly to the GitHub scheme for that mode. No error, and the stored name isn't rewritten: the picker marks no row until you pick again, and the closed control keeps showing the stored name.
  • Dim variants are derived, not shipped: each normal color's channels scale by 0.66 - Alacritty's dim rule, uniform across schemes. Bright variants come from the palettes.

User-defined scheme files​

Your own schemes live in the themes/ folder inside DropTerm's config directory (~/.config/io.github.l1br3_io.dropterm/themes/ on an installed build): one RON file per scheme, the file name is the scheme name - Evening.ron is the scheme "Evening". A development checkout reads its own config directory. Your schemes appear in both scheme pickers and each profile's scheme list, after the twelve built-ins, with the same color previews; a pick persists and applies exactly like a built-in's, profiles included.

The format matches the built-ins' fields. Only foreground and background are required; anything left out is derived - dims by Alacritty's rule, unset ANSI slots by the terminal's fallbacks. Colors are #RRGGBB strings:

(
foreground: "#e6edf3",
background: "#1a1b26",
cursor: "#c0caf5", // optional, like every slot below
normal: (
black: "#15161e",
red: "#f7768e",
green: "#9ece6a",
yellow: "#e0af68",
blue: "#7aa2f7",
magenta: "#bb9af7",
cyan: "#7dcfff",
white: "#a9b1d6",
),
bright: (
black: "#414868",
red: "#ff7a93",
green: "#b9f27c",
yellow: "#ff9e64",
blue: "#7da6ff",
magenta: "#bb9af7",
cyan: "#0db9d7",
white: "#c0caf5",
),
// left-out slots derive: `bright_foreground`, `dim_foreground`,
// and a `dim: ()` table all mean "derive it" (`None` also parses,
// same meaning).
)

The smallest file is just foreground and background; the anchors plus a normal table, as above, is already a complete scheme.

The rules around the folder:

  • Merged, never overriding: your schemes list behind the built-ins. A file naming a built-in (Nord.ron) is skipped with one log line - the built-in wins. Two files claiming one name: whichever file name sorts first wins, with one log line.
  • Skip-and-log, never block: a file that isn't valid RON, holds a non-#RRGGBB color, or misses an anchor is skipped with one dropterm: log line naming the reason. Every valid file still loads. A missing or empty themes/ folder is the silent first run - no schemes, no output.
  • Live: DropTerm watches the folder: adding, editing, or deleting a file takes effect without a restart. Editing the scheme in use re-themes the terminal; deleting it falls back to the GitHub scheme for that mode while your stored name stays - the unknown-name rule above. Each window reads the scheme list when it opens, so a change made while it's open shows next time.
  • Yours, untouched: DropTerm never writes, moves, renames, or quarantines anything under themes/ - the files are your config, not DropTerm's store.