From ae2f83e55d2b7136bf445f055a4c4f214eb1c06a Mon Sep 17 00:00:00 2001 From: Youssef Date: Wed, 3 Jun 2026 16:19:09 +0100 Subject: [PATCH] Lead with Hum, fix theme-picker number contrast, reorder worked examples Theme picker: Hum is now theme 01, with the rest renumbered 02-20. The ordinal reads off the registry index, so switching, cycling, and the "NN / 20" readout all stay correct. Theme numbers: each picker swatch now carries an explicit number colour that contrasts with its own background, instead of inheriting the active theme's ink. Dark swatches (Midnight, Terminal, Manifesto, Aurora, Lumen) get a light number rather than a near-invisible dark one. All twenty clear AA (min 10:1). Worked Examples: moved the first three carousel cards (Cobalt, Carnival, Lumen) to the end so the page leads with Hum. Bumped the asset cache-bust. --- site/css/components.css | 2 +- site/index.html | 159 ++++++++++++++++++++-------------------- site/js/main.js | 2 +- 3 files changed, 80 insertions(+), 83 deletions(-) diff --git a/site/css/components.css b/site/css/components.css index 83d701f..79d5f8a 100644 --- a/site/css/components.css +++ b/site/css/components.css @@ -525,7 +525,7 @@ font-size: 11px; font-weight: 500; letter-spacing: 0.02em; - color: color-mix(in oklch, var(--dot-edge, var(--color-ink)) 55%, var(--color-ink)); + color: var(--num, color-mix(in oklch, var(--dot-edge, var(--color-ink)) 55%, var(--color-ink))); font-feature-settings: "tnum"; pointer-events: none; } diff --git a/site/index.html b/site/index.html index 6e7351c..86016c5 100644 --- a/site/index.html +++ b/site/index.html @@ -56,10 +56,10 @@ - - - - + + + + + \ No newline at end of file diff --git a/site/js/main.js b/site/js/main.js index 4e33de3..ca7eeea 100644 --- a/site/js/main.js +++ b/site/js/main.js @@ -40,6 +40,7 @@ document.querySelectorAll(".reveal").forEach((el) => el.classList.add("is-in")); /* — Theme registry ————————————————————————————————————— */ const THEMES = { + hum: "Hum", specimen: "Specimen", midnight: "Midnight", brutal: "Brutal", @@ -58,7 +59,6 @@ const THEMES = { editorial: "Editorial", carnival: "Carnival", lumen: "Lumen", - hum: "Hum", cobalt: "Cobalt", }; const STORAGE_KEY = "hallmark-theme";