Documentation
¶
Overview ¶
Package theme handles loading and parsing color themes from TOML files.
Index ¶
Constants ¶
View Source
const DefaultName = "Default - Terminal colors"
DefaultName is the display name for the built-in ANSI fallback theme.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Theme ¶
type Theme struct {
Name string
Accent string // hex
BrightFG string
FG string
Green string
Yellow string
Red string
}
Theme holds a named color scheme with hex color values.
func Default ¶
func Default() Theme
Default returns a sentinel "Default" theme with empty hex values, signaling that ANSI fallback colors should be used.
func LoadAll ¶
func LoadAll() []Theme
LoadAll loads built-in themes and user custom themes from ~/.config/cliamp/themes/*.toml. User themes override built-in themes with the same name. Returns a sorted list.
Click to show internal directories.
Click to hide internal directories.