From b5109e75223a7e9431dafb3fb49ca399658faeec Mon Sep 17 00:00:00 2001 From: Frederic Cabassut Date: Fri, 31 Jul 2026 10:08:30 +0200 Subject: [PATCH] fix(sharing): make public note colors follow the visitor's theme MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The public share page picked the note background from the light palette unconditionally, while app.html applies data-theme="dark" on every page. A visitor in dark mode therefore got a light pastel card rendered with the dark theme's light text colour — washed out and barely readable. Emit both palettes as custom properties and let [data-theme] select one, so the correct colour lands on the first paint of this SSR page instead of flashing after hydration. Reported by a user over email. Co-Authored-By: Claude Opus 5 (1M context) --- src/routes/(share)/s/[token]/+page.svelte | 22 +++++++++-- tests/e2e/public-sharing.spec.ts | 48 +++++++++++++++++++++++ 2 files changed, 66 insertions(+), 4 deletions(-) diff --git a/src/routes/(share)/s/[token]/+page.svelte b/src/routes/(share)/s/[token]/+page.svelte index ecedd82..033e84a 100644 --- a/src/routes/(share)/s/[token]/+page.svelte +++ b/src/routes/(share)/s/[token]/+page.svelte @@ -1,5 +1,5 @@