Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( Primary = lipgloss.Color("#7D56F4") Secondary = lipgloss.Color("#383838") Accent = lipgloss.Color("#73F59F") Error = lipgloss.Color("#F25D94") Success = lipgloss.Color("#10B981") Warning = lipgloss.Color("#F59E0B") Info = lipgloss.Color("#3B82F6") // Backgrounds BgBase = lipgloss.Color("#1A1A2E") BgSubtle = lipgloss.Color("#16213E") BgOverlay = lipgloss.Color("#0F3460") // Foregrounds FgBase = lipgloss.Color("#EAEAEA") FgMuted = lipgloss.Color("#A0A0A0") FgSubtle = lipgloss.Color("#666666") )
Semantic color palette
Functions ¶
func FrameTable ¶
FrameTable wraps a bubbles/table view in a rounded border so detail-page tables read as framed tables (matching the main page's evertras look) instead of bare rows floating beside the content pane's own border. The wrapped view is 2 cells wider and taller than v, so size the table to (contentWidth-2) before framing to avoid overflowing the pane.
Types ¶
type FooterStyles ¶
type FooterStyles struct {
}
type HeaderStyles ¶
type HelpStyles ¶
type ModalStyles ¶
type NavigationStyles ¶
type NavigationStyles struct {
}
type SearchStyles ¶
type SidebarStyles ¶
type StatusStyles ¶
type Styles ¶
type Styles struct {
// Current theme
CurrentTheme ThemeType
// Text styles
Base lipgloss.Style
Muted lipgloss.Style
Header lipgloss.Style
Error lipgloss.Style
// Component styles
HeaderStyle HeaderStyles
SidebarStyle SidebarStyles
TableStyle TableStyles
SearchStyle SearchStyles
ModalStyle ModalStyles
StatusStyle StatusStyles
HelpStyle HelpStyles
}
Styles contains all application-wide styles
func DefaultStyles ¶
func DefaultStyles() *Styles
DefaultStyles returns the default application styles
func (*Styles) ApplyTheme ¶
ApplyTheme applies a theme to the Styles struct
func (*Styles) ToggleTheme ¶
func (s *Styles) ToggleTheme()
ToggleTheme switches between dark and light themes
type TableStyles ¶
type Theme ¶
type Theme struct {
// Theme name
Name ThemeType
// Primary colors
Primary lipgloss.Color
Secondary lipgloss.Color
Accent lipgloss.Color
Error lipgloss.Color
Success lipgloss.Color
Warning lipgloss.Color
Info lipgloss.Color
// Backgrounds
BgBase lipgloss.Color
BgSubtle lipgloss.Color
BgOverlay lipgloss.Color
// Foregrounds
FgBase lipgloss.Color
FgMuted lipgloss.Color
FgSubtle lipgloss.Color
}
Theme defines a complete color theme
func DarkThemeColors ¶
func DarkThemeColors() Theme
DarkThemeColors returns the dark theme color palette
func LightThemeColors ¶
func LightThemeColors() Theme
LightThemeColors returns the light theme color palette