Skip to content

v1.5.1 - Dark Mode Accessibility & Theme Persistence Fix

Choose a tag to compare

@holger1411 holger1411 released this 27 Jan 10:14
· 129 commits to main since this release

🎨 Dark Mode Accessibility Improvements

This patch release significantly improves dark mode readability and fixes theme persistence across page navigations.

Bug Fixes

Improved Text Contrast

  • Increased muted-foreground contrast from 60% to 71% lightness for better readability
  • All headings (h1-h6), paragraphs, lists, tables, and blockquotes now have explicit high-contrast colors in dark mode
  • Added Tailwind Typography prose variables for consistent dark mode styling

Visible Borders & Lines

  • Increased border visibility from 12% to 25% lightness
  • Table borders, card outlines, blockquote lines, and dividers are now clearly visible in dark mode

Theme Persistence Fix

  • Fixed: Theme selection now persists correctly when navigating between pages using View Transitions
  • Fixed: Explicit "light" mode choice now properly overrides system dark mode preference
  • Applied fix to all layout templates (Base, FullWidth, Auth, Minimal)

Files Changed

  • src/styles/globals.css - Dark mode contrast improvements
  • src/layouts/BaseLayout.astro - Theme persistence fix
  • src/layouts/FullWidthLayout.astro - Theme persistence fix
  • src/layouts/AuthLayout.astro - Theme persistence fix
  • src/layouts/MinimalLayout.astro - Theme persistence fix

Upgrade

No breaking changes. Simply pull the latest version:

npx degit holger1411/astrodeck my-project

Or download directly: v1.5.1.zip