```
### Accessibility (Screen Reader Only)
**Before:**
```jsx
Hidden text
```
**After:**
```jsx
Hidden text
```
## Cards & Badges (No Change)
These remain the same - they're semantic primitives:
```jsx
// Cards - still use cp-card classes
Small padding
Large with enhanced shadow
// Badges - still use cp-badge classes
ActivePendingNeutral
// Skeleton - still use cp-skeleton
// Focus ring - still use cp-focus-ring
```
## Design Token Usage
You can reference design tokens directly in Tailwind classes:
```jsx
// Spacing
// Colors
// Shadows
// Radii
// Typography
```
## Benefits
1. **90% smaller CSS** - from 555 lines to 134 lines
2. **No duplication** - Tailwind handles layout, spacing, typography
3. **More flexible** - Direct access to all Tailwind utilities
4. **Design tokens first** - Colors and spacing still centralized
5. **Easier maintenance** - Less custom CSS to maintain
6. **Better DX** - Tailwind's IntelliSense and autocomplete work better
## Search & Replace Patterns
Here are some common patterns you can search for in your codebase:
1. `className="cp-container"` → `className="w-full max-w-7xl mx-auto px-[var(--cp-page-padding)]"`
2. `className="cp-stack-lg"` → `className="space-y-[var(--cp-space-4)]"`
3. `className="cp-inline-sm"` → `className="flex items-center gap-[var(--cp-space-2)]"`
4. `className="cp-grid"` → `className="grid gap-4"`
5. `className="cp-transition"` → `className="transition-all duration-200"`
6. `className="cp-hover-lift"` → `className="hover:-translate-y-0.5 hover:shadow-lg"`
7. `className="cp-text-` → `className="text-` (remove `cp-` prefix)
8. `className="cp-font-` → `className="font-` (remove `cp-` prefix)
9. `className="cp-sr-only"` → `className="sr-only"`
## Example: Complete Component Migration
### Before:
```jsx
export function DashboardPage() {
return (
);
}
```
## Notes
- The migration doesn't have to happen all at once
- Both old and new patterns will work during the transition
- Focus on new components using the new approach
- Gradually update old components as you touch them
- The design tokens remain the same, so colors and spacing are consistent