Documentation
¶
Overview ¶
Package theme provides terminal theming with automatic detection. It supports reading colors from Alacritty, Kitty, Foot, and Omarchy terminal configurations, with environment variable overrides available.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AlacrittyConfig ¶
type AlacrittyConfig struct {
Colors struct {
Primary struct {
Background string `toml:"background"`
Foreground string `toml:"foreground"`
} `toml:"primary"`
Selection struct {
Background string `toml:"background"`
Text string `toml:"text"`
} `toml:"selection"`
Cursor struct {
Cursor string `toml:"cursor"`
} `toml:"cursor"`
} `toml:"colors"`
}
AlacrittyConfig represents the relevant parts of alacritty.toml
type Palette ¶
type Palette struct {
BG string // background
FG string // foreground (primary text)
Muted string // timestamps, secondary info
Accent string // health bars, highlights
AccentBg string // selection background
Error string // error/warning colors
}
Palette holds the color scheme for the TUI
var CurrentPalette Palette
func DefaultPalette ¶
func DefaultPalette() Palette
DefaultPalette returns the fallback amber-on-dark theme
type Styles ¶
type Styles struct {
App lipgloss.Style
Header lipgloss.Style
Title lipgloss.Style
StatusBar lipgloss.Style
SearchInput lipgloss.Style
SearchPrompt lipgloss.Style
Table lipgloss.Style
TableHeader lipgloss.Style
SortedHeader lipgloss.Style // Highlighted sorted column
TableRow lipgloss.Style
TableSelected lipgloss.Style
HealthGood lipgloss.Style
HealthMed lipgloss.Style
HealthBad lipgloss.Style
Muted lipgloss.Style
Error lipgloss.Style
VPNConnected lipgloss.Style
VPNDisconnect lipgloss.Style
HelpKey lipgloss.Style
HelpDesc lipgloss.Style
Panel lipgloss.Style
PanelTitle lipgloss.Style
}
Styles holds all lipgloss styles derived from a palette
var Current Styles
Current holds the active palette and styles
type Watcher ¶
type Watcher struct {
// contains filtered or unexported fields
}
Watcher monitors theme config files and triggers refresh on changes
func NewWatcher ¶
NewWatcher creates a file watcher for theme configs
Click to show internal directories.
Click to hide internal directories.