styles

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Success message style - subtle green
	Success = lipgloss.NewStyle().
			Foreground(green).
			Bold(false)

	// Error message style - subtle red
	Error = lipgloss.NewStyle().
			Foreground(red).
			Bold(false)

	// Warning message style - subtle yellow
	Warning = lipgloss.NewStyle().
			Foreground(yellow).
			Bold(false)

	// Info message style - subtle cyan
	Info = lipgloss.NewStyle().
			Foreground(cyan).
			Bold(false)

	// Label style - dimmed for prefixes
	Label = lipgloss.NewStyle().
			Foreground(dimmed).
			Bold(false)

	// Value style - highlighted for important data
	Value = lipgloss.NewStyle().
			Foreground(cyan).
			Bold(true)

	// Code/Key style - for technical identifiers
	Code = lipgloss.NewStyle().
			Foreground(blue).
			Bold(false)

	// Subtle style - for less important text
	Subtle = lipgloss.NewStyle().
			Foreground(gray).
			Bold(false)
)

Styles for different message types

Functions

func Errorf

func Errorf(format string, args ...interface{}) string

func Infof

func Infof(format string, args ...interface{}) string

func Successf

func Successf(format string, args ...interface{}) string

Helper functions for common patterns

func Warningf

func Warningf(format string, args ...interface{}) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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