--- name: design-improvement description: | Systematic design optimization for young-personal-site following established design principles. Ensures consistent color palette, responsive layout, and professional appearance. activation-keywords: [設計, design, UI, UX, 很醜, 不好看, 排版, layout, 顏色, color, 間距, spacing] priority: high allowed-tools: [Read, Edit, Write, Bash, Grep, Glob] --- # Design Improvement Skill ## Purpose Streamline design optimization with systematic improvements following project design principles. **Prevents**: Inconsistent design, broken responsive layouts, brand violations **Ensures**: Color palette consistency, mobile-first responsive design, professional appearance --- ## Design Principles ### Color Palette ```css Primary: slate-blue (#475569, #64748b) Accent: coral-orange (#fb923c, #f97316) Background: warm-cream (#fef3c7, #fef9c3) Gradients: Smooth transitions for visual interest ``` ### Typography ``` Hierarchy: h1 > h2 > h3 > p (clear distinction) Body text: 16px+ for readability Line-height: Consistent spacing Hero sections: Center-aligned ``` ### Layout ``` Approach: Mobile-first responsive Spacing: Tailwind utilities (p-4, gap-6, etc.) Animations: Framer Motion (smooth, not jarring) ``` --- ## Workflow ### 1. Analyze Current Design ```markdown Issues Checklist: - [ ] Color consistency problems? - [ ] Layout/alignment issues? - [ ] Typography hierarchy unclear? - [ ] Spacing inconsistent? - [ ] Responsive breakpoints broken? - [ ] Animations missing/excessive? ``` ### 2. Propose Improvements (CARIO) ```yaml 📋 Context: - Page: [Home/Projects/About/Speaking] - Current state: [description] - Issue: [what looks bad] ❓ Problems: 1. [Color inconsistency] 2. [Poor spacing] 3. [Weak hierarchy] 🎯 Options: A. Minor tweaks (15 min, low impact) B. Moderate redesign (30-45 min, medium impact) C. Major overhaul (1-2 hours, high impact) 💡 Recommendation: [Option B] - Changes: [color X→Y, spacing p-4→p-6, add gradient] - Reasoning: [balances improvement vs time] ⚡ Impact: - Files: [list] - Testing: [responsive + visual] ``` ### 3. Get User Confirmation ``` Identified [N] design improvements for [Page] page: 1. [Change 1] 2. [Change 2] 3. [Change 3] Proceed with these improvements? ``` ### 4. Implement Changes **Checklist**: - [ ] Update Tailwind classes - [ ] Ensure responsive (sm:, md:, lg: breakpoints) - [ ] Add/update Framer Motion animations - [ ] Maintain color palette - [ ] Follow typography hierarchy **Example**: ```tsx // Before

Title

// After

Title

``` ### 5. Test Responsive Design ```bash npm run dev # Test at: Mobile (375px), Tablet (768px), Desktop (1280px) ``` **Visual checklist**: - [ ] Mobile (< 640px): Readable, no overflow - [ ] Tablet (640-1024px): Proper spacing - [ ] Desktop (> 1024px): Optimal layout - [ ] Animations: Smooth (60fps) ### 6. Commit and Deploy ```bash npm run build # Verify git add . git commit -m "style: improve [page] design with better spacing and colors" git push # Auto-deploys to Vercel ``` --- ## Common Improvements ### Hero Section Enhancement ```tsx // Before: Basic section

Welcome

// After: Enhanced with gradient + animation

Welcome

``` ### Card Grid Optimization ```tsx // Before: Fixed 3-column grid
{projects.map(p => )}
// After: Responsive grid with hover animation
{projects.map(p => ( ))}
``` ### Typography Hierarchy ```tsx // Before: Flat hierarchy

Title

Body text

// After: Clear hierarchy

Title

Body text

``` --- ## Quality Checklist **Before committing**: ```markdown Visual: - [ ] Colors match palette (slate-blue, coral-orange, warm-cream) - [ ] Spacing consistent (4px increments: p-4, p-6, p-8) - [ ] Typography hierarchy clear - [ ] Contrast WCAG AA (4.5:1 for text) Responsive: - [ ] Mobile (< 640px): Works - [ ] Tablet (640-1024px): Optimized - [ ] Desktop (> 1024px): Polished - [ ] No horizontal scroll - [ ] Touch targets ≥ 44px (mobile) Performance: - [ ] Animations smooth (60fps) - [ ] No layout shift (CLS < 0.1) - [ ] Next.js Image component used Consistency: - [ ] Matches existing pages' style - [ ] Follows Tailwind conventions - [ ] Framer Motion patterns consistent - [ ] Bilingual support maintained ``` --- ## Anti-Patterns ### ❌ Breaking Responsive ```tsx // Bad: Fixed width
Content
// Good: Responsive width
Content
``` ### ❌ Inconsistent Colors ```tsx // Bad: Random colors
Content
// Good: Follow palette
Content
``` ### ❌ Poor Typography ```tsx // Bad: Unreadable

Important content

// Good: Readable

Important content

``` --- ## Quick Reference ### Spacing Scale ``` p-4 = 16px p-8 = 32px p-6 = 24px p-12 = 48px ``` ### Typography Scale ``` text-base = 16px text-2xl = 24px text-4xl = 36px text-lg = 18px text-3xl = 30px text-5xl = 48px ``` ### Responsive Breakpoints ``` sm: ≥ 640px (mobile landscape) md: ≥ 768px (tablet) lg: ≥ 1024px (desktop) xl: ≥ 1280px (large desktop) ``` --- ## Integration - **content-update**: Content + design updates together - **deploy-check**: Pre-deployment design verification --- **Version**: v1.1 | **Updated**: 2025-12-31 **Project**: young-personal-site **Philosophy**: "Design is not just what it looks like. Design is how it works." - Steve Jobs