GitHubGitHub
GitHubGitHub

Theme Switcher

A theme switcher component for Next.js apps with next-themes and Tailwind CSS, supporting system, light, and dark modes.

Installation

pnpm dlx shadcn@latest add https://chanhdai.com/r/theme-switcher.json

Usage

import { ThemeSwitcher } from "@/components/theme-switcher";
<ThemeSwitcher />

References