styles

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	IconSuccess   = "✓"
	IconError     = "✗"
	IconWarning   = "⚠"
	IconInfo      = "ℹ"
	IconRunning   = "▶"
	IconPending   = "○"
	IconSkipped   = "⊘"
	IconSystem    = "●"
	IconGear      = "⚙"
	IconBullet    = "•"
	IconHealthy   = "●" // Green filled circle for healthy
	IconUnhealthy = "●" // Red filled circle for unhealthy
	IconUnknown   = "○" // Empty circle for unknown
)

Status icons

Variables

View Source
var DefaultStyles = DefaultTheme()

DefaultStyles returns the default theme for convenience.

Functions

func EventIcon

func EventIcon(eventType string) string

EventIcon returns the appropriate icon for an event type.

func HealthIcon

func HealthIcon(status string) string

HealthIcon returns the appropriate icon for a health status.

func LogLevelIcon

func LogLevelIcon(level string) string

LogLevelIcon returns the appropriate icon for a log level.

func PhaseIcon

func PhaseIcon(ok *bool, running bool) string

PhaseIcon returns the appropriate icon for a pipeline phase state.

func StatusIcon

func StatusIcon(alive bool) string

StatusIcon returns the appropriate icon for a service status.

Types

type Theme

type Theme struct {
	// Colors
	Primary   lipgloss.Color
	Secondary lipgloss.Color
	Success   lipgloss.Color
	Warning   lipgloss.Color
	Error     lipgloss.Color
	Muted     lipgloss.Color
	Text      lipgloss.Color
	TextDim   lipgloss.Color

	// Base styles
	Border        lipgloss.Style
	Title         lipgloss.Style
	TitleMuted    lipgloss.Style
	Selected      lipgloss.Style
	Keybind       lipgloss.Style
	KeybindKey    lipgloss.Style
	StatusRunning lipgloss.Style
	StatusDead    lipgloss.Style
	StatusPending lipgloss.Style
}

Theme defines the color palette and base styles for the TUI.

func DefaultTheme

func DefaultTheme() Theme

DefaultTheme returns the default devctl TUI theme.

Jump to

Keyboard shortcuts

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