mirror of
https://github.com/runbear-io/beardrive.git
synced 2026-08-25 08:08:08 +02:00
The share page already followed the system, but its dark @media block sat ABOVE the light pre/code/blockquote/table rules at equal specificity, so every light rule after it won. A dark-system visitor got a white frontmatter slab, a white code block and light-grey table borders on a near-black page — the surface strangers see first reading as a different product. Source order is the whole fix: the block moves to the end of the stylesheet and gets completed there, which repairs pre/code for free. Values are the hub's @theme tokens from frontend/src/tw.css instead of the hand-picked greys (#c6cbd3 body text, #3a3a44/#888 footer) that were the "different product" half of the complaint. Light mode is pixel-identical — only the dark block moved. Response headers (sandbox CSP, nosniff, referrer) are untouched. The test asserts placement, not presence: "a dark rule exists" passed while the page was still wrong, so it checks the dark block comes after the last light literal. Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>