config

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2025 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Colors = ThemeColors{
	Primary:   "125",
	Secondary: "99",
	Success:   "148",
	Error:     "160",
	Warning:   "166",
	Info:      "33",
	Tip:       "126",
	Muted:     "245",
}
View Source
var Styles = ThemeStyles{
	Title: lipgloss.NewStyle().Bold(true),

	Item: lipgloss.NewStyle().
		PaddingLeft(1),

	Popup: lipgloss.NewStyle().
		Foreground(lipgloss.Color(Colors.Info)),

	Selected: lipgloss.NewStyle().
		PaddingLeft(1).
		Foreground(lipgloss.Color(Colors.Primary)),

	Status: func(color string) lipgloss.Style {
		return lipgloss.
			NewStyle().
			Foreground(lipgloss.Color(color)).
			Bold(true).
			PaddingLeft(1)
	},

	BigText: lipgloss.
		NewStyle().
		Foreground(lipgloss.Color(Colors.Primary)).
		Bold(true).
		Align(lipgloss.Center).
		Border(lipgloss.DoubleBorder()).
		BorderForeground(lipgloss.Color(Colors.Primary)).
		Padding(1, 1),

	Section: lipgloss.NewStyle().
		Foreground(lipgloss.Color(Colors.Secondary)).
		Bold(true).
		Underline(true).
		Padding(1, 0),

	Subheader: lipgloss.NewStyle().
		Foreground(lipgloss.Color(Colors.Warning)).
		Bold(true).
		Padding(1, 0),

	Menu: lipgloss.NewStyle().
		Foreground(lipgloss.Color(Colors.Secondary)),

	UserInput: lipgloss.NewStyle().
		Foreground(lipgloss.Color(Colors.Muted)),

	UserGuide: lipgloss.NewStyle().
		Foreground(lipgloss.Color(Colors.Muted)),

	Spinner: lipgloss.
		NewStyle().
		Foreground(lipgloss.Color(Colors.Primary)),

	Flag: lipgloss.
		NewStyle().
		Foreground(lipgloss.Color(Colors.Secondary)).Bold(true),

	Category: lipgloss.
		NewStyle().
		Foreground(lipgloss.Color(Colors.Primary)).Bold(true).Underline(true),

	Example: lipgloss.
		NewStyle().
		Foreground(lipgloss.Color(Colors.Muted)),
}

Functions

This section is empty.

Types

type ThemeColors

type ThemeColors struct {
	Primary   string
	Secondary string
	Success   string
	Error     string
	Warning   string
	Info      string
	Tip       string
	Muted     string
}

type ThemeStyles

type ThemeStyles struct {
	Title     lipgloss.Style
	Popup     lipgloss.Style
	Item      lipgloss.Style
	Selected  lipgloss.Style
	Status    func(color string) lipgloss.Style
	BigText   lipgloss.Style
	Section   lipgloss.Style
	Subheader lipgloss.Style
	Menu      lipgloss.Style
	UserGuide lipgloss.Style
	UserInput lipgloss.Style
	Spinner   lipgloss.Style
	Flag      lipgloss.Style
	Category  lipgloss.Style
	Example   lipgloss.Style
}

Jump to

Keyboard shortcuts

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