From 73132222a2790a2411b9a6342210bb3a96a89e88 Mon Sep 17 00:00:00 2001 From: pyr0ball Date: Fri, 8 May 2026 15:44:33 -0700 Subject: [PATCH] fix: dark/explicit themes now show correct page background MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit index.html set 'html, body { background: #eaeff8 }' hardcoded. body paints on top of html — even with html correctly going dark via CSS variable resolution, the hardcoded body background covered it. Fix: - Remove body background from inline style (body is now transparent) - Add blocking script to read cf-theme/cf-hacker-mode from localStorage and set data-theme on before first paint (FOUT prevention) - Add html[data-theme='dark'|'solarized-dark'|'hacker'] rules so the correct background fires immediately on initial load for all themes --- CHANGELOG.md | 16 ++++++++++++++++ web/index.html | 15 +++++++++++---- 2 files changed, 27 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0b863c8..eb77105 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,22 @@ Format follows [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). --- +## [0.9.5] — 2026-05-08 + +### Fixed + +- **Theme: dark/explicit themes show correct page background** — `index.html` inline style + set `html, body { background: #eaeff8 }` hardcoded. `body` paints on top of `html`, so + even when `html { background: var(--color-surface) }` correctly resolved to `#16202e` in + dark mode, the body's hardcoded light background covered it — producing dark cards on a + light page. Fixed by: (1) removing body background from the inline style; (2) adding a + tiny blocking ` +