theme

package
v0.28.1 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2025 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Ellipsis = "…"
)

Icons.

Variables

View Source
var (
	Default = New(getDefaultStyle())

	ErrRegisterStyles = errors.New("register theme styles")
	ErrInvalidName    = errors.New("invalid theme name")
)

Functions

func HuhTheme added in v0.28.0

func HuhTheme(t *Theme) *huh.Theme

func Register

func Register(name string, entries chroma.StyleEntries) error

Types

type Theme

type Theme struct {
	CursorStyle               lipgloss.Style
	ErrorOverlayStyle         lipgloss.Style
	ErrorTitleStyle           lipgloss.Style
	ErrorTextStyle            lipgloss.Style
	ResultTitleStyle          lipgloss.Style
	FilterStyle               lipgloss.Style
	GenericOverlayStyle       lipgloss.Style
	GenericTextStyle          lipgloss.Style
	HelpStyle                 lipgloss.Style
	LineNumberStyle           lipgloss.Style
	LogoStyle                 lipgloss.Style
	PaginationStyle           lipgloss.Style
	SelectedStyle             lipgloss.Style
	SelectedSubtleStyle       lipgloss.Style
	StatusBarHelpStyle        lipgloss.Style
	StatusBarMessageHelpStyle lipgloss.Style
	StatusBarMessagePosStyle  lipgloss.Style
	StatusBarMessageStyle     lipgloss.Style
	StatusBarPosStyle         lipgloss.Style
	StatusBarStyle            lipgloss.Style
	SubtleStyle               lipgloss.Style
	InsertedStyle             lipgloss.Style
	DeletedStyle              lipgloss.Style

	ChromaStyle *chroma.Style
	Ellipsis    string
}

func New

func New(theme string) *Theme

Jump to

Keyboard shortcuts

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