Documentation
¶
Overview ¶
Package theme provides centralized styling for the TUI application. Inspired by k9s, this provides a consistent visual language across all components.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Colors ¶
type Colors struct {
// Primary colors
Primary lipgloss.Color // Main accent color (selection, active borders)
Secondary lipgloss.Color // Secondary accent
Accent lipgloss.Color // Highlights, search, special items
// Text colors
Text lipgloss.Color // Normal text
TextDim lipgloss.Color // Dimmed/secondary text
TextMuted lipgloss.Color // Very dim text (hints, disabled)
// Status colors
Success lipgloss.Color // Success/completed
Warning lipgloss.Color // In progress/warning
Error lipgloss.Color // Failed/error
// Background colors
BgPrimary lipgloss.Color // Main background
BgSecondary lipgloss.Color // Secondary background (bars, headers)
BgHighlight lipgloss.Color // Highlighted items
// Border colors
Border lipgloss.Color // Normal borders
BorderActive lipgloss.Color // Active/focused borders
}
Colors defines the color palette for the application
func DefaultColors ¶
func DefaultColors() Colors
DefaultColors returns the default color palette (dark theme)
type IconSet ¶
type IconSet struct {
Folder string
FolderOpen string
Workflow string
Pin string
Success string
Error string
InProgress string
Pending string
Search string
Filter string
Refresh string
RefreshAuto string
Back string
Selected string
Unselected string
}
IconSet defines the icons used throughout the app
type Theme ¶
type Theme struct {
Colors Colors
// Pre-built styles for common elements
Title lipgloss.Style
TitleActive lipgloss.Style
Subtitle lipgloss.Style
Text lipgloss.Style
TextDim lipgloss.Style
TextMuted lipgloss.Style
Selected lipgloss.Style
Cursor lipgloss.Style
StatusBar lipgloss.Style
HelpBar lipgloss.Style
Breadcrumb lipgloss.Style
BorderNormal lipgloss.Style
BorderActive lipgloss.Style
FilterInput lipgloss.Style
FilterPrompt lipgloss.Style
// Status styles
StatusSuccess lipgloss.Style
StatusWarning lipgloss.Style
StatusError lipgloss.Style
StatusInProgress lipgloss.Style
// Icons
Icons IconSet
}
Theme contains all styling for the application
func (*Theme) ItemPrefix ¶
ItemPrefix returns the cursor prefix for an item
Click to show internal directories.
Click to hide internal directories.