style

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2022 License: MIT Imports: 1 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	Background    = "#171717"
	Foreground    = "#dddddd"
	Black         = "#282a2e" // ansi 0
	BrightBlack   = "#4d4d4d" // ansi 8
	Red           = "#D74E6F" // ansi 1
	BrightRed     = "#FE5F86" // ansi 9
	Green         = "#31BB71" // ansi 2
	BrightGreen   = "#00D787" // ansi 10
	Yellow        = "#D3E561" // ansi 3
	BrightYellow  = "#EBFF71" // ansi 11
	Blue          = "#8056FF" // ansi 4
	BrightBlue    = "#9B79FF" // ansi 12
	Magenta       = "#ED61D7" // ansi 5
	BrightMagenta = "#FF7AEA" // ansi 13
	Cyan          = "#04D7D7" // ansi 6
	BrightCyan    = "#00FEFE" // ansi 14
	White         = "#bfbfbf" // ansi 7
	BrightWhite   = "#e6e6e6" // ansi 15
	Indigo        = "#5B56E0"
)

Theme colors.

Variables

View Source
var Command = lipgloss.NewStyle().Foreground(lipgloss.Color("12"))

Command is the default style for command keywords

View Source
var Error = lipgloss.NewStyle().Foreground(lipgloss.Color("1"))

Error is the style for an error

View Source
var ErrorFile = lipgloss.NewStyle().
	Border(lipgloss.NormalBorder()).
	BorderForeground(lipgloss.Color("8")).
	Foreground(lipgloss.Color("1")).
	Padding(0, 1).
	Width(defaultWidth)

ErrorFile is the style for printing an file name that is not valid.

View Source
var Faint = lipgloss.NewStyle().Foreground(lipgloss.AdaptiveColor{Light: "242", Dark: "238"})

Faint is the default style for a faint command

View Source
var File = lipgloss.NewStyle().Foreground(lipgloss.Color("8"))

File is the style for printing a file name

View Source
var Keyword = lipgloss.NewStyle()

Keyword is the style for a keyword

View Source
var LineNumber = lipgloss.NewStyle().Foreground(lipgloss.Color("8"))

LineNumber is the style for a line number

None is an empty style

View Source
var Number = lipgloss.NewStyle().Foreground(lipgloss.Color("3"))

Number is the style for a number

View Source
var String = lipgloss.NewStyle().Foreground(lipgloss.Color("10"))

String is the style for a string

View Source
var Time = lipgloss.NewStyle().Foreground(lipgloss.Color("11"))

Time is the style for time

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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