From 75f956753ab2802c37717e1fec79889da7099f54 Mon Sep 17 00:00:00 2001 From: Raymond Khalife Date: Sun, 14 Jun 2026 21:36:41 -0400 Subject: [PATCH] infra: sync site to brand guidelines v2.22 - Theme: default to light; never auto-switch from prefers-color-scheme. Dark applies only via an explicit stored preference (ThemeProvider + ThemeSelect). - Tokens: dark CTA-bar inverse stays near-black #1a1a1a (was #ffffff) with white inverse text; dark sunk background corrected to #1f1b14. - Head: add the two brand theme-color meta tags (parchment / deep bark). - Type: drop the off-system Inter 700 face; map bold/strong to 600. - Bump CSS brand stamp to v2.22 (2026-06-15). Co-Authored-By: Claude Opus 4.8 (1M context) --- astro.config.mjs | 10 +++++++++- src/components/ThemeProvider.astro | 9 ++++----- src/components/ThemeSelect.astro | 3 ++- src/styles/custom.css | 14 ++++++++++---- 4 files changed, 25 insertions(+), 11 deletions(-) diff --git a/astro.config.mjs b/astro.config.mjs index 3d9a7f84..77db8483 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -56,6 +56,15 @@ export default defineConfig({ tag: "meta", attrs: { name: "robots", content: "index, follow, max-image-preview:large" }, }, + // Brand v2.22 head template: parchment chrome in light, deep bark in dark. + { + tag: "meta", + attrs: { name: "theme-color", content: "#faf9f5", media: "(prefers-color-scheme: light)" }, + }, + { + tag: "meta", + attrs: { name: "theme-color", content: "#14110d", media: "(prefers-color-scheme: dark)" }, + }, { tag: "meta", attrs: { name: "author", content: PUBLISHER }, @@ -116,7 +125,6 @@ export default defineConfig({ "@fontsource/inter/400.css", "@fontsource/inter/500.css", "@fontsource/inter/600.css", - "@fontsource/inter/700.css", "@fontsource/newsreader/400.css", "@fontsource/newsreader/400-italic.css", "@fontsource/newsreader/500.css", diff --git a/src/components/ThemeProvider.astro b/src/components/ThemeProvider.astro index 7fddc1ae..fe0a64cb 100644 --- a/src/components/ThemeProvider.astro +++ b/src/components/ThemeProvider.astro @@ -1,16 +1,15 @@ --- --- -{/* Inlined to avoid FOUC. Defaults to system prefers-color-scheme; overridden by stored user preference. */} +{/* Inlined to avoid FOUC. Light is the default; dark applies only via an explicit stored user preference, never auto from prefers-color-scheme (brand v2.22). */}