themes

package
v0.0.0-...-a0986ef Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var EverforestDark = Theme{
	Name:              "Everforest Dark",
	IsDark:            true,
	PrimaryForeground: lipgloss.Color("#D3C6AA"),
	PrimaryBackground: lipgloss.Color("#2D353B"),
	SuccessForeground: lipgloss.Color("#A7C080"),
	SuccessBackground: lipgloss.Color("#2D353B"),
	ErrorForeground:   lipgloss.Color("#E67E80"),
	ErrorBackground:   lipgloss.Color("#2D353B"),
	WarningForeground: lipgloss.Color("#DBBC7F"),
	WarningBackground: lipgloss.Color("#2D353B"),
	MutedForeground:   lipgloss.Color("#859289"),
}

Functions

func GetThemesDir

func GetThemesDir() string

GetThemesDir returns the path to the custom themes directory.

func LoadAllCustomThemes

func LoadAllCustomThemes() map[string]*Theme

LoadAllCustomThemes scans the themes directory and loads all valid theme files. Returns a map of theme key (filename without extension) to Theme.

Types

type CustomThemeFile

type CustomThemeFile struct {
	Name              string `json:"name" toml:"name"`
	IsDark            bool   `json:"is_dark" toml:"is_dark"`
	PrimaryForeground string `json:"primary_foreground" toml:"primary_foreground"`
	PrimaryBackground string `json:"primary_background" toml:"primary_background"`
	SuccessForeground string `json:"success_foreground" toml:"success_foreground"`
	SuccessBackground string `json:"success_background" toml:"success_background"`
	ErrorForeground   string `json:"error_foreground" toml:"error_foreground"`
	ErrorBackground   string `json:"error_background" toml:"error_background"`
	WarningForeground string `json:"warning_foreground" toml:"warning_foreground"`
	WarningBackground string `json:"warning_background" toml:"warning_background"`
	MutedForeground   string `json:"muted_foreground" toml:"muted_foreground"`
}

CustomThemeFile represents the structure of a custom theme file (JSON or TOML).

type Theme

type Theme struct {
	Name              string
	IsDark            bool
	PrimaryForeground lipgloss.Color
	PrimaryBackground lipgloss.Color
	SuccessForeground lipgloss.Color
	SuccessBackground lipgloss.Color
	ErrorForeground   lipgloss.Color
	ErrorBackground   lipgloss.Color
	WarningForeground lipgloss.Color
	WarningBackground lipgloss.Color
	MutedForeground   lipgloss.Color
}

func Catppuccin

func Catppuccin() *Theme

func Dracula

func Dracula() *Theme

func FlexokiDark

func FlexokiDark() *Theme

func FlexokiLight

func FlexokiLight() *Theme

func GithubLight

func GithubLight() *Theme

func GruvboxDark

func GruvboxDark() *Theme

func GruvboxLight

func GruvboxLight() *Theme

func LoadCustomTheme

func LoadCustomTheme(path string) (*Theme, error)

LoadCustomTheme loads a theme from a JSON or TOML file.

func Monokai

func Monokai() *Theme

func Nord

func Nord() *Theme

func OneDark

func OneDark() *Theme

func SolarizedDark

func SolarizedDark() *Theme

func SolarizedLight

func SolarizedLight() *Theme

func Tokyo

func Tokyo() *Theme

Jump to

Keyboard shortcuts

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