design-patterns
npx skills add https://github.com/claude-code-community-ireland/claude-code-resources --skill design-patterns
Agent 安装分布
Skill 文档
Design Patterns Reference
This skill provides a curated library of proven design patterns that generate high-quality, non-vibe-coded UI.
Layout Patterns
Hero Sections
Pattern 1: Split Hero Best for: SaaS, product landing pages
âââââââââââââââââââââââââââââââââââââââââââââââ
â [Content] [Media] â
â Headline Image/Video/ â
â Subhead Illustration â
â CTA Buttons â
âââââââââââââââââââââââââââââââââââââââââââââââ
Pattern 2: Centered Hero Best for: Announcements, events, minimal designs
âââââââââââââââââââââââââââââââââââââââââââââââ
â [Eyebrow Badge] â
â Headline â
â Subhead â
â [CTA] [Secondary] â
â [Social Proof] â
âââââââââââââââââââââââââââââââââââââââââââââââ
Pattern 3: Product Showcase Best for: E-commerce, physical products
âââââââââââââââââââââââââââââââââââââââââââââââ
â [Product Image - Large, High Quality] â
â âââââââââââââââââââââââââââââââââââââââââ â
â Product Name Price â
â Brief Description [Add to Cart] â
â [Feature Icons] â
âââââââââââââââââââââââââââââââââââââââââââââââ
Navigation Patterns
Top Navigation (Desktop)
âââââââââââââââââââââââââââââââââââââââââââââââ
â [Logo] Nav Items... [CTA] [Account] â
âââââââââââââââââââââââââââââââââââââââââââââââ
Sidebar Navigation (Dashboard)
âââââââââââââââââââââââââââââââââââââââââââââââ
â [Logo] â Page Content â
â âââââââââââââââ â â
â Nav Item 1 â â
â Nav Item 2 â â
â Nav Item 3 â â
â â â
â [Collapsed User] â â
âââââââââââââââââââââââââââââââââââââââââââââââ
Card Patterns
Content Card
âââââââââââââââââââ
â [Image] â
â Category â
â Title â
â Description... â
â [Meta] [Action] â
âââââââââââââââââââ
Feature Card
âââââââââââââââââââ
â [Icon] â
â Feature Name â
â Description â
â that explains â
â the benefit. â
âââââââââââââââââââ
Pricing Card
âââââââââââââââââââ
â Plan Name â
â $XX/mo â
â Description â
â âââââââââââââââ â
â â Feature 1 â
â â Feature 2 â
â â Feature 3 â
â [CTA Button] â
âââââââââââââââââââ
Component Patterns
Buttons
Primary Button
- Background: Primary color
- Text: White/contrast color
- Padding: 12px 24px (or 16px 32px for large)
- Border-radius: 6px (or 8px)
- Font-weight: 500 or 600
- Hover: Darken 10%
Secondary Button
- Background: Transparent
- Border: 1px solid primary or gray
- Text: Primary color or gray-700
- Same padding and radius as primary
Ghost Button
- Background: Transparent
- No border
- Text: Primary color
- Underline or subtle hover effect
Forms
Input Field
<div class="form-group">
<label for="input">Label</label>
<input type="text" id="input" placeholder="Placeholder">
<span class="hint">Helper text</span>
</div>
Styling:
- Border: 1px solid gray-300
- Border-radius: 6px
- Padding: 10px 14px
- Focus: Border primary color + ring
- Error: Border red + red text
Feedback
Toast Notification
ââââââââââââââââââââââââââââââ
â [Icon] Message text [X] â
ââââââââââââââââââââââââââââââ
Position: Top-right or bottom-center Duration: 3-5 seconds
Alert Banner
ââââââââââââââââââââââââââââââââââââââââââââ
â [Icon] Alert message with more details. â
â [Action Link] [X] â
ââââââââââââââââââââââââââââââââââââââââââââ
Sector-Specific Patterns
Fintech
Trust Indicators:
- Security badges (SOC2, bank-level encryption)
- Regulatory compliance logos
- Trust pilot/review scores
- “Protected by…” messaging
Data Display:
- Clean data tables with sorting
- Clear number formatting (currency, percentages)
- Status indicators (green/yellow/red)
- Trend indicators (arrows, sparklines)
Color Guidance:
- Primary: Blues, teals
- Success: Greens (money positive)
- Warning: Amber (caution)
- Avoid: Aggressive reds except for losses
Healthcare
Accessibility Priority:
- WCAG AAA contrast where possible
- Large touch targets (48px minimum)
- Clear, readable fonts (18px+ body)
- High-contrast mode option
Information Hierarchy:
- Critical info: Prominent placement
- Warnings: Clear visual distinction
- Patient data: Clear labeling
- Actions: Confirmation for destructive
Color Guidance:
- Calming: Soft blues, greens
- Clinical: Clean whites
- Avoid: Harsh, aggressive colors
E-commerce
Product Display:
- High-quality images (multiple angles)
- Clear pricing (original + sale)
- Stock status
- Quick add to cart
Trust & Conversion:
- Reviews and ratings
- Free shipping threshold
- Return policy highlight
- Secure checkout badges
Urgency (use sparingly):
- Low stock indicators
- Sale countdown
- Limited time offers
SaaS
Onboarding:
- Progressive disclosure
- Progress indicators
- Skip options
- Contextual help
Dashboard:
- Key metrics prominent
- Clear navigation
- Quick actions
- Recent activity
Pricing Page:
- Clear comparison
- Recommended plan highlight
- Feature differentiation
- FAQ section
Anti-Patterns (Avoid These)
Layout Anti-Patterns
- â Walls of text without visual breaks
- â Too many competing focal points
- â Inconsistent alignment
- â Cramped spacing
Component Anti-Patterns
- â Mystery meat navigation (icons without labels)
- â Infinite scroll without way back
- â Carousel as primary content
- â Pop-ups on page load
Visual Anti-Patterns
- â Generic purple-blue gradients
- â Floating decorative blobs
- â Stock photos of business handshakes
- â Default framework colors unchanged