theme

package
v0.6.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 2, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	IconTree              string
	IconProject           string
	IconRepo              string
	IconWorktree          string
	IconEcosystem         string
	IconGitBranch         string
	IconSuccess           string
	IconError             string
	IconWarning           string
	IconInfo              string
	IconRunning           string
	IconPending           string
	IconSelect            string
	IconUnselect          string
	IconArrow             string
	IconBullet            string
	IconNote              string
	IconPlan              string
	IconChat              string
	IconOneshot           string
	IconInteractiveAgent  string
	IconHeadlessAgent     string
	IconShell             string
	IconStatusCompleted   string
	IconStatusRunning     string
	IconStatusFailed      string
	IconStatusBlocked     string
	IconStatusNeedsReview string
	IconStatusPendingUser string
	IconStatusHold        string
	IconStatusTodo        string
	IconStatusAbandoned   string
	IconStatusInterrupted string

	IconArchive        string
	IconArrowLeft      string
	IconArrowLeftBold  string
	IconArrowRightBold string
	IconFilter         string
	IconSave           string
	IconSelectAll      string
	IconAudited        string

	IconPullRequest           string
	IconPullRequestClosed     string
	IconPullRequestCreate     string
	IconPullRequestDraft      string
	IconPullRequestNewChanges string
	IconGithubAction          string
	IconGitCompare            string
	IconDiff                  string
	IconGit                   string
	IconGitStaged             string
	IconGitModified           string
	IconGitUntracked          string
	IconGitDeleted            string
	IconGitRenamed            string
	IconGitPartiallyStaged    string
	IconInbox                 string
	IconLightbulb             string
	IconChevron               string
	IconMerge                 string
	IconHome                  string
	IconRobot                 string
	IconTrophy                string
	IconChart                 string
	IconSnowflake             string
	IconClock                 string
	IconMoney                 string
	IconSync                  string
	IconHelp                  string
	IconBuild                 string
	IconStop                  string
	IconEarth                 string

	IconArrowDown       string
	IconArrowDownBold   string
	IconArrowUp         string
	IconArrowUpBold     string
	IconArrowUpDownBold string

	IconChecklist      string
	IconArchitecture   string
	IconCalendar       string
	IconChatQuestion   string
	IconClockFast      string
	IconLoading        string
	IconRss            string
	IconSchool         string
	IconIssueClosed    string
	IconIssueOpened    string
	IconNoteCurrent    string
	IconNoteIssues     string
	IconNoteInbox      string
	IconNoteCompleted  string
	IconNoteReview     string
	IconNoteInProgress string

	IconSparkle  string
	IconCode     string
	IconNotebook string
	IconDocs     string

	IconFileTree      string
	IconFish          string
	IconPineTreeBox   string
	IconViewDashboard string

	IconFolderMinus            string
	IconFolderOpen             string
	IconFolderOpenO            string
	IconFolderPlus             string
	IconFolderTree             string
	IconFile                   string
	IconFileCancel             string
	IconFileKey                string
	IconFileLock               string
	IconFilePlus               string
	IconFire                   string
	IconFolder                 string
	IconFolderCheck            string
	IconFolderEye              string
	IconFolderLock             string
	IconFolderMultiple         string
	IconFolderMultiplePlus     string
	IconFolderOff              string
	IconFolderOpenMd           string
	IconFolderPlusMd           string
	IconFolderQuestion         string
	IconFolderRemove           string
	IconFolderSearch           string
	IconFolderStar             string
	IconFolderSync             string
	IconFileDirectoryFill      string
	IconDebug                  string
	IconDebugConsole           string
	IconDebugStart             string
	IconPass                   string
	IconScriptText             string
	IconTestTube               string
	IconNumeric1CircleOutline  string
	IconNumeric2CircleOutline  string
	IconNumeric3CircleOutline  string
	IconNumeric4CircleOutline  string
	IconNumeric5CircleOutline  string
	IconNumeric6CircleOutline  string
	IconNumeric7CircleOutline  string
	IconNumeric8CircleOutline  string
	IconNumeric9CircleOutline  string
	IconNumeric10CircleOutline string
)

Public Icon Variables

Exported color shortcuts for legacy usages. These are populated from DefaultTheme.

View Source
var DefaultTheme = initDefaultTheme()

DefaultTheme is the default theme instance for the Grove ecosystem.

Functions

func RenderBox

func RenderBox(content string) string

RenderBox renders content inside a styled box.

func RenderHeader

func RenderHeader(title string) string

RenderHeader renders a header with the default Grove styling.

func RenderStatus

func RenderStatus(status, text string) string

RenderStatus renders text with the appropriate status style.

func RenderTitle

func RenderTitle(title string) string

RenderTitle renders a title with the default Grove styling.

Types

type Colors

Colors encapsulates the palette used by a theme. lipgloss.TerminalColor allows a mix of adaptive and static colors.

var DefaultColors Colors

DefaultColors exposes the active color palette selected for the current terminal.

type Theme

type Theme struct {
	Colors Colors

	// Headers and titles
	Header lipgloss.Style
	Title  lipgloss.Style

	// Status indicators (bold)
	Success lipgloss.Style
	Error   lipgloss.Style
	Warning lipgloss.Style
	Info    lipgloss.Style
	Magenta lipgloss.Style // Magenta/violet for special statuses like interrupted

	// Status indicators (non-bold) - for subtle/inline coloring
	SuccessLight lipgloss.Style
	ErrorLight   lipgloss.Style
	WarningLight lipgloss.Style
	InfoLight    lipgloss.Style

	// Text styles - visual hierarchy
	Bold        lipgloss.Style // Emphasized text
	Italic      lipgloss.Style // Italic text
	Normal      lipgloss.Style // Regular terminal default text
	Muted       lipgloss.Style // De-emphasized text
	Path        lipgloss.Style // File paths - muted italic
	Selected    lipgloss.Style
	SelectedRow lipgloss.Style

	// Selection styles
	SelectedUnfocused lipgloss.Style // Selected item in unfocused pane
	VisualSelection   lipgloss.Style // Visual selection mode highlight

	// Table styles
	TableHeader lipgloss.Style
	TableRow    lipgloss.Style
	TableBorder lipgloss.Style

	// Container styles
	Box        lipgloss.Style
	Code       lipgloss.Style
	DetailsBox lipgloss.Style // Bordered panel for details views

	// Interactive elements
	Input       lipgloss.Style
	Placeholder lipgloss.Style
	Cursor      lipgloss.Style

	// Special styles
	Highlight lipgloss.Style
	Accent    lipgloss.Style

	// Workspace styles - used for displaying workspace hierarchies
	WorkspaceEcosystem lipgloss.Style // Bold - for ecosystem workspaces
	WorkspaceStandard  lipgloss.Style // Default - for standard workspaces
	WorkspaceWorktree  lipgloss.Style // Faint - for worktree branches

	// Dynamic color palette for components
	AccentColors []lipgloss.TerminalColor
}

Theme holds all the pre-configured styles for the Grove ecosystem.

func NewTheme

func NewTheme() *Theme

NewTheme creates a theme based on the configured theme selection.

func NewThemeWithName

func NewThemeWithName(name string) *Theme

NewThemeWithName constructs a theme from a specific palette name.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL