theme

package
v0.7.0 Latest Latest
Warning

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

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

Documentation

Overview

Package theme holds the Multiversa visual tokens used across the CLI. Carbon background, Chartreuse single accent, Ivory text. Never two accents at hero scale.

Index

Constants

View Source
const (
	Carbon     = lipgloss.Color("#0A0A0F")
	Surface    = lipgloss.Color("#121217")
	Chartreuse = lipgloss.Color("#BDEB34")
	Ivory      = lipgloss.Color("#FAFCE8")
	Muted      = lipgloss.Color("#7A7A82")
	Faint      = lipgloss.Color("#3A3A42")
	Danger     = lipgloss.Color("#FF6B6B")
)

Variables

View Source
var (
	Display = lipgloss.NewStyle().Foreground(Ivory).Italic(true).Bold(true)
	Body    = lipgloss.NewStyle().Foreground(Ivory)
	Accent  = lipgloss.NewStyle().Foreground(Chartreuse).Bold(true)
	Label   = lipgloss.NewStyle().Foreground(Muted).Bold(true)
	Dim     = lipgloss.NewStyle().Foreground(Faint)
	Warn    = lipgloss.NewStyle().Foreground(Danger).Bold(true)

	Box = lipgloss.NewStyle().
		BorderStyle(lipgloss.RoundedBorder()).
		BorderForeground(Chartreuse).
		Padding(1, 2)

	Divider = lipgloss.NewStyle().
			Foreground(Faint).
			Render("───────────────────────────────────────")
)

Functions

func Frame

func Frame(width int, content string) string

Frame renders content inside the canonical Multiversa box, fitting the box to the available terminal width with a 2-column outer margin on each side. Falls back to width=80 when the terminal size is unknown.

func HardWrap

func HardWrap(s string, width int) string

HardWrap rewraps long lines to fit within width. Strips trailing spaces.

func Label10

func Label10(s string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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