design-infraGitHub
Report a problem or share feedback← Catalog

Theme Toggler

curatedtheme-awarefree

magicui/animated-theme-toggler

Theme toggle with View Transitions and animated clip-path masks (circle, polygons, star), optional viewport-centered origin.

press · state — mediumdrop-inRefinedPlayful
$npx shadcn@latest add @magicui/animated-theme-toggler

npm deps: lucide-react

Our notes

Light/dark toggle with a View Transitions clip-path reveal. Colourless (icons use currentColor). Uncontrolled it toggles <html class=dark> + localStorage itself; with next-themes pass theme/onThemeChange instead.
Source
Magic UI
Kind
component
Categories
input
Use as
drop-in — replaces your component
Applies to
buttonnavigation
Motion
on press, state · medium · css · low cost · ignores reduced motion
Licence
MIT (magicuidesign/magicui). Magic UI Pro templates are a separate paid product — not catalogued.
Live demo
magicui.design
Docs
magicui.design