An accessibility button: a dyslexia-friendly font and a reading mode

A button fixed to the bottom right of every public page opens two
switches. Dyslexia-friendly font swaps every typeface for
OpenDyslexic (self-hosted, @fontsource/opendyslexic, downloaded
only when chosen). Reading mode steps the design back: no background
circles, motion or shadows, every layout one column, larger text and
underlined links. Both are data attributes on <html>, remembered in
the browser and set before the first paint like the theme. On a
phone the privacy notice sits above the button.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Zaldimmar 2026-09-30 22:34:40 -05:00
parent 0f62b67ee0
commit 177a65005e
7 changed files with 243 additions and 2 deletions

View file

@ -7,6 +7,7 @@ import siteLogo from "../assets/logos/NGU_Logo.svg";
import Footer from "./Footer.tsx";
import PrivacyNotice from "./PrivacyNotice.tsx";
import PageBackdrop from "./PageBackdrop.tsx";
import AccessibilityPanel from "./AccessibilityPanel.tsx";
import ThemeToggle from "./ThemeToggle.tsx";
import { scrollBehavior } from "../lib/motion.ts";
@ -289,6 +290,7 @@ export default function Layout() {
<div inert={mobileMenuOpen} className="print:hidden">
<Footer />
<PrivacyNotice />
<AccessibilityPanel />
</div>
{/* Mobile menu */}