mirror of
https://github.com/lukaszraczylo/beat-delivery-methodology.git
synced 2026-11-25 11:06:00 +00:00
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.