Documentation
¶
Overview ¶
Package theme holds the Catppuccin palette as package-level colors that every component reads directly. Init must run before any component builds a style, so the colors are set once at startup and treated as immutable afterwards.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Primary color.Color Accent color.Color Secondary color.Color Text color.Color SelectedBg color.Color MutedBg color.Color SoftMutedBg color.Color ModalBg color.Color AddedLine color.Color DeletedLine color.Color WordDiffAddedBg color.Color WordDiffDelBg color.Color )
Exported color variables.
View Source
var ( HeaderStyle lipgloss.Style HunkHeaderStyle lipgloss.Style SectionStyle lipgloss.Style KeyStyle lipgloss.Style AdditionStyle lipgloss.Style DeletionStyle lipgloss.Style SelectedFocusedStyle lipgloss.Style SelectedUnfocusedStyle lipgloss.Style StatusBarStyle lipgloss.Style BorderStyle lipgloss.Style WordDiffAddedStyle lipgloss.Style WordDiffDeletedStyle lipgloss.Style )
Exported style variables.
Functions ¶
Types ¶
type Theme ¶
type Theme struct {
Primary color.Color
Accent color.Color
Secondary color.Color
Text color.Color
SelectedBg color.Color
MutedBg color.Color
SoftMutedBg color.Color
ModalBg color.Color
AddedLine color.Color
DeletedLine color.Color
WordDiffAddedBg color.Color
WordDiffDelBg color.Color
}
Theme defines semantic color roles.
Click to show internal directories.
Click to hide internal directories.