ui

package
v0.2.710 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2026 License: MIT Imports: 2 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Cloudflare-themed color palette ☁️
	Primary   = lipgloss.Color("#F38020") // Cloudflare Orange
	Secondary = lipgloss.Color("#43A047") // Green (success)
	Accent    = lipgloss.Color("#7C4DFF") // Purple (records)
	Warning   = lipgloss.Color("#FFB300") // Amber
	Error     = lipgloss.Color("#E53935") // Red
	Subtle    = lipgloss.Color("#6B7280") // Gray
	Highlight = lipgloss.Color("#F3F4F6") // Light

	// Styles
	TitleStyle = lipgloss.NewStyle().
				Bold(true).
				Foreground(Primary).
				MarginBottom(1)

	SuccessStyle = lipgloss.NewStyle().
					Bold(true).
					Foreground(Secondary)

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

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

	AccentStyle = lipgloss.NewStyle().
				Bold(true).
				Foreground(Accent)

	SubtleStyle = lipgloss.NewStyle().
				Foreground(Subtle)

	LabelStyle = lipgloss.NewStyle().
				Bold(true).
				Width(14)

	ValueStyle = lipgloss.NewStyle().
				Foreground(lipgloss.Color("#FFFFFF"))

	BoxStyle = lipgloss.NewStyle().
				Border(lipgloss.RoundedBorder()).
				BorderForeground(Primary).
				Padding(1, 2)

	ListItemStyle = lipgloss.NewStyle().
					PaddingLeft(2)

	SelectedItemStyle = lipgloss.NewStyle().
						Foreground(Primary).
						Bold(true).
						PaddingLeft(2)

	// Record type badge colors
	RecordTypeStyle = lipgloss.NewStyle().
					Bold(true).
					Width(8).
					Foreground(Accent)
)

Functions

func DisableColor

func DisableColor()

DisableColor turns off all ANSI styling (for --no-color and NO_COLOR).

func Err

func Err(msg string) string

func Info

func Info(msg string) string

func Success

func Success(msg string) string

func Title

func Title(msg string) string

func Warn

func Warn(msg 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