styles

package
v0.0.40 Latest Latest
Warning

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

Go to latest
Published: May 2, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OpenCodeIcon string = "⌬"

	CheckIcon    string = "✓"
	ErrorIcon    string = "✖"
	WarningIcon  string = "⚠"
	InfoIcon     string = ""
	HintIcon     string = "i"
	SpinnerIcon  string = "..."
	LoadingIcon  string = "⟳"
	DocumentIcon string = "🖼"
)

Variables

View Source
var (
	ImageBakcground = "#212121"
)

Functions

func AccentColor added in v0.0.37

func AccentColor() lipgloss.AdaptiveColor

AccentColor returns the accent color from the current theme

func BackgroundColor added in v0.0.37

func BackgroundColor() lipgloss.AdaptiveColor

BackgroundColor returns the background color from the current theme

func BackgroundDarkerColor added in v0.0.37

func BackgroundDarkerColor() lipgloss.AdaptiveColor

BackgroundDarkerColor returns the darker background color from the current theme

func BackgroundSecondaryColor added in v0.0.37

func BackgroundSecondaryColor() lipgloss.AdaptiveColor

BackgroundSecondaryColor returns the secondary background color from the current theme

func BaseStyle

func BaseStyle() lipgloss.Style

BaseStyle returns the base style with background and foreground colors

func Bold

func Bold() lipgloss.Style

Bold returns a bold style

func Border

func Border() lipgloss.Style

Border returns a style with a normal border

func BorderDimColor added in v0.0.37

func BorderDimColor() lipgloss.AdaptiveColor

BorderDimColor returns the dim border color from the current theme

func BorderFocusedColor added in v0.0.37

func BorderFocusedColor() lipgloss.AdaptiveColor

BorderFocusedColor returns the focused border color from the current theme

func BorderNormalColor added in v0.0.37

func BorderNormalColor() lipgloss.AdaptiveColor

BorderNormalColor returns the normal border color from the current theme

func DimBorder added in v0.0.37

func DimBorder() lipgloss.Style

DimBorder returns a style with a border using the dim border color

func DoubleBorder

func DoubleBorder() lipgloss.Style

DoubleBorder returns a style with a double border

func ErrorColor added in v0.0.37

func ErrorColor() lipgloss.AdaptiveColor

ErrorColor returns the error color from the current theme

func FocusedBorder added in v0.0.37

func FocusedBorder() lipgloss.Style

FocusedBorder returns a style with a border using the focused border color

func ForceReplaceBackgroundWithLipgloss

func ForceReplaceBackgroundWithLipgloss(input string, newBgColor lipgloss.TerminalColor) string

ForceReplaceBackgroundWithLipgloss replaces any ANSI background color codes in `input` with a single 24‑bit background (48;2;R;G;B).

func GetMarkdownRenderer added in v0.0.37

func GetMarkdownRenderer(width int) *glamour.TermRenderer

returns a glamour TermRenderer configured with the current theme

func InfoColor added in v0.0.37

func InfoColor() lipgloss.AdaptiveColor

InfoColor returns the info color from the current theme

func Padded

func Padded() lipgloss.Style

Padded returns a style with horizontal padding

func PrimaryColor

func PrimaryColor() lipgloss.AdaptiveColor

PrimaryColor returns the primary color from the current theme

func Regular

func Regular() lipgloss.Style

Regular returns a basic unstyled lipgloss.Style

func SecondaryColor added in v0.0.37

func SecondaryColor() lipgloss.AdaptiveColor

SecondaryColor returns the secondary color from the current theme

func SuccessColor added in v0.0.37

func SuccessColor() lipgloss.AdaptiveColor

SuccessColor returns the success color from the current theme

func TextColor added in v0.0.37

func TextColor() lipgloss.AdaptiveColor

TextColor returns the text color from the current theme

func TextEmphasizedColor added in v0.0.37

func TextEmphasizedColor() lipgloss.AdaptiveColor

TextEmphasizedColor returns the emphasized text color from the current theme

func TextMutedColor added in v0.0.37

func TextMutedColor() lipgloss.AdaptiveColor

TextMutedColor returns the muted text color from the current theme

func ThickBorder

func ThickBorder() lipgloss.Style

ThickBorder returns a style with a thick border

func WarningColor added in v0.0.37

func WarningColor() lipgloss.AdaptiveColor

WarningColor returns the warning color from the current theme

Types

This section is empty.

Jump to

Keyboard shortcuts

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