style

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Colors
	SuccessColor = lipgloss.Color("#04B575")
	ErrorColor   = lipgloss.Color("#FF5F56")
	WarningColor = lipgloss.Color("#FFBD2E")
	InfoColor    = lipgloss.Color("#61AFEF")
	PrimaryColor = lipgloss.Color("#7B68EE")

	// Styles
	SuccessStyle = lipgloss.NewStyle().
					Foreground(SuccessColor).
					Bold(true)

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

	WarningStyle = lipgloss.NewStyle().
					Foreground(WarningColor).
					Bold(true)

	InfoStyle = lipgloss.NewStyle().
				Foreground(InfoColor).
				Bold(true)

	PrimaryStyle = lipgloss.NewStyle().
					Foreground(PrimaryColor).
					Bold(true)

	TitleStyle = lipgloss.NewStyle().
				Foreground(PrimaryColor).
				Bold(true).
				Underline(true)

	SubtleStyle = lipgloss.NewStyle().
				Foreground(lipgloss.Color("#666666"))

	BoldStyle = lipgloss.NewStyle().
				Bold(true)

	// Box styles for important messages
	BoxStyle = lipgloss.NewStyle().
				Border(lipgloss.RoundedBorder()).
				BorderForeground(PrimaryColor).
				Padding(1).
				Margin(1)
)

Functions

func Bold

func Bold(text string) string

func Box

func Box(content string) string

func Download

func Download(text string) string

func Error

func Error(text string) string

func FileCount

func FileCount(count int, noun string) string

File count display

func Generate

func Generate(text string) string

func Info

func Info(text string) string

func Progress

func Progress(text string) string

func ProgressBar

func ProgressBar(current, total int, width int) string

Progress bar for file operations

func Subtle

func Subtle(text string) string

func Success

func Success(text string) string

Helper functions for common patterns

func Title

func Title(text string) string

func Upload

func Upload(text string) string

func Validate

func Validate(text string) string

func Version

func Version(pkg, version string) string

Version display

func Warning

func Warning(text string) string

Types

type Spinner

type Spinner struct {
	// contains filtered or unexported fields
}

Spinner for loading states

func NewSpinner

func NewSpinner() *Spinner

func (*Spinner) Start

func (s *Spinner) Start(message string) chan bool

Jump to

Keyboard shortcuts

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