Documentation
¶
Index ¶
- Variables
- func Badge(text string, color lipgloss.Color) string
- func DangerBadge(text string) string
- func InfoBadge(text string) string
- func PrimaryBadge(text string) string
- func Stat(label, value string, color lipgloss.Color) string
- func StatDanger(label, value string) string
- func StatInfo(label, value string) string
- func StatSuccess(label, value string) string
- func StatWarning(label, value string) string
- func SuccessBadge(text string) string
- func WarningBadge(text string) string
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Primary = lipgloss.Color("#7C3AED") // Purple Secondary = lipgloss.Color("#06B6D4") // Cyan Success = lipgloss.Color("#10B981") // Green Warning = lipgloss.Color("#F59E0B") // Orange Danger = lipgloss.Color("#EF4444") // Red Muted = lipgloss.Color("#6B7280") // Gray Text = lipgloss.Color("#F3F4F6") // Light gray Background = lipgloss.Color("#1F2937") // Dark gray Border = lipgloss.Color("#374151") // Medium gray )
Color palette
View Source
var ( // Title style for main headings TitleStyle = lipgloss.NewStyle(). Bold(true). Foreground(Primary). MarginBottom(1). PaddingLeft(2) // Subtitle style for section headings SubtitleStyle = lipgloss.NewStyle(). Bold(true). Foreground(Secondary). MarginTop(1). PaddingLeft(2) // Regular text style TextStyle = lipgloss.NewStyle(). Foreground(Text) // Muted text style for secondary information MutedStyle = lipgloss.NewStyle(). Foreground(Muted). Italic(true) // Success message style SuccessStyle = lipgloss.NewStyle(). Foreground(Success). Bold(true) // Warning message style WarningStyle = lipgloss.NewStyle(). Foreground(Warning). Bold(true) // Error message style ErrorStyle = lipgloss.NewStyle(). Foreground(Danger). Bold(true) // Box style for containers BoxStyle = lipgloss.NewStyle(). Border(lipgloss.RoundedBorder()). BorderForeground(Border). Padding(1, 2) // Active box style (highlighted) ActiveBoxStyle = lipgloss.NewStyle(). Border(lipgloss.RoundedBorder()). BorderForeground(Primary). Padding(1, 2) // List item style ListItemStyle = lipgloss.NewStyle(). PaddingLeft(2) // Selected list item style SelectedItemStyle = lipgloss.NewStyle(). Foreground(Primary). Bold(true). PaddingLeft(1). SetString("► ") // Unselected list item style UnselectedItemStyle = lipgloss.NewStyle(). Foreground(Muted). PaddingLeft(2). SetString(" ") // Status bar style StatusBarStyle = lipgloss.NewStyle(). Foreground(Text). Background(Background). Padding(0, 1) // Help style HelpStyle = lipgloss.NewStyle(). Foreground(Muted). Padding(1, 2) // Key binding style KeyStyle = lipgloss.NewStyle(). Foreground(Primary). Bold(true) // Description style for key bindings DescStyle = lipgloss.NewStyle(). Foreground(Muted) // Progress bar filled style ProgressFilledStyle = lipgloss.NewStyle(). Foreground(Success). Background(Success) // Progress bar empty style ProgressEmptyStyle = lipgloss.NewStyle(). Foreground(Border). Background(Border) // Table header style TableHeaderStyle = lipgloss.NewStyle(). Bold(true). Foreground(Secondary). BorderStyle(lipgloss.NormalBorder()). BorderBottom(true). BorderForeground(Border) // Table cell style TableCellStyle = lipgloss.NewStyle(). Padding(0, 1) // Highlighted table row HighlightedRowStyle = lipgloss.NewStyle(). Background(lipgloss.Color("#2D3748")). Foreground(Primary) )
Base styles
Functions ¶
func StatDanger ¶
StatDanger creates a danger-colored statistic
func StatSuccess ¶
StatSuccess creates a success-colored statistic
func StatWarning ¶
StatWarning creates a warning-colored statistic
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.