Skip to content

kavrix 0.2.30 — Five TUI themes with an in-app picker

Choose a tag to compare

@github-actions github-actions released this 30 Sep 18:49
· 76 commits to main since this release

Five TUI themes with an in-app picker

The interactive TUI now ships five complete color themes — genuinely different palettes, not accent tints — with a live-preview picker inside the app, per-OS defaults, and persistence. Purely presentation: no backend, crypto, or storage boundary moved.

The five themes

Theme Accent Feel
Classic Gold (gold) yellow The Kavrix signature — warm gold on quiet white.
Deep Ocean (ocean) cyan Cool cyan accents, blue headings, square panels.
Magma (magma) red Hot red accent, magenta highlights, heavy double panels.
Forest (forest) green Calm green chrome throughout.
Violet Dusk (violet) magenta Purple accent, blue selection, framed panels.

Each theme is a full palette: accent, heading, selection highlight, progress-bar color, and panel border style. Themes use the terminal's named ANSI colors, so every palette adapts to your terminal's own scheme (Windows Terminal Campbell, iTerm2, and friends) instead of fighting it.

How to use

  • In the app: press t on any screen. Arrow keys or digits 1–5 move a cursor that live-previews the highlighted palette — the chrome repaints immediately. Enter applies and saves; Esc restores the previous theme. Each row paints its label in its own accent, and the committed theme carries an [active] tag.
  • Per launch: kavrix tui --theme <id> or KAVRIX_TUI_THEME=<id> (validated fail-closed with the list of choices on error).
  • Persistence: your choice is saved to ~/.kavrix/tui-theme.json through the protected canonical-JSON writer (strict schema, owner-only permissions, atomic). A failed save reverts visibly — nothing silently diverges.
  • Defaults: Deep Ocean on Windows (harmonizes with Windows Terminal's Campbell palette), Classic Gold on macOS and Linux. Your saved choice always wins.
  • Semantic status colors (success / warning / danger / info) stay fixed in every theme, so [ok] / [!] / [x] rows remain unambiguous. NO_COLOR, dumb terminals, and ASCII mode keep the exact previous behavior — ASCII borders still degrade to +-+ regardless of theme.

Verification

Theme registry tests (five distinct ids and accents, platform defaults, token swaps, fixed semantic tones, border mapping with ASCII degradation), router picker tests (t opens at the active theme, live preview, Enter commits with a set-theme backend action, Esc restores, hostile ids ignored, painted render contains every row), session persistence tests (save → reload → explicit-option precedence; unknown ids rejected without writing), and --theme flag validation. Full TUI suite: 192 tests green. Exact-SHA CI and CodeQL passed on the tagged commit; published through trusted publishing with OIDC provenance.


Install / upgrade

npm install --global kavrix@0.2.30
kavrix          # opens the TUI — press t to pick your theme

Full changelog: v0.2.29...v0.2.30