About
Two animated light/dark theme switches built on the Base UI Switch with Framer Motion: a celestial sun-to-moon morph with clouds and stars, and a simple sliding sun/moon thumb.
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Switch Animated Theme to your project and fits it to your theme.
Code
How Switch Animated Theme is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
import SwitchAnimatedTheme from "@/components/ui/uiable-switch-animated-theme"
export default function Demo() {
return <SwitchAnimatedTheme />
}








