Beam theme toggle
Press the button in the top right. The new theme sweeps across the page as a rippling front of light, starting from the button.
One file
Add beam-theme-toggle.js and a button. No framework, no build step.
Safe
No View Transitions support or reduced motion? The theme just switches instantly.
Remembers
The choice is saved in localStorage and restored before the page paints.