styles

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RadioSelected   = "(●)"
	RadioUnselected = "( )"

	CheckboxSelected   = "[✓]"
	CheckboxUnselected = "[ ]"

	ProgressFilled = "●"
	ProgressEmpty  = "○"

	CursorIndicator = "▸"
)

Indicators

Variables

View Source
var (
	Primary   = lipgloss.Color("4")  // Blue
	Secondary = lipgloss.Color("8")  // Gray
	Success   = lipgloss.Color("2")  // Green
	Warning   = lipgloss.Color("3")  // Yellow
	Error     = lipgloss.Color("1")  // Red
	Highlight = lipgloss.Color("12") // Bright blue
	Muted     = lipgloss.Color("8")  // Gray
)

Color palette

View Source
var (
	Title = lipgloss.NewStyle().
			Bold(true).
			Foreground(Primary).
			MarginBottom(1)

	Subtitle = lipgloss.NewStyle().
				Foreground(Secondary).
				Italic(true)

	Label = lipgloss.NewStyle().
			Foreground(lipgloss.Color("7"))

	ErrorText = lipgloss.NewStyle().
				Foreground(Error).
				Bold(true)

	SuccessText = lipgloss.NewStyle().
				Foreground(Success)

	MutedText = lipgloss.NewStyle().
				Foreground(Muted)

	HelpText = lipgloss.NewStyle().
				Foreground(Secondary).
				Italic(true)
)

Text styles

View Source
var (
	Focused = lipgloss.NewStyle().
			Foreground(Highlight)

	Unfocused = lipgloss.NewStyle().
				Foreground(Secondary)

	Selected = lipgloss.NewStyle().
				Foreground(Success).
				Bold(true)

	Cursor = lipgloss.NewStyle().
			Foreground(Highlight).
			Bold(true)
)

Component styles

View Source
var (
	Container = lipgloss.NewStyle().
				PaddingTop(1).
				PaddingLeft(2).
				PaddingRight(2)

	StepContainer = lipgloss.NewStyle().
					Border(lipgloss.RoundedBorder()).
					BorderForeground(Secondary).
					Padding(1, 2).
					MarginBottom(1)
)

Layout styles

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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