theme

package
v0.0.0-...-91bf553 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Primary         lipgloss.Color
	Accent          lipgloss.Color
	Secondary       lipgloss.Color
	Text            lipgloss.Color
	SelectedBg      lipgloss.Color
	MutedBg         lipgloss.Color
	SoftMutedBg     lipgloss.Color
	ModalBg         lipgloss.Color
	AddedLine       lipgloss.Color
	DeletedLine     lipgloss.Color
	WordDiffAddedBg lipgloss.Color
	WordDiffDelBg   lipgloss.Color
)

Exported color variables

View Source
var (
	HeaderStyle            lipgloss.Style
	HunkHeaderStyle        lipgloss.Style
	SectionStyle           lipgloss.Style
	KeyStyle               lipgloss.Style
	FooterStyle            lipgloss.Style
	AdditionStyle          lipgloss.Style
	DeletionStyle          lipgloss.Style
	SelectedFocusedStyle   lipgloss.Style
	SelectedUnfocusedStyle lipgloss.Style
	StatusBarStyle         lipgloss.Style
	BorderStyle            lipgloss.Style
	WordDiffAddedStyle     lipgloss.Style
	WordDiffDeletedStyle   lipgloss.Style
)

Exported style variables

Functions

func Init

func Init()

Init detects the appropriate theme and initializes all colors and styles

func PaneStyle

func PaneStyle(width, height int, focused bool) lipgloss.Style

PaneStyle returns a dynamic border style for panes

Types

type Theme

type Theme struct {
	Primary         lipgloss.Color
	Accent          lipgloss.Color
	Secondary       lipgloss.Color
	Text            lipgloss.Color
	SelectedBg      lipgloss.Color
	MutedBg         lipgloss.Color
	SoftMutedBg     lipgloss.Color
	ModalBg         lipgloss.Color
	AddedLine       lipgloss.Color
	DeletedLine     lipgloss.Color
	WordDiffAddedBg lipgloss.Color
	WordDiffDelBg   lipgloss.Color
}

Theme defines semantic color roles

func Detect

func Detect() Theme

Detect returns the appropriate theme based on environment

func Latte

func Latte() Theme

Latte returns Catppuccin Latte (light theme)

func Macchiato

func Macchiato() Theme

Macchiato returns Catppuccin Macchiato (dark theme)

Jump to

Keyboard shortcuts

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