Documentation
¶
Index ¶
- Constants
- Variables
- func Argument(arg string) string
- func Bold(msg string) string
- func Box(title, content string) string
- func Bullet(msg string) string
- func Code(code string) string
- func Colorize(msg string, color lipgloss.Color) string
- func Command(cmd string) string
- func Dim(msg string) string
- func Error(msg string) string
- func Flag(flag string) string
- func Header(msg string) string
- func HighlightBox(title, content string) string
- func Info(msg string) string
- func Input(msg string) string
- func Italic(msg string) string
- func Muted(msg string) string
- func Prompt(msg string) string
- func SubHeader(msg string) string
- func Success(msg string) string
- func Underline(msg string) string
- func Warning(msg string) string
- func WithBackground(msg string, fg, bg lipgloss.Color) string
Constants ¶
View Source
const ( SuccessIcon = "✓" ErrorIcon = "✗" WarningIcon = "⚠" InfoIcon = "ℹ" QuestionIcon = "?" ArrowIcon = "→" BulletIcon = "•" CheckIcon = "✔" CrossIcon = "✖" )
Status icons
Variables ¶
View Source
var ( // Primary colors PrimaryColor = lipgloss.Color("#7C3AED") // Purple SecondaryColor = lipgloss.Color("#06B6D4") // Cyan AccentColor = lipgloss.Color("#F59E0B") // Amber // Status colors SuccessColor = lipgloss.Color("#10B981") // Green ErrorColor = lipgloss.Color("#EF4444") // Red WarningColor = lipgloss.Color("#F59E0B") // Amber InfoColor = lipgloss.Color("#3B82F6") // Blue // Text colors TextColor = lipgloss.Color("#F3F4F6") // Light gray MutedColor = lipgloss.Color("#9CA3AF") // Gray HighlightColor = lipgloss.Color("#FBBF24") // Yellow DimColor = lipgloss.Color("#6B7280") // Dark gray SubtleColor = lipgloss.Color("#4B5563") // Darker gray BrightTextColor = lipgloss.Color("#FFFFFF") // White )
Theme colors
View Source
var ( // Text styles BoldStyle = lipgloss.NewStyle().Bold(true) ItalicStyle = lipgloss.NewStyle().Italic(true) UnderlineStyle = lipgloss.NewStyle().Underline(true) DimStyle = lipgloss.NewStyle().Foreground(DimColor) MutedStyle = lipgloss.NewStyle().Foreground(MutedColor) // Header styles HeaderStyle = lipgloss.NewStyle(). Bold(true). Foreground(PrimaryColor). MarginBottom(1) SubHeaderStyle = lipgloss.NewStyle(). Bold(true). Foreground(SecondaryColor) // Status 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) // Box styles BoxStyle = lipgloss.NewStyle(). Border(lipgloss.RoundedBorder()). BorderForeground(PrimaryColor). Padding(1, 2) HighlightBoxStyle = lipgloss.NewStyle(). Border(lipgloss.RoundedBorder()). BorderForeground(AccentColor). Padding(1, 2). Background(lipgloss.Color("#1F2937")) // Command styles CommandStyle = lipgloss.NewStyle(). Foreground(AccentColor). Bold(true) FlagStyle = lipgloss.NewStyle(). Foreground(InfoColor) ArgumentStyle = lipgloss.NewStyle(). Foreground(HighlightColor). Italic(true) // List styles BulletStyle = lipgloss.NewStyle(). Foreground(PrimaryColor). Bold(true) ListItemStyle = lipgloss.NewStyle(). Foreground(TextColor). PaddingLeft(2) // Code/technical styles CodeStyle = lipgloss.NewStyle(). Foreground(lipgloss.Color("#A78BFA")). Background(lipgloss.Color("#1F2937")). Padding(0, 1) // Prompt styles PromptStyle = lipgloss.NewStyle(). Foreground(PrimaryColor). Bold(true) InputStyle = lipgloss.NewStyle(). Foreground(AccentColor) )
Base styles
Functions ¶
func HighlightBox ¶
HighlightBox renders text in a highlighted box
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.