leistungsbilanz-ts/src/app
Julian Appel 64ccd1f829 Add dark mode toggle in the sidebar
Adds a persistent dark/light theme toggle (localStorage +
data-bs-theme on <html>) so it applies globally, including the
circuit editor route which has no visible sidebar. An inline
beforeInteractive script sets the theme before hydration to avoid a
flash of the wrong theme.

Bootstrap components pick up data-bs-theme automatically; the custom
circuit-grid CSS previously used ~150 hardcoded hex colors, all
converted to semantic tokens in globals.css with light/dark values.

Verified with a headless-browser pass across the project list, project
detail page, circuit editor, project-device drawer and a settings
modal in both themes; no console errors.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-08-06 21:56:21 +02:00
..
projects Fix code-review findings across domain, persistence, server and frontend 2026-08-06 21:31:16 +02:00
globals.css Add dark mode toggle in the sidebar 2026-08-06 21:56:21 +02:00
layout.tsx Add dark mode toggle in the sidebar 2026-08-06 21:56:21 +02:00
page.tsx Rewrite frontend, added rooms, voltage selection per project, startet with todos 2026-05-01 17:07:56 +02:00