2026-05-26 14:48:24 +02:00
2026-05-26 14:44:03 +02:00
2026-05-26 14:44:03 +02:00
2026-05-26 14:44:03 +02:00
2026-05-26 14:44:03 +02:00

I Love TUI

A shared Base16 theme, a themed wrapper around every official component, and a small set of custom Bubble Tea components, in one Go module, so every TUI built with it shares one config file and looks consistent.

Install

go get github.com/anotherhadi/ilovetui

Packages

  • style: the theme itself. Colors, pre-built panel styles, config loading.
  • bubbles: themed constructors for official bubbles/v2 components (help, textarea, textinput, viewport, ...).
  • tabs, modal, drawer, notification, helpbar: custom components not found in the official bubbles library, styled from the same theme.

Each package has its own README and a runnable example under examples/<package>.

Quick start

On import, style automatically loads the user's theme from ~/.config/ilovetui/config.yaml (embedded default as fallback), exposed as the package-level S:

import "github.com/anotherhadi/ilovetui/style"

s := lipgloss.NewStyle().Foreground(style.S.Primary)
box := style.RenderWithTitle(style.S.PanelFocused, "Title", content, w, h)

No setup required. See style/README.md for config details.

Projects using ilovetui

  • anotherhadi/spilltea: A minimal, terminal-based HTTP(S) proxy for pentesters and CTF players. Think Burp Suite or Caido, but entirely in your terminal.
  • anotherhadi/usbguard-tui: A terminal UI for managing USB devices via usbguard. TUI built with golang & bubbletea.
  • anotherhadi/jwt-tui: A terminal UI for inspecting, editing, and signing JSON Web Tokens (JWTs).
S
Description
A minimal Go library that provides a shared Base16color theme for terminal UIs built with bubbletea and lipgloss.
Readme MIT 312 KiB
Languages
Go 88%
Python 10%
Nix 2%