styles

package
v0.0.0-...-67d8813 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2024 License: OSL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Red          = "#E7363B"
	Green        = "#4CC767"
	Gainsboro    = "#D9D8DC"
	Gray         = "#928E92"
	White        = "#FFFFFF"
	Black        = "#120c0e"
	Salmon       = "#EB99A1"
	DimmedSalmon = "#E26F7A"
)

Variables

View Source
var (
	AppStyle = lg.NewStyle().
				Margin(1, 2)
	TitleStyle = lg.NewStyle().
				Foreground(Colors.White).
				Background(Colors.Primary).
				Bold(true).
				Padding(0, 1)

	Primary = lg.NewStyle().
			Foreground(Colors.Primary).
			Render
	Error = lg.NewStyle().
			Foreground(Colors.Red).
			Render
	Success = lg.NewStyle().
			Foreground(Colors.Green).
			Render
)
View Source
var (
	Colors = struct {
		Primary    lg.TerminalColor
		Secondary  lg.TerminalColor
		Background lg.TerminalColor
		Text       lg.TerminalColor
		White      lg.TerminalColor
		Muted      lg.TerminalColor
		Red        lg.TerminalColor
		Green      lg.TerminalColor
	}{
		Primary:    lg.Color(Salmon),
		Secondary:  lg.Color(DimmedSalmon),
		Background: lg.Color(Black),
		Text:       lg.Color(Gainsboro),
		Muted:      lg.Color(Gray),
		White:      lg.Color(White),
		Red:        lg.Color(Red),
		Green:      lg.Color(Green),
	}
)

Functions

func NewListDelegate

func NewListDelegate() list.DefaultDelegate

Types

This section is empty.

Jump to

Keyboard shortcuts

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