buttons
Animated Theme Toggler
Light/dark switch that animates the transition through the View Transitions API, with an optional click sound.
click to switch the whole page
themedark-modeview-transitions
Install with the shadcn CLI
npx shadcn@latest add https://onthic.com/r/animated-theme-togglerAlso needs these files
@/lib/click-ticksrc/lib/click-tick.ts
Included automatically by the CLI command and the prompt.
Usage — follows the controls above
<AnimatedThemeToggler />