theme

package
v0.9.2 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package theme holds the palette gh-sweep's views draw from, resolved once per command and read through Current for the rest of the run.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(p Palette)

Init sets the active theme used by all views.

Types

type Palette added in v0.9.0

type Palette = aragonite.Palette

Palette is a full Catppuccin flavor, as handed to Init.

func Detect

func Detect() Palette

Detect picks a palette from the CATPPUCCIN_THEME override or the terminal's background color.

func Latte

func Latte() Palette

Latte returns the Catppuccin Latte (light) palette.

func Macchiato

func Macchiato() Palette

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

type Theme

type Theme = aragonite.Semantic

Theme is the semantic role set every view renders through.

func Current

func Current() Theme

Current returns the active theme.

Jump to

Keyboard shortcuts

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