uiable

Switch Animated Theme

Component 3

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 />
}

Dependencies

More by uiable

View all
  • Feature Highlights Grid

    Feature Highlights Grid

    596
  • Card Tabs

    Card Tabs

    160
  • Financial Bento Grid

    Financial Bento Grid

    156
  • Portfolio Showcase Grid

    Portfolio Showcase Grid

    105
  • Marketing Hero Section

    Marketing Hero Section

    105
  • Chart Tooltip

    Chart Tooltip

    100
  • Sidebar with Search and Profile

    Sidebar with Search and Profile

    92
  • Attachment States

    Attachment States

    70