bug: Rich-text links, bold, quotes and code ignore the site's theme toggle
Back to our planProblem
Found in the independent review of #398. Post and page rich text (prose ... dark:prose-invert in src/platform/richtext/RichText.tsx) takes most of its colors from the typography plugin's default grays, and dark:prose-invert follows the device's color scheme, not the site's theme toggle (data-theme). #398 mapped body, headings, bullets and numbers to theme tokens. The rest still don't follow the theme: links, bold, quotes, code, horizontal rules, captions and table borders. Example: with the site on dark and the device on light, links and bold text in a post are near-black on the dark background.
Proposed fix
Point the remaining --tw-prose-* and --tw-prose-invert-* variables in tailwind.config.mjs at theme tokens (--foreground, --muted-foreground, --border, the link token), as #398 did, and check the pairs against WCAG AA with the theme tests. Fits with #146.
Acceptance criteria
- Not done: Every prose color follows the site's theme toggle in all four site/device theme combinations
- Not done: Links, bold, quotes, code and table text meet 4.5:1, rules and borders 3:1, in light and dark