Light/Dark Toggle
- from @uicapsule
- by Kaiyu Hsu <uicapsule@kyh.io>
Sun/moon light-dark theme toggle icon — the moon's crescent mask slides away as it shrinks into a sun, the icon rotates, and six rays pop in one by one.
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 @uicapsule/light-dark-toggleRegistry dependencies0
The CLI adds no other registry items with this one.
