From fd7dfd24ca08c20dac9209b5c68d98c11ada2d0e Mon Sep 17 00:00:00 2001 From: Patrick Singletary Date: Sat, 15 Aug 2026 12:58:46 -0400 Subject: [PATCH] witchsky-cyan: add --background token (page bg), tokenize body background --- AGENTS.md | 2 +- README.md | 1 + themes/witchsky-cyan/theme.css | 3 ++- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/AGENTS.md b/AGENTS.md index 7b30acb..217b8a9 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -12,7 +12,7 @@ source of truth for the look; consumer repos never fork the CSS. ## Rules -- Token names are the stable contract: `--text`, `--text-muted`, +- Token names are the stable contract: `--background`, `--text`, `--text-muted`, `--button-bg`, `--button-text`, `--button-hover-bg`, `--card-bg`, `--card-border`, `--navbar-bg`, `--success-*`, `--error-*`. Themes change token VALUES; consumers depend on NAMES. Do not rename or diff --git a/README.md b/README.md index 764cf15..3cc938a 100644 --- a/README.md +++ b/README.md @@ -25,6 +25,7 @@ Design tokens (defined in `:root`, components use `var()` only): | token | value | use | |--------------------|----------------------------|------------------------------| +| --background | #111822 | page background | | --text | #F9FAFB | primary text | | --text-muted | #A5B2C5 | secondary text | | --button-bg | hsl(174, 83%, 38%) | primary buttons, links | diff --git a/themes/witchsky-cyan/theme.css b/themes/witchsky-cyan/theme.css index 176dd7c..719302c 100644 --- a/themes/witchsky-cyan/theme.css +++ b/themes/witchsky-cyan/theme.css @@ -1,6 +1,7 @@ /* witchsky-cyan — shared Web UI base theme (altifier + verifier) */ :root { + --background: #111822; --text: #F9FAFB; --text-muted: #A5B2C5; --button-bg: hsl(174, 83%, 38%); @@ -21,7 +22,7 @@ body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; font-size: 18px; - background: #111822; + background: var(--background); color: var(--text); min-height: 100vh; } -- 2.51.2