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>
34 lines
831 B
JSON
34 lines
831 B
JSON
{
|
|
"name": "ngu-web-app",
|
|
"private": true,
|
|
"version": "1.0.0",
|
|
"type": "module",
|
|
"scripts": {
|
|
"dev": "vite",
|
|
"build": "vite build",
|
|
"preview": "vite preview",
|
|
"format": "oxfmt"
|
|
},
|
|
"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",
|
|
"react": "^19.0.0",
|
|
"react-dom": "^19.0.0",
|
|
"react-router-dom": "^7.18.4"
|
|
},
|
|
"devDependencies": {
|
|
"@tailwindcss/vite": "^4.0.0",
|
|
"@types/node": "^22.0.0",
|
|
"@types/qrcode": "^1.5.6",
|
|
"@types/react": "^19.0.0",
|
|
"@types/react-dom": "^19.0.0",
|
|
"@vitejs/plugin-react": "^6.0.0",
|
|
"oxfmt": "^0.2.0",
|
|
"tailwindcss": "^4.0.0",
|
|
"typescript": "^5.7.0",
|
|
"vite": "^8.0.5"
|
|
}
|
|
}
|