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:
parent
0f62b67ee0
commit
177a65005e
7 changed files with 243 additions and 2 deletions
8
pnpm-lock.yaml
generated
8
pnpm-lock.yaml
generated
|
|
@ -11,6 +11,9 @@ importers:
|
|||
'@fontsource/montserrat':
|
||||
specifier: ^5.3.0
|
||||
version: 5.3.0
|
||||
'@fontsource/opendyslexic':
|
||||
specifier: ^5.3.0
|
||||
version: 5.3.0
|
||||
'@fontsource/poppins':
|
||||
specifier: ^5.3.0
|
||||
version: 5.3.0
|
||||
|
|
@ -66,6 +69,9 @@ packages:
|
|||
'@fontsource/montserrat@5.3.0':
|
||||
resolution: {integrity: sha512-iQPDtZOnmM5ih4JBGaMSXisRap0ixb9bAUw2hDtY7EjVfaqiiNlKtVuJl9XclxUwtwMMHNcWXfQR6zI9x05+Tg==}
|
||||
|
||||
'@fontsource/opendyslexic@5.3.0':
|
||||
resolution: {integrity: sha512-BVYIW/ghc1U2iAghhYTN+GFWiZ3lnCy8Jf2KkZC23aHQHBNcMqKT718zckfqVxRx4qsXJmIMPWvczirRuhmtsg==}
|
||||
|
||||
'@fontsource/poppins@5.3.0':
|
||||
resolution: {integrity: sha512-cms1nM7U6SN8epIV1WMVOV8VsA645aSm3wHfzIQnkk188U341ThbJGSl2Sv54V29gnDbT2arMPfLzvVIIVCceQ==}
|
||||
|
||||
|
|
@ -786,6 +792,8 @@ snapshots:
|
|||
|
||||
'@fontsource/montserrat@5.3.0': {}
|
||||
|
||||
'@fontsource/opendyslexic@5.3.0': {}
|
||||
|
||||
'@fontsource/poppins@5.3.0': {}
|
||||
|
||||
'@jridgewell/gen-mapping@0.3.13':
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue