style

package
v1.8.1 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Docstyle          = lipgloss.NewStyle().Margin(1, 2)
	TitleStyle        = lipgloss.NewStyle().MarginLeft(0).Foreground(AsePrimary)
	ItemStyle         = lipgloss.NewStyle().PaddingLeft(4)
	SelectedItemStyle = lipgloss.NewStyle().PaddingLeft(2).Foreground(AsePrimary)
	PaginationStyle   = list.DefaultStyles().PaginationStyle.PaddingLeft(4).Foreground(AsePrimary)
	HelpStyle         = list.DefaultStyles().HelpStyle.PaddingLeft(0).PaddingBottom(1)
	QuitTextStyle     = lipgloss.NewStyle().Margin(1, 0, 2, 4)
)

Styling

View Source
var AsePrimary = lipgloss.Color("#0077B3")

Lipgloss colors that can be easily reused

View Source
var Bold = lipgloss.NewStyle().Bold(true)
View Source
var Error = lipgloss.NewStyle().Foreground(ErrorPrimary)
View Source
var ErrorPrimary = lipgloss.Color("#FF0000")
View Source
var FormTheme = huh.ThemeBase()

Form theme

View Source
var Gray = lipgloss.NewStyle().Foreground(GrayPrimary)
View Source
var GrayPrimary = lipgloss.Color("#808080")
View Source
var Primary = lipgloss.NewStyle().Foreground(AsePrimary)
View Source
var Subtitle = lipgloss.NewStyle().Foreground(GrayPrimary)
View Source
var Success = lipgloss.NewStyle().Foreground(SuccessPrimary)
View Source
var SuccessLight = lipgloss.Color("#7bc990")
View Source
var SuccessPrimary = lipgloss.Color("#008000")
View Source
var Title = lipgloss.NewStyle().Foreground(AsePrimary).Bold(true)

Lipgloss classes that can be easily reused

View Source
var Warning = lipgloss.NewStyle().Foreground(WarningPrimary)
View Source
var WarningPrimary = lipgloss.Color("#FFA500")

Functions

func Color

func Color(c lipgloss.Color) lipgloss.Style

func DefaultListDelegate

func DefaultListDelegate() list.DefaultDelegate

Delegates (i.e. list items)

func RenderColor

func RenderColor(view string, color lipgloss.Color) string

func RenderDialog added in v1.5.0

func RenderDialog(dialog string, theme lipgloss.Color) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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