theme

package
v1.10.0 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 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.

func Semantic

func Semantic(role string) string

Semantic returns the hex for a semantic role (e.g. "corrupting"), resolved through the palette. "" if the role or its palette key is missing.

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