theme

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BLUE  = lipgloss.Color("69")
	PINK  = lipgloss.Color("#F25D94")
	GREY  = lipgloss.Color("240")
	GREEN = lipgloss.Color("76")
	RED   = lipgloss.Color("9")
)

Variables

View Source
var CustomThemeKeys = CustomTheme{
	Primary:   "primary",
	Secondary: "secondary",
	Success:   "success",
	Inactive:  "inactive",
	Error:     "error",
}

Functions

This section is empty.

Types

type CustomTheme added in v0.5.0

type CustomTheme struct {
	Primary   string
	Secondary string
	Inactive  string
	Success   string
	Error     string
}

type Theme

type Theme struct {
	Primary     lipgloss.Color
	Secondary   lipgloss.Color
	Inactive    lipgloss.Color
	Success     lipgloss.Color
	Error       lipgloss.Color
	ChromaStyle *chroma.Style
}

func GetTheme

func GetTheme(themeName string, styleOverrides map[string]string) (Theme, bool)

returns a theme by name, and true if default theme was returned

func (*Theme) SetOverrides added in v0.5.0

func (t *Theme) SetOverrides(overrides map[string]string)

Jump to

Keyboard shortcuts

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