theme

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package theme holds the TUI's palette and styles. Colors name roles, not hues; Init must pick the hues before anything renders.

Index

Constants

This section is empty.

Variables

View Source
var (
	Fg     color.Color // body text
	Strong color.Color // highest contrast: the assistant's bullet, titles
	Muted  color.Color // secondary text
	Subtle color.Color // hints, thinking
	Faint  color.Color // rules, connectors

	Surface   color.Color // the user's prompt band
	Selection color.Color // selected text

	Accent  color.Color // the brand: prompt, focus
	Live    color.Color // the status line's spinner
	Warm    color.Color // running work, emphasis
	Success color.Color
	Danger  color.Color
	Info    color.Color // links, inline code
	Path    color.Color
	Shell   color.Color // "!" commands
	Agent   color.Color // sub-agents

	DiffAdd, DiffRemove         color.Color // line backgrounds
	DiffAddWord, DiffRemoveWord color.Color // changed words within a line

	// Glint ramps dim to bright for the status line's shimmer.
	Glint [16]color.Color
)
View Source
var (
	Text       lipgloss.Style
	Bold       lipgloss.Style
	MutedText  lipgloss.Style
	SubtleText lipgloss.Style
	FaintText  lipgloss.Style
	AccentText lipgloss.Style
	WarmText   lipgloss.Style
	ErrorText  lipgloss.Style
	OKText     lipgloss.Style
	PathText   lipgloss.Style
	Selected   lipgloss.Style // the highlighted row of a list
	Key        lipgloss.Style // a key in a hint, "esc"
)
View Source
var Dark bool

Functions

func Detect

func Detect()

Detect lets CODEBOT_THEME=light|dark override the terminal's reported background.

func Hint

func Hint(pairs ...string) string

Hint renders "key action" pairs, like "↑↓ select · esc close".

func Init

func Init(dark bool)

Types

This section is empty.

Jump to

Keyboard shortcuts

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