# Component Migration Examples
## Common Component Transformations
### 1. Card Component
**BEFORE (Old Design):**
```tsx
```
**AFTER (New Design):**
```tsx
```
---
### 2. Active/Highlighted Card
**BEFORE:**
```tsx
{/* content */}
```
**AFTER (Bright Glow):**
```tsx
{/* content */}
```
---
### 3. Icon in Card
**BEFORE:**
```tsx
```
**AFTER (with subtle color):**
```tsx
```
---
### 4. Badge/Status
**BEFORE:**
```tsx
Admin
```
**AFTER:**
```tsx
Admin
```
---
### 5. Primary Button
**BEFORE:**
```tsx
```
**AFTER:**
```tsx
```
---
### 6. Secondary Button
**BEFORE:**
```tsx
```
**AFTER:**
```tsx
```
---
### 7. Input/Search
**BEFORE:**
```tsx
```
**AFTER:**
```tsx
```
---
### 8. Progress Bar
**BEFORE:**
```tsx
```
**AFTER:**
```tsx
```
---
### 9. Stat Card with Trend
**BEFORE:**
```tsx
```
**AFTER:**
```tsx
Active Users
1,234
12% vs last week
```
---
### 10. Section Header
**BEFORE:**
```tsx
Recent Trees
Your recently accessed decision trees
```
**AFTER:**
```tsx
Recent Trees
```
---
## Icon Color Guidelines
### AI/Automation Icons
```tsx
```
### Search Icons
```tsx
```
### Active/Playing State
```tsx
```
### Network Category
```tsx
```
### Printer Category
```tsx
```
### Email Category
```tsx
```
### Success Indicators
```tsx
```
### Error Indicators
```tsx
```
### Time/Clock (NO COLOR - keep gray)
```tsx
```
---
## Common Mistakes to Avoid
❌ **DON'T:**
- Use colored backgrounds on cards
- Use gradient text
- Color ALL icons
- Use slate-900, slate-800 (use white/opacity instead)
- Use purple gradients anywhere
✅ **DO:**
- Use white/black with opacity for all backgrounds
- Keep text white (with varying opacity)
- Only color functional icons
- Use backdrop-blur on cards
- Use white for primary buttons
---
## Quick Reference: Opacity Levels
**Text:**
- Primary: `text-white`
- Secondary: `text-white/70`
- Tertiary: `text-white/40`
- Placeholder: `text-white/30`
**Backgrounds:**
- Card: `bg-white/[0.04]` to `bg-white/[0.01]`
- Card hover: `bg-white/[0.06]` to `bg-white/[0.02]`
- Active card: `bg-white/[0.08]` to `bg-white/[0.04]`
- Button secondary: `bg-white/10`
- Badge: `bg-white/10`
**Borders:**
- Subtle: `border-white/8`
- Normal: `border-white/10`
- Prominent: `border-white/20`
- Active: `border-white/30`