theme

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package theme provides color theme detection and management for the TUI.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Theme

type Theme struct {
	Primary   color.Color // Mauve - titles, focused borders
	Secondary color.Color // Surface2 - unfocused borders
	Accent    color.Color // Teal - selected items
	Muted     color.Color // Overlay2 - subtitles, help text
	SoftMuted color.Color // Overlay1 - default values, less critical info
	Text      color.Color // Text - normal text
	ModalBg   color.Color // Mantle - modal background
	Error     color.Color // Red - error messages
	Link      color.Color // Blue - URLs and links
}

Theme defines semantic color roles for the UI.

func Detect

func Detect() Theme

Detect returns the appropriate theme based on terminal background and environment variables.

func Latte

func Latte() Theme

Latte returns the Catppuccin Latte (light) theme.

func Macchiato

func Macchiato() Theme

Macchiato returns the Catppuccin Macchiato (medium-dark) theme.

Jump to

Keyboard shortcuts

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