Web UI Design Guide
Overview
Ensure every web UI component built looks modern and professional by applying systematic design principles. This skill provides comprehensive guidelines for color, spacing, typography, and component-specific patterns to achieve clean, minimal, and consistent user interfaces.
When to Use This Skill
Activate this skill when:
- Building any web UI component (buttons, forms, cards, navigation, modals, etc.)
- Creating layouts or page designs
- Implementing design systems or component libraries
- Working with UI frameworks (React, Vue, Next.js, shadcn/ui, etc.)
- Receiving requests like:
- "Create a login form"
- "Design a dashboard card"
- "Build a navigation header"
- "Make this UI look modern"
- "Style this component"
Do NOT activate for:
- Backend API development
- Database queries
- Server configuration
- Non-visual code tasks
Core Design Philosophy
Follow these fundamental principles for all UI work:
- Clean and Minimal - Prioritize whitespace, reduce visual clutter
- Neutral Color Palette - Gray/off-white base (80-90%) + ONE accent color (5-10%)
- 8px Grid System - All spacing uses multiples of 8: 8, 16, 24, 32, 48, 64px
- Typography Hierarchy - Minimum 16px body text, maximum 2 font families
- Subtle Effects - Understated shadows, selective rounded corners
- Mobile-First - Design for small screens first, expand to larger
How to Use This Skill
Step 1: Load Relevant Reference
Before implementing any UI component, load the appropriate reference file:
Read references/design-principles.md - Core philosophy and principles
Read references/color-palette.md - Color system and accent usage
Read references/spacing-system.md - 8px grid spacing scale
Read references/typography.md - Font sizes, weights, line heights
Read references/component-patterns.md - Component-specific best practices
Read references/anti-patterns.md - Common mistakes to avoid
Recommendation: Start with design-principles.md for overall philosophy, then load component-specific files as needed.
Step 2: Apply Component-Specific Patterns
For each component type, reference the corresponding section in component-patterns.md:
- Button:
component-patterns.md → Button section
- Card:
component-patterns.md → Card section
- Form:
component-patterns.md → Form section
- Navigation:
component-patterns.md → Navigation section
- Modal:
component-patterns.md → Modal section
- Table:
component-patterns.md → Table section
- Badge/Tag:
component-patterns.md → Badge section
- Dropdown:
component-patterns.md → Dropdown section
Step 3: Validate Against Anti-Patterns
Before finalizing implementation, check anti-patterns.md to ensure the design avoids:
- ❌ Rainbow gradients or generic purple/blue gradients
- ❌ Text smaller than 16px for body content
- ❌ Inconsistent spacing (non-8px multiples)
- ❌ More than 2 font families
- ❌ Border + shadow on the same element
- ❌ Unclear interactive states (hover, focus, active)
Step 4: Ensure System Consistency
Apply the 8px grid system for all spacing:
- Use only: 4px (rare), 8px, 12px, 16px, 24px, 32px, 48px, 64px
- Reference
spacing-system.md for component-specific spacing guidelines
Use neutral color palette as foundation:
- Base: #FFFFFF, #FAFAFA, #F5F5F5
- Grays: #E0E0E0, #CCCCCC, #999999, #666666, #333333, #1A1A1A
- ONE accent color for actions and emphasis
- Reference
color-palette.md for detailed color usage
Maintain typography hierarchy:
- Body text: minimum 16px, line-height 1.6
- Maximum 2 font families
- Clear heading scales (32px H1, 24px H2, 20px H3)
- Reference
typography.md for complete type scale
Resources
references/
Documentation loaded into context as needed to inform design decisions:
- design-principles.md - Core philosophy: clean minimal design, neutral palette, 8px grid, typography hierarchy, subtle effects, mobile-first
- color-palette.md - Neutral base colors, single accent color usage, semantic colors, examples and anti-patterns
- spacing-system.md - 8px grid scale, component spacing guidelines, responsive spacing
- typography.md - Font selection, type scale, weights, line lengths, component typography
- component-patterns.md - Design patterns for buttons, cards, forms, navigation, modals, tables, badges, dropdowns
- anti-patterns.md - Common design mistakes to avoid with alternatives
Quick Decision Tree
UI Component Request
│
├─ What component? → Load component-patterns.md section
│
├─ What spacing? → Use 8px grid (spacing-system.md)
│
├─ What colors? → Neutral base + accent (color-palette.md)
│
├─ What typography? → 16px+ body, clear hierarchy (typography.md)
│
└─ Validation → Check anti-patterns.md
Examples
Good Request Flow:
User: "Create a login form"
→ Read references/component-patterns.md (Form section)
→ Read references/spacing-system.md (Form spacing)
→ Apply: 16px input text, 8px label gap, 24px button spacing
→ Validate against anti-patterns.md
→ Implement with neutral colors + accent for primary button
Component Implementation Checklist:
- ✅ Spacing uses 8px multiples
- ✅ Text minimum 16px for body
- ✅ Neutral colors (80-90%) + accent color (5-10%)
- ✅ Clear hover/focus/active states
- ✅ No rainbow gradients or generic purple/blue
- ✅ Maximum 2 font families
- ✅ Mobile-first responsive design
1---2name: web-ui-design-guide3description: Apply modern, professional web UI design principles when building any web UI component. Only execute this when the current project is a web project and involves UI-related work. Use this skill for UI tasks involving buttons, forms, cards, layouts, navigation, or any visual web component. Ensures clean minimal design, neutral color palettes with single accent color, 8px grid spacing, clear typography hierarchy, and subtle visual effects. Prevents common anti-patterns like rainbow gradients, tiny text, and inconsistent spacing.4---5
6# Web UI Design Guide
7
8## Overview
9
10Ensure every web UI component built looks modern and professional by applying systematic design principles. This skill provides comprehensive guidelines for color, spacing, typography, and component-specific patterns to achieve clean, minimal, and consistent user interfaces.
11
12## When to Use This Skill
13
14Activate this skill when:
15- Building any web UI component (buttons, forms, cards, navigation, modals, etc.)
16- Creating layouts or page designs
17- Implementing design systems or component libraries
18- Working with UI frameworks (React, Vue, Next.js, shadcn/ui, etc.)
19- Receiving requests like:
20 - "Create a login form"
21 - "Design a dashboard card"
22 - "Build a navigation header"
23 - "Make this UI look modern"
24 - "Style this component"
25
26**Do NOT activate** for:
27- Backend API development
28- Database queries
29- Server configuration
30- Non-visual code tasks
31
32## Core Design Philosophy
33
34Follow these fundamental principles for all UI work:
35
361. **Clean and Minimal** - Prioritize whitespace, reduce visual clutter
372. **Neutral Color Palette** - Gray/off-white base (80-90%) + ONE accent color (5-10%)
383. **8px Grid System** - All spacing uses multiples of 8: 8, 16, 24, 32, 48, 64px
394. **Typography Hierarchy** - Minimum 16px body text, maximum 2 font families
405. **Subtle Effects** - Understated shadows, selective rounded corners
416. **Mobile-First** - Design for small screens first, expand to larger
42
43## How to Use This Skill
44
45### Step 1: Load Relevant Reference
46
47Before implementing any UI component, load the appropriate reference file:
48
49```
50Read references/design-principles.md - Core philosophy and principles
51Read references/color-palette.md - Color system and accent usage
52Read references/spacing-system.md - 8px grid spacing scale
53Read references/typography.md - Font sizes, weights, line heights
54Read references/component-patterns.md - Component-specific best practices
55Read references/anti-patterns.md - Common mistakes to avoid
56```
57
58**Recommendation**: Start with `design-principles.md` for overall philosophy, then load component-specific files as needed.
59
60### Step 2: Apply Component-Specific Patterns
61
62For each component type, reference the corresponding section in `component-patterns.md`:
63
64- **Button**: `component-patterns.md` → Button section
65- **Card**: `component-patterns.md` → Card section
66- **Form**: `component-patterns.md` → Form section
67- **Navigation**: `component-patterns.md` → Navigation section
68- **Modal**: `component-patterns.md` → Modal section
69- **Table**: `component-patterns.md` → Table section
70- **Badge/Tag**: `component-patterns.md` → Badge section
71- **Dropdown**: `component-patterns.md` → Dropdown section
72
73### Step 3: Validate Against Anti-Patterns
74
75Before finalizing implementation, check `anti-patterns.md` to ensure the design avoids:
76
77- ❌ Rainbow gradients or generic purple/blue gradients
78- ❌ Text smaller than 16px for body content
79- ❌ Inconsistent spacing (non-8px multiples)
80- ❌ More than 2 font families
81- ❌ Border + shadow on the same element
82- ❌ Unclear interactive states (hover, focus, active)
83
84### Step 4: Ensure System Consistency
85
86Apply the **8px grid system** for all spacing:
87- Use only: 4px (rare), 8px, 12px, 16px, 24px, 32px, 48px, 64px
88- Reference `spacing-system.md` for component-specific spacing guidelines
89
90Use **neutral color palette** as foundation:
91- Base: #FFFFFF, #FAFAFA, #F5F5F5
92- Grays: #E0E0E0, #CCCCCC, #999999, #666666, #333333, #1A1A1A
93- ONE accent color for actions and emphasis
94- Reference `color-palette.md` for detailed color usage
95
96Maintain **typography hierarchy**:
97- Body text: minimum 16px, line-height 1.6
98- Maximum 2 font families
99- Clear heading scales (32px H1, 24px H2, 20px H3)
100- Reference `typography.md` for complete type scale
101
102## Resources
103
104### references/
105
106Documentation loaded into context as needed to inform design decisions:
107
108- **design-principles.md** - Core philosophy: clean minimal design, neutral palette, 8px grid, typography hierarchy, subtle effects, mobile-first
109- **color-palette.md** - Neutral base colors, single accent color usage, semantic colors, examples and anti-patterns
110- **spacing-system.md** - 8px grid scale, component spacing guidelines, responsive spacing
111- **typography.md** - Font selection, type scale, weights, line lengths, component typography
112- **component-patterns.md** - Design patterns for buttons, cards, forms, navigation, modals, tables, badges, dropdowns
113- **anti-patterns.md** - Common design mistakes to avoid with alternatives
114
115## Quick Decision Tree
116
117```
118UI Component Request
119│
120├─ What component? → Load component-patterns.md section
121│
122├─ What spacing? → Use 8px grid (spacing-system.md)
123│
124├─ What colors? → Neutral base + accent (color-palette.md)
125│
126├─ What typography? → 16px+ body, clear hierarchy (typography.md)
127│
128└─ Validation → Check anti-patterns.md
129```
130
131## Examples
132
133**Good Request Flow**:
134```
135User: "Create a login form"
136→ Read references/component-patterns.md (Form section)
137→ Read references/spacing-system.md (Form spacing)
138→ Apply: 16px input text, 8px label gap, 24px button spacing
139→ Validate against anti-patterns.md
140→ Implement with neutral colors + accent for primary button
141```
142
143**Component Implementation Checklist**:
144- ✅ Spacing uses 8px multiples
145- ✅ Text minimum 16px for body
146- ✅ Neutral colors (80-90%) + accent color (5-10%)
147- ✅ Clear hover/focus/active states
148- ✅ No rainbow gradients or generic purple/blue
149- ✅ Maximum 2 font families
150- ✅ Mobile-first responsive design