CRM Contacts Theme Toggle
Button with a sun-to-moon animation to switch between light and dark mode.
Choose the primitives library your project already uses. Both look the same: your theme, not the variant, controls colors, shape, type and motion.
About this block
What it's for
- Button with a sun-to-moon animation to switch between light and dark mode.
Includes
- Light dark toggle
- Animated icons
- Accessible label
Works with
- Radix UI and Base UI primitives (pick the one your project uses)
- React 19, Next.js App Router and Tailwind CSS 4, installed with the shadcn CLI
- Your theme tokens, in light and dark mode
- 1 template or blueprint on this site use it (below)
Install
Included with Agentic UI Kit (one-time license). Install needs your license key: see pricing · connect your project.
Agentic UI CLI
agentic-ui add crm-contacts-theme-toggleInstalls through shadcn and adapts the component to your design tokens.
shadcn CLI
npx shadcn@4.17.0 add @agentic-ui/crm-contacts-theme-toggleUsed in
- Type
- Block
- Variants
- Radix UI and Base UI
- Themes
- Light and dark
- Widths
- Preview it at desktop, tablet and mobile widths above.
- npm packages
lucide-reactnext-themes- Registry dependencies
ui-button- Files
1 file
- components/templates/crm-contacts/components/theme-toggle.tsx
Related components
CRM Contacts Contact Card
Contact card in a grid with tag badges and status.
Details and live previewCRM Contacts Contact Detail
Side panel with complete information about a contact.
Details and live previewCRM Contacts Directory List
Container of switchable contact cards.
Details and live previewCRM Contacts New Contact Form
Modal with a complete form to add a contact.
Details and live preview