Theme Toggle
A single icon button that flips between light and dark, persists the choice in localStorage, and respects the OS preference on first load. A blocking inline script applies the saved theme before paint, so the page never flashes.
The Toggle
Click to flip the entire library
<ThemeToggle />