styles

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Indent = lipgloss.NewStyle().PaddingLeft(2)

	Green  = lipgloss.NewStyle().Bold(true).Foreground(lipgloss.Color("#9ece6a"))
	Orange = lipgloss.NewStyle().Bold(true).Foreground(lipgloss.Color("#fd9864"))
	Red    = lipgloss.NewStyle().Bold(true).Foreground(lipgloss.Color("#fd665f"))
)

Functions

func ColorizeWithMax

func ColorizeWithMax[T Floatable](x T, max T) lipgloss.Style

func ColorizeWithMin

func ColorizeWithMin[T Floatable](x T, min T) lipgloss.Style

Types

type Floatable

type Floatable interface {
	constraints.Float | constraints.Integer
}

Jump to

Keyboard shortcuts

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