mirror of
https://github.com/anotherhadi/ilovetui.git
synced 2026-08-21 03:55:48 +02:00
0648e7a761fa7f48c159f1bf6e2000b5d54d91ba
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 officialbubbles/v2components (help,textarea,textinput,viewport, ...).tabs,modal,drawer,notification,helpbar: custom components not found in the officialbubbleslibrary, 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).
Languages
Go
88%
Python
10%
Nix
2%