palette

package
v0.8.1 Latest Latest
Warning

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

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

Documentation

Overview

Package palette is the single source of truth for terminal colors used across the Entire CLI. Every color is a base16 (ANSI 0–15) slot so the UI respects the user's terminal theme and stays internally consistent.

Colors are plain string constants (not lipgloss.Color values) so this package has zero dependencies and can be imported by any other package — cli, recap, mdrender, search, etc. — without import cycles. Callers wrap as needed, e.g. lipgloss.Color(palette.Accent).

Use the bright variants (8–15) and lipgloss Faint(true) ("dim") for visual hierarchy rather than reaching for extended 256-color codes.

Index

Constants

View Source
const (
	Black         = "0"
	Red           = "1"
	Green         = "2"
	Yellow        = "3"
	Blue          = "4"
	Magenta       = "5"
	Cyan          = "6"
	White         = "7"
	BrightBlack   = "8"
	BrightRed     = "9"
	BrightGreen   = "10"
	BrightYellow  = "11"
	BrightBlue    = "12"
	BrightMagenta = "13"
	BrightCyan    = "14"
	BrightWhite   = "15"
)

Base16 ANSI slots.

View Source
const (
	Accent  = Magenta       // primary brand accent (was orange)
	Accent2 = BrightMagenta // secondary accent (detail framing, team)
	Muted   = BrightBlack   // all dim/secondary text & borders (was 8/240/241/243/245)
	Success = Green
	Error   = Red
	Warning = Yellow
	Info    = Cyan
)

Semantic aliases — prefer these in styles; reserve the raw slot names for one-off uses where no semantic meaning applies.

There is deliberately no "primary text" alias: primary/body text should be left unstyled (no Foreground) so it uses the terminal's default foreground, which inverts with the background. Pinning a slot like White ("7") makes text disappear on light terminals.

Variables

This section is empty.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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