Theme SwitcherLight/dark/system theme toggleinteractivethemetoggle PreviewCodeCopy"use client"; import { useTheme } from "next-themes"; import { ThemeSwitcher } from "@/components/vritti/theme-switcher"; export function ThemeSwitcherExample() { const { setTheme } = useTheme(); return ( <div className="flex items-center justify-center p-8"> <ThemeSwitcher defaultValue="system" onChange={(theme) => setTheme(theme)} /> </div> ); } Installation CLIManualpnpmnpmyarnbunpnpm dlx shadcn@latest add "https://vritti.thesatyajit.com/r/theme-switcher"Copy Dependencies pnpmnpmyarnbunpnpm add lucide-react motionCopy