theme

package
v0.2.15 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2025 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// DefaultPalette matches the original TUI colours.
	DefaultPalette = Palette{
		Title:     "#61afef",
		Body:      "#abb2bf",
		Highlight: "#e5c07b",
		Error:     "#e06c75",
		Loading:   "#56b6c2",
	}

	TitleStyle     lipgloss.Style
	BodyStyle      lipgloss.Style
	HighlightStyle lipgloss.Style
	ErrorStyle     lipgloss.Style
	LoadingStyle   lipgloss.Style
)

Functions

func ApplyPalette

func ApplyPalette(p Palette)

ApplyPalette rebuilds the exported styles based on the provided palette.

Types

type Palette

type Palette struct {
	Title     string
	Body      string
	Highlight string
	Error     string
	Loading   string
}

Palette captures the primary colors used by the TUI. Leaving a field empty keeps the default color.

func Current

func Current() Palette

Current returns the palette currently in use.

Jump to

Keyboard shortcuts

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