Dev Design Library

Theme toggle

A controlled light/dark switch with a morphing sun and moon and a smooth organic page reveal.

Theme toggle preview
Library
Cojeev UI
Framework
React
Type
ui
License
MIT
Dependencies
motion
Install
npx shadcn@latest add https://cojeev.com/ui/r/theme-toggle.json
Files
  • registry/cojeev/ui/theme-toggle.tsx
  • registry/cojeev/styles/theme-toggle.css
  • registry/cojeev/lib/utils.ts
  • registry/cojeev/lib/appearance-tokens.ts
  • registry/cojeev/lib/assembly-geometry.ts
  • registry/cojeev/lib/bento-layout.ts
  • registry/cojeev/lib/bloom-engine.ts
  • registry/cojeev/lib/chart-geometry.ts
Source
https://github.com/luv-jeri/cojeev-ui

Categories

More from Cojeev UI