theme

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2026 License: MIT Imports: 4 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Colors and chrome shared by every icebath surface

Index

Constants

View Source
const (
	LogoInk = "#e6f5fb"
	LogoBar = "#f50325"
)

Inks the art is authored in, a surface repaints them with the text and accent tones of its theme

View Source
const DefaultName = "blackwall"

DefaultName is the theme a session starts in, Light standing in for it on a light terminal

View Source
const Hero = "[#e6f5fb]⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀[/]\n" +
	"[#e6f5fb]⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀[/]\n" +
	"[#f50325]⣤⣄⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀[/]\n" +
	"[#f50325]⠿⠿⠀⠀⠀[/][#e6f5fb]⣀⡀⠀⣀⡀⠀⠀⠀⠀⣀⣀⣀⣀⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀[/]\n" +
	"[#e6f5fb]⣿⡇⠀⣾⡿⠿⠿⠿⠿⠿⠟⠀⣾⡿⠛⠛⠛⠛⠻⣷⡄⠀⠀⠀⠀⠀⠀⠀⠀⠀[/]\n" +
	"[#e6f5fb]⣿⡇⠀⣿⡇⠀⠀⠀⠀⠀⠀⢸⣿⣷⣶⣶⣶⣶⣶⣿⡇⠀⠀⠀⠀⠀⠀⠀⠀⠀[/]\n" +
	"[#e6f5fb]⣿⡇⠀⢿⣧⣤⣤⣤⣤⣤⣄⠘⣿⣧⣤⣤⣤⣤⣤⣄⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀[/]\n" +
	"[#e6f5fb]⣉⣁[/][#f50325]⣀⣀[/][#e6f5fb]⣉⣉⣉⣉⣉⣉[/][#f50325]⣁⣀⣀[/][#e6f5fb]⣉⣉⣉⣉⣉⠉⠉⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀[/]\n" +
	"[#e6f5fb]⣿⡏[/][#f50325]⠛⠛⠛⠛⠛⠛⠛⠋⠛⠛⠛⠛⠛⠛⠛⠋[/][#e6f5fb]⣿⡇⠀⠀⢰⣿⡇⠀⠀⠀⠀⠀[/]\n" +
	"[#e6f5fb]⣿⡿⠿⠿⠿⠿⠿⣷⡄⠸⠿⠿⠿⠿⢿⣶⡘⠿⣿⡿⠿⠿⢸⣿⡿⠿⠿⠿⣷⣆[/]\n" +
	"[#e6f5fb]⣿⡇⠀⠀⠀⠀⠀⣿⡇⣤⣶⣶⣶⣶⣶⣿⡇⠀⣿⡇⠀⠀⢸⣿⡇⠀⠀⠀⢸⣿[/]\n" +
	"[#e6f5fb]⣿⣧⣤⣤⣤⣤⣴⣿⠛⣿⣤⣤⣤⣤⣤⣿⡇⠀⢿⣷⣤⣤⢸⣿⡇⠀⠀⠀⢸⣿[/]\n" +
	"[#e6f5fb]⠙⠛⠛⠛⠛⠛⠉⠀⠀⠈⠙⠛⠛⠛⠛⠛⠁⠀⠀⠉⠛⠋⠀⠛⠁⠀⠀⠀⠈⠋[/]\n" +
	"[#e6f5fb]⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀[/]\n" +
	"[#e6f5fb]⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀[/]"

Hero is the stacked ICE over BATH mark in braille, 30 cells by 15 rows, in the same two inks

View Source
	"[#e6f5fb]▀▘                             [/][#f50325]█   [/][#e6f5fb]█▌                        █▌      █▌      [/]\n" +
	"[#e6f5fb]█▌     ▟▛▀▀▀▀▀▀    ▗█▀▀▀▀▀▀▙   [/][#f50325]█   [/][#e6f5fb]█▛▀▀▀▀▀▜▖    ▝▀▀▀▀▀▀▙    ▀█▛▀▀    █▛▀▀▀▀▜▄[/]\n" +
	"[#e6f5fb]█▌     █           ▐█▄▄▄▄▄▄█   [/][#f50325]▐   [/][#e6f5fb]█▌     ▐█    ▄▄▄▄▄▄▄█▌    █▌      █▌    ▐█[/]\n" +
	"[#e6f5fb]█▌     █▄          ▐▙▖         [/][#f50325]▐   [/][#e6f5fb]█▌     ▟▛   ▐▙      █▌    ▜▙      █▌    ▐█[/]\n" +
	"[#e6f5fb]▀▘      ▀▀▀▀▀▀▀     ▝▀▀▀▀▀▀▘   [/][#f50325]▐   [/][#e6f5fb]▀▀▀▀▀▀▀▘     ▀▀▀▀▀▀▀▀      ▀▀▀    ▀▘    ▝▀[/]"

