# CRM Contacts Theme Toggle

Button with a sun-to-moon animation to switch between light and dark mode.

- id: `crm-contacts-theme-toggle`
- Page: https://agentic-ui-kit.com/components/crm-contacts-theme-toggle
- Live preview: https://agentic-ui-kit.com/live/piece/crm-contacts-theme-toggle?piece=crm-contacts-theme-toggle

## Install

```bash
agentic-ui add crm-contacts-theme-toggle
npx shadcn@4.17.0 add @agentic-ui/crm-contacts-theme-toggle
```

## Metadata

- **Level:** block
- **Category:** block
- **Template:** Rolodeck CRM
- **Installable in:** Radix UI (registry variant new-york), Base UI (registry variant base-vega)
- **Capabilities:** light-dark-toggle, animated-icons, accessible-label
- **Intents:** configure
- **Suits domains:** crm, saas, devtools, analytics, settings
- **Interaction:** click-toggle
- **Screen role:** management
- **Density:** compact
- **Dark mode:** yes
- **Use it for:** Button with a sun-to-moon animation to switch between light and dark mode
- **Avoid when:** The application only has a fixed theme
- **Preserve when adapting:** icon-transition-classes, accessible-sr-text
- **Replace when adapting:** icon-variants
- **Adaptation effort:** low
- **Coupling:** low
- **Quality breakdown:** visual 9/10, responsive 9/10, accessibility 8/10, code 9/10
- **Uses primitives:** button
- **npm dependencies:** next-themes, lucide-react
- **Used in:** Rolodeck CRM (template)
- **npm dependencies (registry):** lucide-react@0.577.0, next-themes@0.4.6
- **Registry dependencies:** ui-button
