forked from mirror/crumbs-original
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) <noreply@anthropic.com>