style

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Style

type Style func(s string) string
var Alias Style = func(s string) string {
	return pterm.NewRGB(255, 165, 96).Sprintf(s)
}
var Error Style = func(s string) string {
	return pterm.Error.Sprintf("%s", pterm.FgDefault.Sprintf(s))
}
var Info Style = func(s string) string {
	pterm.Info.Scope = pterm.Scope{
		Style: pterm.NewStyle(pterm.FgDefault),
	}
	return pterm.Info.Sprintf("%s", s)
}
var OnenoteHeader Style = func(s string) string {
	return pterm.DefaultHeader.WithFullWidth().WithBackgroundStyle(pterm.NewStyle(pterm.BgMagenta)).WithTextStyle(pterm.NewStyle(pterm.FgBlack)).Sprintf(s)
}
var Reminder Style = func(s string) string {
	pterm.Info.Prefix = pterm.Prefix{
		Text:  "💡 REMINDER",
		Style: pterm.NewStyle(pterm.BgYellow, pterm.FgBlack),
	}

	return pterm.Info.Sprintf(pterm.NewRGB(255, 217, 30).Sprintf(s))
}
var Section Style = func(s string) string {
	return pterm.FgMagenta.Sprintf("%s", s)
}
var Success Style = func(s string) string {
	return pterm.Success.Sprintf("%s", pterm.FgDefault.Sprintf(s))
}
var TableHeader Style = func(s string) string {
	return pterm.BgMagenta.Sprint(pterm.FgWhite.Sprint(s))
}
var Warning Style = func(s string) string {
	return pterm.Warning.Sprintf("%s", s)
}

Jump to

Keyboard shortcuts

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