styles

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Colors (for direct use as colors)
	PrimaryColor   = lipgloss.Color(primaryColorHex)
	SecondaryColor = lipgloss.Color(secondaryColorHex)
	SuccessColor   = lipgloss.Color(successColorHex)
	WarningColor   = lipgloss.Color(warningColorHex)
	ErrorColor     = lipgloss.Color(errorColorHex)
	TextColor      = lipgloss.Color(textColorHex)
	MutedColorVal  = lipgloss.Color(mutedColorHex)
	BorderColor    = lipgloss.Color(borderColorHex)
	BgColor        = lipgloss.Color(bgColorHex)
	BgLightColor   = lipgloss.Color(bgLightColorHex)

	// MutedColor as a style for rendering
	MutedColor = lipgloss.NewStyle().Foreground(MutedColorVal)

	// Base styles
	BaseStyle = lipgloss.NewStyle().
				Foreground(TextColor).
				Background(BgColor)

	// Title styles
	TitleStyle = lipgloss.NewStyle().
				Bold(true).
				Foreground(PrimaryColor).
				MarginBottom(1)

	SubtitleStyle = lipgloss.NewStyle().
					Foreground(SecondaryColor).
					MarginBottom(1)

	// Tab styles
	TabStyle = lipgloss.NewStyle().
				Padding(0, 2).
				Foreground(MutedColorVal)

	ActiveTabStyle = lipgloss.NewStyle().
					Padding(0, 2).
					Foreground(PrimaryColor).
					Bold(true).
					Underline(true)

	// Status styles
	StatusPending = lipgloss.NewStyle().
					Foreground(WarningColor).
					Bold(true)

	StatusAuthorizing = lipgloss.NewStyle().
						Foreground(SecondaryColor).
						Bold(true)

	StatusSigning = lipgloss.NewStyle().
					Foreground(SecondaryColor).
					Bold(true)

	StatusCompleted = lipgloss.NewStyle().
					Foreground(SuccessColor).
					Bold(true)

	StatusRejected = lipgloss.NewStyle().
					Foreground(ErrorColor).
					Bold(true)

	StatusFailed = lipgloss.NewStyle().
					Foreground(ErrorColor).
					Bold(true)

	// Box styles
	BoxStyle = lipgloss.NewStyle().
				Border(lipgloss.RoundedBorder()).
				BorderForeground(BorderColor).
				Padding(1, 2)

	SelectedBoxStyle = lipgloss.NewStyle().
						Border(lipgloss.RoundedBorder()).
						BorderForeground(PrimaryColor).
						Padding(1, 2)

	// Table styles
	TableHeaderStyle = lipgloss.NewStyle().
						Bold(true).
						Foreground(PrimaryColor).
						BorderBottom(true).
						BorderStyle(lipgloss.NormalBorder()).
						BorderForeground(BorderColor)

	TableRowStyle = lipgloss.NewStyle().
					Foreground(TextColor)

	TableSelectedRowStyle = lipgloss.NewStyle().
							Foreground(BgColor).
							Background(PrimaryColor).
							Bold(true)

	// Button styles
	ButtonStyle = lipgloss.NewStyle().
				Padding(0, 2).
				Background(BgLightColor).
				Foreground(TextColor).
				Border(lipgloss.RoundedBorder()).
				BorderForeground(BorderColor)

	ButtonActiveStyle = lipgloss.NewStyle().
						Padding(0, 2).
						Background(PrimaryColor).
						Foreground(BgColor).
						Border(lipgloss.RoundedBorder()).
						BorderForeground(PrimaryColor).
						Bold(true)

	ButtonSuccessStyle = lipgloss.NewStyle().
						Padding(0, 2).
						Background(SuccessColor).
						Foreground(BgColor).
						Border(lipgloss.RoundedBorder()).
						BorderForeground(SuccessColor).
						Bold(true)

	ButtonDangerStyle = lipgloss.NewStyle().
						Padding(0, 2).
						Background(ErrorColor).
						Foreground(BgColor).
						Border(lipgloss.RoundedBorder()).
						BorderForeground(ErrorColor).
						Bold(true)

	// Help styles
	HelpStyle = lipgloss.NewStyle().
				Foreground(MutedColorVal).
				MarginTop(1)

	// Info styles
	InfoKeyStyle = lipgloss.NewStyle().
					Foreground(MutedColorVal).
					Width(20)

	InfoValueStyle = lipgloss.NewStyle().
					Foreground(TextColor)

	// Badge styles
	BadgeStyle = lipgloss.NewStyle().
				Padding(0, 1).
				Background(BgLightColor).
				Foreground(TextColor)

	// Severity styles
	SeverityInfo = lipgloss.NewStyle().
					Foreground(SecondaryColor)

	SeverityWarning = lipgloss.NewStyle().
					Foreground(WarningColor)

	SeverityCritical = lipgloss.NewStyle().
						Foreground(ErrorColor).
						Bold(true)

	// Spinner style
	SpinnerStyle = lipgloss.NewStyle().
					Foreground(PrimaryColor)

	// Error message style
	ErrorStyle = lipgloss.NewStyle().
				Foreground(ErrorColor).
				Bold(true)

	// Success message style
	SuccessStyle = lipgloss.NewStyle().
					Foreground(SuccessColor).
					Bold(true)

	// Warning message style
	WarningStyle = lipgloss.NewStyle().
					Foreground(WarningColor).
					Bold(true)

	// Highlight style
	HighlightStyle = lipgloss.NewStyle().
					Foreground(SecondaryColor).
					Bold(true)
)

Functions

func GetSeverityStyle

func GetSeverityStyle(severity string) lipgloss.Style

GetSeverityStyle returns the appropriate style for a given severity

func GetStatusStyle

func GetStatusStyle(status string) lipgloss.Style

GetStatusStyle returns the appropriate style for a given status

Types

This section is empty.

Jump to

Keyboard shortcuts

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