ui

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Brand colors
	Blue   = lipgloss.Color("#0052CC")
	Green  = lipgloss.Color("#36B37E")
	Red    = lipgloss.Color("#FF5630")
	Yellow = lipgloss.Color("#FFAB00")
	Purple = lipgloss.Color("#6554C0")
	Grey   = lipgloss.Color("#97A0AF")
	White  = lipgloss.Color("#FFFFFF")
	Subtle = lipgloss.Color("#6B778C")

	// Text styles
	Bold      = lipgloss.NewStyle().Bold(true)
	Faint     = lipgloss.NewStyle().Foreground(Subtle)
	Success   = lipgloss.NewStyle().Foreground(Green).Bold(true)
	Error     = lipgloss.NewStyle().Foreground(Red).Bold(true)
	Warning   = lipgloss.NewStyle().Foreground(Yellow).Bold(true)
	Info      = lipgloss.NewStyle().Foreground(Blue).Bold(true)
	Highlight = lipgloss.NewStyle().Foreground(Purple).Bold(true)

	// Status badges
	BadgeOpen     = lipgloss.NewStyle().Background(Blue).Foreground(White).Padding(0, 1).Bold(true)
	BadgeMerged   = lipgloss.NewStyle().Background(Purple).Foreground(White).Padding(0, 1).Bold(true)
	BadgeDeclined = lipgloss.NewStyle().Background(Red).Foreground(White).Padding(0, 1).Bold(true)
	BadgeApproved = lipgloss.NewStyle().Background(Green).Foreground(White).Padding(0, 1).Bold(true)

	// Sections
	Title = lipgloss.NewStyle().Bold(true).Foreground(White).MarginBottom(1)

	// Borders
	Divider = lipgloss.NewStyle().Foreground(Grey).SetString("─────────────────────────────────────────")

	// PR list row
	PRNumber = lipgloss.NewStyle().Foreground(Blue).Bold(true).Width(6)
	PRTitle  = lipgloss.NewStyle().Bold(true).Width(50)
	PRBranch = lipgloss.NewStyle().Foreground(Subtle)
	PRAuthor = lipgloss.NewStyle().Foreground(Purple)

	// Key-value display
	Key   = lipgloss.NewStyle().Foreground(Grey).Width(12)
	Value = lipgloss.NewStyle().Bold(true)
)

Functions

func Arrow

func Arrow() string

func CheckMark

func CheckMark() string

func CrossMark

func CrossMark() string

func Spinner

func Spinner() string

func StatusBadge

func StatusBadge(state string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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