Light, dark or the device’s own, as an icon button, a Segmented control or a Menu’s radio group. Saved and on the page before it paints, every switcher stays in step, and the page crosses over to the new theme.
pnpm dlx shadcn@latest add "https://kinoui.com/r/theme-switcher.json"