From 7a78787ad4fadcbf9909d06e856914999fba2427 Mon Sep 17 00:00:00 2001 From: tannevaled Date: Fri, 9 Oct 2026 20:58:22 +0200 Subject: [PATCH] Tell the Dark Reader extension to stand aside, from the shared stylesheet This page draws its own dark theme; Dark Reader repainted it on top and the hero's brand wash vanished under it (seen on go-fft). The meta lives in the styles.html partial, which every page includes in , so the landing and any other page on the kit carry it. Co-Authored-By: Claude Opus 5.5 (1M context) --- layouts/index.html | 6 ------ layouts/partials/styles.html | 7 +++++++ 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/layouts/index.html b/layouts/index.html index eb8dec8..1325b9c 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -6,12 +6,6 @@ {{ .Site.Title }} — the whole of PDF in Go, with no C anywhere -{{/* Ask the Dark Reader extension to stand aside. This page has its own - three-way theme and its own dark palette; Dark Reader recolours it on top - of that, which inverts a page that was already dark and leaves the brand - colours somewhere neither design chose. Same mechanism our Hextra fork - uses for the documentation. */}} - {{ partial "styles.html" . }} diff --git a/layouts/partials/styles.html b/layouts/partials/styles.html index 3499b6a..97f1499 100644 --- a/layouts/partials/styles.html +++ b/layouts/partials/styles.html @@ -1,3 +1,10 @@ +{{/* This page draws its own dark theme (prefers-color-scheme and the + System/Light/Dark toggle). The Dark Reader extension otherwise repaints it + on top -- the hero's brand wash vanished under it on go-fft while the + same CSS showed on go-ndarray -- so it is told to stand down, as + go-pdfkit's page and our Hextra fork already do. This partial is + included in , so every landing on the kit gets the flag. */}} + {{/* The brand colours are the ONLY thing that differs between the orgs using this stylesheet, and they are read from [params.brand] rather than written in. Two byte-identical copies of this file already existed in go-authn and