Documentation
¶
Overview ¶
Package ui holds the lipgloss styles shared by every spoo command, so CLI output and future TUI views render with one visual language.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Accent = lipgloss.Color("#A78BFA") // spoo violet Success = lipgloss.Color("#34D399") Danger = lipgloss.Color("#F87171") Muted = lipgloss.Color("#9CA3AF") // pastel chart palette (one hue per dashboard panel) Blue = lipgloss.Color("#7DD3FC") Yellow = lipgloss.Color("#FDE68A") Pink = lipgloss.Color("#F9A8D4") Teal = lipgloss.Color("#5EEAD4") Title = lipgloss.NewStyle().Bold(true).Foreground(Accent) OK = lipgloss.NewStyle().Bold(true).Foreground(Success) Err = lipgloss.NewStyle().Bold(true).Foreground(Danger) Dim = lipgloss.NewStyle().Foreground(Muted) Box = lipgloss.NewStyle().Border(lipgloss.RoundedBorder()).BorderForeground(Accent).Padding(0, 2) KeyHint = lipgloss.NewStyle().Foreground(Muted).Italic(true) )
View Source
var SparkRunes = []rune("▁▂▃▄▅▆▇█")
SparkRunes are the eight block heights used for sparkline charts.
Functions ¶
func CountryLabel ¶
CountryLabel normalizes country codes for display. The backend reports unknown geo as "XX"; everything else passes through as the plain ISO alpha-2 code (no emoji — flag glyph support is too uneven across terminal fonts).
Types ¶
Click to show internal directories.
Click to hide internal directories.