color

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Bold   = lipgloss.NewStyle().Bold(true)
	Green  = lipgloss.NewStyle().Foreground(lipgloss.Color("10"))
	Red    = lipgloss.NewStyle().Foreground(lipgloss.Color("9"))
	Yellow = lipgloss.NewStyle().Foreground(lipgloss.Color("11"))
	Dim    = lipgloss.NewStyle().Faint(true)
)

Functions

func AgeStyle

func AgeStyle(created time.Time) lipgloss.Style

AgeStyle returns a style based on how old a timestamp is: green for <1h, yellow for <24h, dim for older.

func ForIndex

func ForIndex(i int) lipgloss.Style

ForIndex returns a style from the rotating palette for the given index.

func StatusDot

func StatusDot(running bool) string

StatusDot returns a colored bullet: green ● for running, red ○ for stopped.

Types

This section is empty.

Jump to

Keyboard shortcuts

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