# Component Migration Examples ## Common Component Transformations ### 1. Card Component **BEFORE (Old Design):** ```tsx

Title

Content

``` **AFTER (New Design):** ```tsx

Title

Content

``` --- ### 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
{/* search icon */}
``` --- ### 8. Progress Bar **BEFORE:** ```tsx
``` **AFTER:** ```tsx
``` --- ### 9. Stat Card with Trend **BEFORE:** ```tsx
Active Users
1,234
``` **AFTER:** ```tsx
Active Users
1,234
{/* up arrow */} 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 {/* sparkle/star */} ``` ### Search Icons ```tsx {/* magnifying glass */} ``` ### Active/Playing State ```tsx {/* play button */} ``` ### Network Category ```tsx {/* wifi/network */} ``` ### Printer Category ```tsx {/* printer */} ``` ### Email Category ```tsx {/* envelope */} ``` ### Success Indicators ```tsx {/* check/arrow up */} ``` ### Error Indicators ```tsx {/* x/arrow down */} ``` ### Time/Clock (NO COLOR - keep gray) ```tsx {/* clock */} ``` --- ## 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`