style

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2025 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ColorOK = lipgloss.AdaptiveColor{
		Light: green600,
		Dark:  green200,
	}
	ColorWarning = lipgloss.AdaptiveColor{
		Light: orange500,
		Dark:  orange200,
	}
	ColorError = lipgloss.AdaptiveColor{
		Light: red600,
		Dark:  red200,
	}
	ColorInfo = lipgloss.AdaptiveColor{
		Light: purple600,
		Dark:  purple200,
	}
	ColorDeprioritized = lipgloss.AdaptiveColor{
		Light: gray600,
		Dark:  gray200,
	}

	ColorHighlight = lipgloss.AdaptiveColor{
		Light: purple100,
		Dark:  purple700,
	}

	ColorInfoBackground = lipgloss.AdaptiveColor{
		Light: purple100,
		Dark:  purple700,
	}

	ColorFocus = lipgloss.AdaptiveColor{
		Light: gray900,
		Dark:  white,
	}

	ColorWarningDeprioritized = lipgloss.AdaptiveColor{
		Light: blue600,
		Dark:  blue200,
	}
	ColorBreadcrumb = lipgloss.AdaptiveColor{
		Light: black,
		Dark:  white,
	}
	ColorBorder = lipgloss.AdaptiveColor{
		Light: gray200,
		Dark:  gray600,
	}
)
View Source
var (
	Title        = lipgloss.NewStyle().Foreground(ColorInfo).Bold(true)
	TitleBlock   = lipgloss.NewStyle().Background(ColorInfoBackground).Foreground(ColorInfo).Padding(0, 1)
	Label        = lipgloss.NewStyle().Foreground(ColorFocus)
	Status       = lipgloss.NewStyle().Bold(true)
	CommandTitle = lipgloss.NewStyle().Foreground(ColorInfo).Bold(true)
	CommandKey   = lipgloss.NewStyle().Foreground(ColorInfo)
	Highlight    = lipgloss.NewStyle().Background(ColorHighlight).Foreground(ColorFocus)
)

Functions

func Bold

func Bold(s string) string

func FormatKeyValue

func FormatKeyValue(key, value string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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