styles

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 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

View Source
const Cursor = "▸ "

Cursor is the prefix used for the currently focused item.

Variables

View Source
var (
	ColorBase     = lipgloss.Color("#191724")
	ColorSurface  = lipgloss.Color("#1f1d2e")
	ColorOverlay  = lipgloss.Color("#6e6a86")
	ColorText     = lipgloss.Color("#e0def4")
	ColorSubtext  = lipgloss.Color("#908caa")
	ColorLavender = lipgloss.Color("#c4a7e7")
	ColorGreen    = lipgloss.Color("#9ccfd8")
	ColorPeach    = lipgloss.Color("#f6c177")
	ColorRed      = lipgloss.Color("#eb6f92")
	ColorBlue     = lipgloss.Color("#31748f")
	ColorMauve    = lipgloss.Color("#ebbcba")
	ColorYellow   = lipgloss.Color("#f1ca93")
	ColorTeal     = lipgloss.Color("#9ccfd8")
)

Rose Pine color palette.

View Source
var (
	TitleStyle = lipgloss.NewStyle().
				Foreground(ColorLavender).
				Bold(true)

	HeadingStyle = lipgloss.NewStyle().
					Foreground(ColorMauve).
					Bold(true)

	HelpStyle = lipgloss.NewStyle().
				Foreground(ColorSubtext)

	SubtextStyle = lipgloss.NewStyle().
					Foreground(ColorSubtext)

	SelectedStyle = lipgloss.NewStyle().
					Foreground(ColorLavender).
					Bold(true)

	UnselectedStyle = lipgloss.NewStyle().
					Foreground(ColorText)

	SuccessStyle = lipgloss.NewStyle().
					Foreground(ColorGreen)

	ErrorStyle = lipgloss.NewStyle().
				Foreground(ColorRed)

	WarningStyle = lipgloss.NewStyle().
					Foreground(ColorYellow)

	FrameStyle = lipgloss.NewStyle().
				Border(lipgloss.DoubleBorder()).
				BorderForeground(ColorLavender).
				Padding(1, 2)

	PanelStyle = lipgloss.NewStyle().
				Border(lipgloss.NormalBorder()).
				BorderForeground(ColorOverlay).
				Padding(0, 1)

	ProgressFilled = lipgloss.NewStyle().
					Foreground(ColorGreen)

	ProgressEmpty = lipgloss.NewStyle().
					Foreground(ColorOverlay)

	PercentStyle = lipgloss.NewStyle().
					Foreground(ColorPeach).
					Bold(true)
)

Pre-built reusable styles.

Functions

func RenderLogo() string

RenderLogo returns the ASCII logo with a top-to-bottom gradient.

func Tagline

func Tagline(version string) string

Tagline returns the welcome screen tagline with the given version.

Types

This section is empty.

Jump to

Keyboard shortcuts

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