initwizard

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ColorPrimary   = lipgloss.Color("#A78BFA")
	ColorAccent    = lipgloss.Color("#34D399")
	ColorMuted     = lipgloss.Color("#6B7280")
	ColorDim       = lipgloss.Color("#374151")
	ColorError     = lipgloss.Color("#F87171")
	ColorSubtle    = lipgloss.Color("#9CA3AF")
	ColorBg        = lipgloss.Color("#0F1117")
	ColorSurface   = lipgloss.Color("#1A1D27")
	ColorOnSurface = lipgloss.Color("#E2E8F0")
)
View Source
var Components = struct {
	BadgeStyle     lipgloss.Style
	TitleStyle     lipgloss.Style
	SubtitleStyle  lipgloss.Style
	DividerStyle   lipgloss.Style
	LabelStyle     lipgloss.Style
	PromptStyle    lipgloss.Style
	CardStyle      lipgloss.Style
	InputRowStyle  lipgloss.Style
	ErrorStyle     lipgloss.Style
	ErrorIconStyle lipgloss.Style
	HelpKeyStyle   lipgloss.Style
	HelpDescStyle  lipgloss.Style
}{
	BadgeStyle: lipgloss.NewStyle().
		Background(lipgloss.Color("#312E81")).
		Foreground(ColorPrimary).
		Bold(true).
		Padding(0, 1).
		MarginBottom(1),

	TitleStyle: lipgloss.NewStyle().
		Bold(true).
		Foreground(ColorOnSurface),

	SubtitleStyle: lipgloss.NewStyle().
		Foreground(ColorMuted).
		MarginBottom(1),

	DividerStyle: lipgloss.NewStyle().
		Foreground(ColorDim),

	LabelStyle: lipgloss.NewStyle().
		Foreground(ColorSubtle).
		Bold(true),

	PromptStyle: lipgloss.NewStyle().
		Foreground(ColorAccent).
		Bold(true),

	CardStyle: lipgloss.NewStyle().
		Border(lipgloss.ThickBorder()).
		BorderForeground(ColorDim).
		Background(ColorSurface).
		Padding(1, 3).
		Width(80),

	InputRowStyle: lipgloss.NewStyle().
		Border(lipgloss.NormalBorder(), false, false, false, true).
		BorderForeground(ColorAccent).
		PaddingLeft(1),

	ErrorStyle: lipgloss.NewStyle().
		Foreground(ColorError).
		Bold(true),

	ErrorIconStyle: lipgloss.NewStyle().
		Foreground(ColorError),

	HelpKeyStyle: lipgloss.NewStyle().
		Foreground(ColorAccent).
		Bold(true),

	HelpDescStyle: lipgloss.NewStyle().
		Foreground(ColorMuted),
}

Functions

func NewWizard

func NewWizard() model

func RunWizard

func RunWizard() error

Types

This section is empty.

Jump to

Keyboard shortcuts

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