Documentation
¶
Overview ¶
Package theme provides theme definitions and management for the TUI.
Index ¶
- Constants
- func AvailableThemes() []string
- func DefaultDark() string
- func DefaultLight() string
- func DetectBackground(timeout time.Duration) (string, error)
- type Theme
- func AyuMirage() *Theme
- func CatppuccinLatte() *Theme
- func CatppuccinMocha() *Theme
- func CleanLight() *Theme
- func Dracula() *Theme
- func DraculaLight() *Theme
- func EverforestDark() *Theme
- func EverforestLight() *Theme
- func GetTheme(name string) *Theme
- func GruvboxDark() *Theme
- func GruvboxLight() *Theme
- func Modern() *Theme
- func Monokai() *Theme
- func Narna() *Theme
- func Nord() *Theme
- func OneDark() *Theme
- func OneLight() *Theme
- func RosePine() *Theme
- func RosePineDawn() *Theme
- func SolarizedDark() *Theme
- func SolarizedLight() *Theme
- func TokyoNight() *Theme
Constants ¶
const ( DraculaName = "dracula" DraculaLightName = "dracula-light" NarnaName = "narna" CleanLightName = "clean-light" SolarizedDarkName = "solarized-dark" SolarizedLightName = "solarized-light" GruvboxDarkName = "gruvbox-dark" GruvboxLightName = "gruvbox-light" NordName = "nord" MonokaiName = "monokai" CatppuccinMochaName = "catppuccin-mocha" CatppuccinLatteName = "catppuccin-latte" RosePineDawnName = "rose-pine-dawn" OneLightName = "one-light" EverforestLightName = "everforest-light" EverforestDarkName = "everforest-dark" ModernName = "modern" TokyoNightName = "tokyo-night" OneDarkName = "one-dark" RosePineName = "rose-pine" AyuMirageName = "ayu-mirage" )
Theme names.
Variables ¶
This section is empty.
Functions ¶
func AvailableThemes ¶
func AvailableThemes() []string
AvailableThemes returns a list of available theme names.
func DefaultDark ¶ added in v1.20.0
func DefaultDark() string
DefaultDark returns the default dark theme name.
func DefaultLight ¶ added in v1.20.0
func DefaultLight() string
DefaultLight returns the default light theme name.
Types ¶
type Theme ¶
type Theme struct {
Background lipgloss.Color
Accent lipgloss.Color
AccentFg lipgloss.Color // Foreground color for text on Accent background
AccentDim lipgloss.Color
Border lipgloss.Color
BorderDim lipgloss.Color
MutedFg lipgloss.Color
TextFg lipgloss.Color
SuccessFg lipgloss.Color
WarnFg lipgloss.Color
ErrorFg lipgloss.Color
Cyan lipgloss.Color
Pink lipgloss.Color
Yellow lipgloss.Color
}
Theme defines all colors used in the application UI.
func CatppuccinLatte ¶ added in v1.20.0
func CatppuccinLatte() *Theme
CatppuccinLatte returns the Catppuccin Latte theme (Light).
func CatppuccinMocha ¶
func CatppuccinMocha() *Theme
CatppuccinMocha returns the Catppuccin Mocha theme.
func CleanLight ¶
func CleanLight() *Theme
CleanLight returns a theme optimized for light terminal backgrounds.
func Dracula ¶
func Dracula() *Theme
Dracula returns the Dracula theme (dark background, vibrant colors).
func DraculaLight ¶ added in v1.20.0
func DraculaLight() *Theme
DraculaLight returns the Dracula theme adapted for light backgrounds.
func EverforestDark ¶ added in v1.22.0
func EverforestDark() *Theme
EverforestDark returns the Everforest Dark theme (Medium).
func EverforestLight ¶ added in v1.20.0
func EverforestLight() *Theme
EverforestLight returns the Everforest Light theme (Medium).
func Modern ¶ added in v1.22.0
func Modern() *Theme
Modern returns a sleek, modern dark theme with vibrant accents.
func RosePine ¶ added in v1.22.0
func RosePine() *Theme
RosePine returns the Rosé Pine theme (Dark).
func RosePineDawn ¶ added in v1.20.0
func RosePineDawn() *Theme
RosePineDawn returns the Rosé Pine Dawn theme (Light).
func SolarizedLight ¶
func SolarizedLight() *Theme
SolarizedLight returns the Solarized light theme.
func TokyoNight ¶ added in v1.22.0
func TokyoNight() *Theme
TokyoNight returns the Tokyo Night theme (Storm).