Logo is the ICE | BATH wordmark, 77 cells by 6 rows, the letters in LogoInk and the bar in LogoBar

Variables

This section is empty.

Functions

func Hex

func Hex(v uint32) color.Color

Opaque color from a 24 bit RGB value

func IcebathBorder

func IcebathBorder() lipgloss.Border

Single line frame with square corners, the icebath border

func Mix

func Mix(a, b color.Color, t float64) color.Color

Color t of the way from a to b, treating a nil side as the other side

func Names

func Names() []string

Theme names sorted

func Ring

func Ring(n int, stops ...color.Color) []color.Color

Produces n colors that run through the stops and return to the first so they tile seamlessly

func Shade

func Shade(c color.Color, amount float64) color.Color

Darkens c toward black by amount

Types

type Glyphs

type Glyphs struct {
	// Mark of the product beside its name
	Brand    string
	Session  string
	Trace    string
	Agent    string
	Approval string
	Metrics  string
	Findings string
	Jobs     string
	Mission  string
	Sessions string
	Settings string
	Config   string
	Palette  string
	Terminal string
	Card     string
	Profiles string
	Models   string
	Rules    string
	Hooks    string
	MCP      string
	Tools    string
	Keys     string
	Ext      string
	Flow     string
	Read     string
	Write    string
	Edit     string
	Glob     string
	Grep     string
	Shell    string
	Output   string
	Kill     string
	Fetch    string
	Spawn    string
	Record   string
	Plan     string
	Server   string
	Tool     string
	Steer    string
	Thinking string
	Compact  string
	Hook     string
	Note     string
	Error    string
	Flag     string
	Ask      string
	Child    string
	Attach   string
	Cursor   string
	Marked   string
	Live     string
	Hollow   string
	Check    string
	Skip     string
	Todo     string
	Done     string
	Active   string
	Bullet   string
	Mask     string
	Fork     string
	// Arrow of the send button, the voice input mark and the spoken replies mark
	Send      string
	Voice     string
	Speak     string
	Sep       string
	Ellipsis  string
	Close     string
	Prompt    string
	Notch     string
	Grip      string
	Back      string
	Info      string
	Success   string
	Warn      string
	Fail      string
	Search    string
	None      string
	Rule      string
	Dashed    string
	Bar       string
	Fill      string
	Slide     string
	Thumb     string
	SwitchOn  string
	SwitchOff string
	Caret     string
	Up        string
	Down      string
	Track     string
	Heavy     string
	Tick      string
	HeavyTick string
	Hit       string
	Full      string
	Empty     string
	// Eight levels of a bar graph from lowest to highest
	Ramp []rune
	// Frames of the working spinner
	Spinner []string
	// One cell symbols of bare navigation chords such as pgup, text labels stand in for chords missing here
	Chords map[string]string
}

Every mark the interface draws, swapped as one set so the whole surface keeps one look

func ASCIIGlyphs

func ASCIIGlyphs() Glyphs

The same marks in printable ASCII for terminals without box drawing or symbol fonts

func IcebathGlyphs

func IcebathGlyphs() Glyphs

Frost, signal and hazard marks in single cells, the icebath set

type Theme

type Theme struct {
	Name        string
	Bg          color.Color
	Surface     color.Color
	Text        color.Color
	TextDim     color.Color
	Steel       color.Color
	SteelBright color.Color
	Ghost       color.Color
	Accent      color.Color
	Ice         color.Color
	Pulse       color.Color
	Alive       color.Color
	Alarm       color.Color
	Ring        []color.Color
	Border      lipgloss.Border
	Glyphs      Glyphs
	Plain       bool
	// Sixteen ANSI colors programs in a terminal paint with, a nil entry leaving the host terminal color
	Terminal [16]color.Color
}

Palette and border set that a deck paints with

func Blackwall

func Blackwall() Theme

Near black palette of icebath.app

func Contrast

func Contrast() Theme

Black and white palette with saturated signal colors and a thick border for low vision

func Cyberpunk

func Cyberpunk() Theme

Neon green on black, the matrix terminal

func Dracula

func Dracula() Theme

The Dracula palette, purple and pink on slate

func Light

func Light() Theme

Paper palette for bright rooms with the same red accent

func Named

func Named(name string) (Theme, bool)

Theme by name, false for an unknown name

func Plain

func Plain() Theme

Sixteen color palette with an ASCII border for terminals without true color or box drawing

func Taro added in v1.0.8

func Taro() Theme

Deep indigo palette with amber, cyan and magenta

Jump to

Keyboard shortcuts

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