style

package
v0.0.18 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2022 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Pink       = lipgloss.AdaptiveColor{Light: "#FF44DD", Dark: "#FF0099"}
	OwnerGreen = lipgloss.AdaptiveColor{Light: "#43BF6D", Dark: "#73F59F"}
	Subtle     = lipgloss.AdaptiveColor{Light: "#D9DCCF", Dark: "#383838"}

	OpenseaToneBlue      = lipgloss.Color("#5f7699")
	TrendGreenStyle      = lipgloss.NewStyle().Foreground(lipgloss.Color("#66CC66"))
	TrendLightGreenStyle = lipgloss.NewStyle().Foreground(lipgloss.Color("#667066"))
	TrendRedStyle        = lipgloss.NewStyle().Foreground(lipgloss.Color("#FF6666"))
	TrendLightRedStyle   = lipgloss.NewStyle().Foreground(lipgloss.Color("#806666"))
	AlmostWhiteStyle     = lipgloss.NewStyle().Foreground(lipgloss.Color("#EEE"))
	DarkWhiteStyle       = lipgloss.NewStyle().Foreground(lipgloss.Color("#DDD"))
	VeryLightGrayStyle   = lipgloss.NewStyle().Foreground(lipgloss.Color("#BBB"))
	LightGrayStyle       = lipgloss.NewStyle().Foreground(lipgloss.Color("#999"))
	GrayStyle            = lipgloss.NewStyle().Foreground(lipgloss.Color("#666"))
	DarkGrayStyle        = lipgloss.NewStyle().Foreground(darkGray)
	DarkerGrayStyle      = lipgloss.NewStyle().Foreground(darkerGray)
	DarkestGrayStyle     = lipgloss.NewStyle().Foreground(darkestGray)
	BoldStyle            = lipgloss.NewStyle().Bold(true)
	PinkBoldStyle        = BoldStyle.Copy().Foreground(Pink)
	OwnerGreenBoldStyle  = BoldStyle.Copy().Foreground(OwnerGreen)
	GrayBoldStyle        = BoldStyle.Copy().Foreground(GrayStyle.GetForeground())
	Sharrow              = BoldStyle.Copy().SetString("→")
	DividerArrowRight    = GrayBoldStyle.SetString("→")
	DividerArrowLeft     = GrayBoldStyle.SetString("←")
)
View Source
var PaletteRLD = []lipgloss.Color{
	"#D23469",
	"#400817",
	"#8D1537",

	"#6A0F27",

	"#6F2B4E",
	"#A14C7C",
	"#A46C8C",
	"#6C3441",
}
View Source
var ShadesPink = []lipgloss.Color{
	"#ffffff",
	"#ffe5f4",
	"#ffccea",
	"#ffb2e0",
	"#ff99d6",
	"#ff7fcc",
	"#ff66c1",
	"#ff4cb7",
	"#ff32ad",
	"#ff19a3",
	"#ff0099",
}

Functions

func CreateTrendIndicator

func CreateTrendIndicator(before float64, now float64) string

func GenerateColorWithSeed

func GenerateColorWithSeed(seed int64) lipgloss.Color

GenerateColorWithSeed generates a color based on the given seed.

func GetHeader

func GetHeader(version string) string
SetString("•").
Padding(0, 0).
Foreground(pink)

var Divider = baseDivider.String()

func GetPriceShadeColor

func GetPriceShadeColor(txValue *big.Float) lipgloss.Color

func GetSpinner

func GetSpinner(message string) *yacspin.Spinner

GetSpinner returns a new spinner with default configuration.

func ShortenAddress

func ShortenAddress(address *common.Address) string

ShortenAddress returns a shortened address styled with colors.

func ShortenAddressStyled

func ShortenAddressStyled(address *common.Address, style lipgloss.Style) string

ShortenAddressStyled returns a shortened address styled with colors.

func TerminalLink(params ...string) string

TerminalLink formats a link for the terminal using ANSI codes.

Types

This section is empty.

Jump to

Keyboard shortcuts

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