theme

package
v0.67.0 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package theme holds the built-in color palettes. It has no rendering dependency, so the packages that the CLI and Hive Desktop share can use it.

Index

Constants

View Source
const Default = "tokyo-night"

Default is the name of the default theme.

Variables

This section is empty.

Functions

func Names

func Names() []string

Names returns sorted names of all built-in themes.

Types

type Palette

type Palette struct {
	Primary    color.Color
	Secondary  color.Color
	Foreground color.Color
	Muted      color.Color
	Background color.Color
	Surface    color.Color
	// SurfaceLow is a subtle lift above Background (below Surface), used
	// for low-emphasis fills like selected-row highlights.
	SurfaceLow color.Color
	Success    color.Color
	Warning    color.Color
	Error      color.Color
}

Palette defines a minimal semantic theme palette.

func Get

func Get(name string) (Palette, bool)

Get returns the palette for the given theme name.

Jump to

Keyboard shortcuts

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