theme

package
v0.0.12 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2026 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Task status
	IconPending   = "○"
	IconComplete  = "●"
	IconCancelled = "✕"

	// Priority flags
	IconPriority = "⚑"

	// Navigation
	IconArrowRight = "›"
	IconArrowDown  = "▼"
	IconArrowUp    = "▲"
	IconBullet     = "•"
	IconSelected   = "▸"

	// Info
	IconCalendar = "◈"
	IconTag      = "#"
	IconProject  = "◉"
	IconClock    = "◷"

	// Feedback
	IconSuccess = "✓"
	IconError   = "✗"
	IconWarning = "!"
	IconInfo    = "·"
	IconSpin    = "⠋"

	// Decorative
	IconDivider = "─"
	IconDot     = "·"
)

Unicode symbols used throughout the TUI for consistent visual language.

Variables

This section is empty.

Functions

This section is empty.

Types

type Palette

type Palette struct {
	// Brand
	Primary   lipgloss.Color
	Secondary lipgloss.Color
	Accent    lipgloss.Color

	// Priorities (matching TickTick's scheme)
	PriorityNone   lipgloss.Color
	PriorityLow    lipgloss.Color
	PriorityMedium lipgloss.Color
	PriorityHigh   lipgloss.Color

	// Status
	Success lipgloss.Color
	Warning lipgloss.Color
	Error   lipgloss.Color
	Info    lipgloss.Color

	// Surface
	Base    lipgloss.Color
	Surface lipgloss.Color
	Overlay lipgloss.Color
	Muted   lipgloss.Color
	Subtle  lipgloss.Color
	Text    lipgloss.Color
	SubText lipgloss.Color
}

Color palette — a cohesive set of colors used throughout the TUI. Inspired by the existing TickTick priority colors with additions for UI chrome.

type Theme

type Theme struct {
	Palette Palette

	// App chrome
	Header     lipgloss.Style
	StatusBar  lipgloss.Style
	HelpBar    lipgloss.Style
	Breadcrumb lipgloss.Style

	// Content
	Title       lipgloss.Style
	Subtitle    lipgloss.Style
	Body        lipgloss.Style
	Muted       lipgloss.Style
	Bold        lipgloss.Style
	Description lipgloss.Style

	// List
	ListItem         lipgloss.Style
	SelectedItem     lipgloss.Style
	ActiveItem       lipgloss.Style
	DimmedItem       lipgloss.Style
	FilterPrompt     lipgloss.Style
	FilterMatch      lipgloss.Style
	FilterMatchCount lipgloss.Style

	// Task specific
	TaskTitle      lipgloss.Style
	TaskContent    lipgloss.Style
	TaskDue        lipgloss.Style
	TaskDueOverdue lipgloss.Style
	TaskTag        lipgloss.Style
	TaskProject    lipgloss.Style

	// Priority styles
	PriorityNone   lipgloss.Style
	PriorityLow    lipgloss.Style
	PriorityMedium lipgloss.Style
	PriorityHigh   lipgloss.Style

	// Status indicators
	StatusComplete lipgloss.Style
	StatusPending  lipgloss.Style

	// Panels and cards
	Card       lipgloss.Style
	CardActive lipgloss.Style
	Panel      lipgloss.Style
	Divider    lipgloss.Style

	// Form elements
	FormLabel    lipgloss.Style
	FormField    lipgloss.Style
	FormButton   lipgloss.Style
	FormSelected lipgloss.Style

	// Messages
	SuccessMessage lipgloss.Style
	ErrorMessage   lipgloss.Style
	WarningMessage lipgloss.Style
	InfoMessage    lipgloss.Style

	// Spinner
	Spinner lipgloss.Style
}

Theme holds all styled components for the TUI. Pass this through your model tree for consistent styling.

func Default

func Default() Theme

Default returns the default tickli theme.

Jump to

Keyboard shortcuts

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