// Theme toggle component
"use client"
import { Moon, Sun } from "lucide-react"
import { useTheme } from "next-themes"
export function ThemeToggle() {
const { theme, setTheme } = useTheme()
return (
)
}
```
## Common Component Patterns
### Card
```tsx
```
### Form Field
```tsx
```
### Badge
```tsx
const badgeVariants = cva(
"inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors",
{
variants: {
variant: {
default: "border-transparent bg-primary text-primary-foreground shadow",
secondary: "border-transparent bg-secondary text-secondary-foreground",
destructive: "border-transparent bg-destructive text-destructive-foreground",
outline: "text-foreground",
},
},
}
)
```
### Alert
```tsx
```
### Loading Skeleton
```tsx
```
## Layout Patterns
### Centered Layout
```tsx
```
### Sidebar Layout
```tsx
```
### Dashboard Grid
```tsx
Wide card
Regular
Regular
Full width
```
### Container with Max Width
```tsx
```
## Accessibility Patterns
### Focus Visible
```tsx