posthog.com icon indicating copy to clipboard operation
posthog.com copied to clipboard

fix: improve text contrast in dark mode on /vibe-check slideshow

Open vmaineng opened this issue 5 months ago • 0 comments

Changes

Fixes #17926

Two contrast issues on /vibe-check in dark mode:

  1. Heading — The "You'll hate PostHog if..." h1 was using text-primary which rendered dark in dark mode against the dark background. Fixed by adding dark:text-white so it adapts correctly.

  2. Slide card text — The card h2 and p were using semantic color tokens (text-primary, text-secondary) that flipped to light in dark mode, making them hard to read against the fixed pastel card backgrounds. Fixed by replacing with static PostHog color tokens (text-light-12, text-light-11) that stay dark regardless of color scheme.

Before: image

After: Screenshot 2026-06-25 at 4 13 46 PM

Checklist

  • [X ] I've read the docs and/or content style guides.
  • [X ] Words are spelled using American English
  • [ ] Use relative URLs for internal links
  • [ ] I've checked the pages added or changed in the Vercel preview build
  • [ ] If I moved a page, I added a redirect in vercel.json

vmaineng avatar Jun 25 '26 23:06 vmaineng