Help us shape the future of Go! Take the 2026 Go Developer Survey

theme

package
v2.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package theme exposes the canonical corrupted-theme color palette, embedded from colors.json. The JSON is synced from the corrupted-theme repo (src/data/colors.json) via `make sync-theme` so celeste-cli's corruption colors stay in lockstep with the theme instead of drifting from hardcoded hex literals (task 7aa133c9; the #49 color-drift fix is the motivation).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Hex

func Hex(key string) string

Hex returns the hex string for a palette key (e.g. "cyan"); "" if absent.

Types

type Colors

type Colors struct {
	SchemaVersion string            `json:"schemaVersion"`
	Palette       map[string]string `json:"palette"`
	SemanticUse   map[string]string `json:"semanticUse"`
}

Colors is the parsed palette. Keys mirror corrupted-theme's colors.json.

Jump to

Keyboard shortcuts

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