A theme switcher component for Next.js apps with next-themes and Tailwind CSS, supporting system, light, and dark modes.
Hello
<p>I am a Developer</p>
Installation
1pnpm install next-themes lucide-react motion clsx tailwind-merge
Usage
1import { ThemeSwitcher } from "@/components/theme-switcher";
References
- https://ui.shadcn.com/docs/registry
- https://ui.shadcn.com/docs/dark-mode/next
- https://github.com/pacocoursey/next-themes
- https://motion.dev/docs/react-motion-component
© 2025 Chánh Đang. All rights reserved.
Inspired by

&&