From ce7ed3cb2a04cb7d8d055f39323198ef13016a5a Mon Sep 17 00:00:00 2001 From: Benoit TRAVERS Date: Sun, 28 Jun 2026 21:52:53 +0200 Subject: [PATCH] Light mode: drop washed-out hero glow + fix scoped scheme overrides MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Building on the surface-definition work, fix the real "livid" cause and a related Vue scoped-CSS bug. - The pink hero glow (glowpulse animation, opacity .55->.8) is a dark-scheme signature; on near-white it became a washed-out pink cloud behind the wordmark. It is now hidden in light mode. - Root cause of several light-mode misses: a scoped selector of the form :global(html-state) .btv-child compiles (Vue scoped CSS) to just the html-state element, dropping the child — so the light overrides for the glow and the nav/pill/footer overlays never reached the landing subtree. Drive all scheme-specific values (overlays, card rest shadow, glow display) through CSS variables set on the two html states and consume them on the elements, which cascades correctly. Verified light: glow hidden, cards have a rest shadow and still lift on hover, pills use the dark-on-light overlay; dark: glow shown, no card rest shadow. Co-Authored-By: Claude Opus 4.8 (1M context) --- apps/website/.vitepress/theme/Landing.vue | 37 ++++++++++++----------- 1 file changed, 19 insertions(+), 18 deletions(-) diff --git a/apps/website/.vitepress/theme/Landing.vue b/apps/website/.vitepress/theme/Landing.vue index 85d27fa..9ecad8f 100644 --- a/apps/website/.vitepress/theme/Landing.vue +++ b/apps/website/.vitepress/theme/Landing.vue @@ -232,32 +232,33 @@ onMounted(() => {