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

@ -11,6 +11,7 @@
},
"dependencies": {
"@fontsource/montserrat": "^5.3.0",
"@fontsource/opendyslexic": "^5.3.0",
"@fontsource/poppins": "^5.3.0",
"@phosphor-icons/react": "^2.1.10",
"qrcode": "^1.5.4",