Documentation
¶
Overview ¶
Package theme — color palette + lipgloss style factory shared across every clawtool TUI surface (dashboard, orchestrator, future split-pane views). Catppuccin-ish dark default, adaptive to light terminals via lipgloss.AdaptiveColor.
Operators who want a different palette set CLAWTOOL_THEME=light or wire a custom Theme via WithTheme(). The dispatch surfaces all pull styles through the package-level Default() — swapping the pointer at boot is enough to retheme every pane.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Theme ¶
type Theme struct {
// Surfaces
Background lipgloss.Style // root canvas
PaneBorder lipgloss.Style // inactive pane chrome
PaneFocused lipgloss.Style // focused pane chrome (accent border)
PaneTitle lipgloss.Style // header line inside a pane
PaneSubtitle lipgloss.Style // muted second-line under title
StatusBar lipgloss.Style // footer container
HeaderBar lipgloss.Style // top banner container
HeaderTitle lipgloss.Style // app name in the banner
HeaderVersion lipgloss.Style // version pill
// Status pills (rendered with bg fill so they stand out)
StatusActive lipgloss.Style
StatusPending lipgloss.Style
StatusDone lipgloss.Style
StatusFailed lipgloss.Style
StatusCancelled lipgloss.Style
// Content
Body lipgloss.Style // default text
Dim lipgloss.Style // de-emphasised metadata
Accent lipgloss.Style // primary highlight
AccentSoft lipgloss.Style // secondary highlight
Success lipgloss.Style
Warning lipgloss.Style
Error lipgloss.Style
// Selection / focus
SelectedRow lipgloss.Style
UnselectedRow lipgloss.Style
// Stream pane
StreamLine lipgloss.Style
StreamCaret lipgloss.Style // ">" prefix on each frame line
StreamElapsed lipgloss.Style // (timestamp / duration tag)
// Help bar (key-binding hints)
HelpKey lipgloss.Style
HelpDesc lipgloss.Style
HelpSep lipgloss.Style
}
Theme is a single rendered style set. Built once per TUI boot.
Click to show internal directories.
Click to hide internal directories.