Theme Toggle
- from @washiveil
- by Alex Chih (https://alexchih.com)
Class-strategy dark mode toggle with localStorage persistence and no-flash pre-paint script helper.
Install
New to shadcn? Set up your project
If your project already has a shadcn components.json, skip initialization. Otherwise, run this once from your project root.
pnpm dlx shadcn@latest initpnpm dlx shadcn@latest add @washiveil/theme-toggleLive preview
No live preview has been built for this component yet.
