The sun spins out, a crescent spins in, stars wake inside the track — and the new theme wipes in as a circle from the switch itself. Your onToggle commits the real theme.
Watch the wipe start from the switch.
Din-Raat Toggle · plain JS, zero deps · attach via DinRaat.attach(btn, opts) · role=switch + reduced-motion