Add a self-contained theme toggle component under
public/src/components/theme/ that toggles the dark class on the root
element and stores the choice under the beat-theme key in
localStorage. Apply the stored theme, or the prefers-color-scheme
default when nothing is stored, before the app mounts so a cold load
never paints the wrong theme.
The pre-paint script in index.html and both 404 copies reads the same
beat-theme key, so the theme is already on the root element when the
first frame is painted.
Two plain-Node check scripts, no new runtime dependency, that enforce the
BEAT design rules and the copy discipline mechanically. Both exit non-zero
when they find something and print file, line and column for every hit.
scripts/check-design-rules.mjs covers README.md and public/src: no emoji
characters, no gradient utilities or gradient declarations, no inline style
attributes, no <style> blocks in Vue components, and no icon markup other
than FontAwesome components or classes.
scripts/check-banned-terms.mjs reads the banned-term list from
scripts/banned-terms.txt, so the list can be tuned without touching the
script. It scans the site copy (string literals, template text and
user-visible attributes) and the README headings.
Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Vite resolves publicDir to public/public (repo layout: /public is the npm package root), so the byte-identical fallback must exist there for 'vite build' to emit dist/404.html. Proven by removing it and rebuilding: dist/404.html disappears. public/404.html is the reviewable copy; this one is the build input.
Add public/404.html, a byte-identical copy of the built index.html with relative asset references (base './'), so a cold request to any non-route path on GitHub Pages boots the SPA and the router redirects. Vite copies it verbatim into dist/ via publicDir; verified dist/404.html is byte-identical to public/404.html and a plain static server returns HTTP 200 with the app shell for an unknown path.
Add the exported section list, per-route meta.title/section/sectionOrder, aliases for every pre-redesign path, and a catch-all that renders the not-found route. The catch-all uses HomeView until @/views/NotFoundView.vue exists (card 075da6c7).