UI Design Expert
Expert guidance for evaluating and building exceptional user interfaces, based on Shift Nudge design principles.
When to Use This Skill
Automatic activation when:
- Evaluating UI/UX design
- Building or styling interface components
- Reviewing layouts, typography, or visual hierarchy
- Improving readability or user experience
- Creating design systems or component libraries
Key capabilities:
- Typography analysis and implementation
- Visual hierarchy evaluation
- Component design guidance
- Accessibility compliance
- Design system creation
Core Design Principles
1. Visual Hierarchy First
Before applying any styling rules, define:
- User Goal: What is the user trying to accomplish?
- Intended Action: What's the primary action?
- Information Priority: What's most critical? Second? Third?
2. Systematic Consistency
- Limit complexity through constraints (Rule of Four for font sizes)
- Create reusable, documented patterns
- Ensure similar elements look similar
- Build systems that users can learn
3. Progressive Refinement
- Start simple, refine through iteration
- Test with real content (especially edge cases)
- Balance aesthetics with usability
- Prioritize readability over decoration
Typography Reference Guides
Comprehensive typography guides available in .claude/skills/design/references/:
@.claude/skills/design/references/hierarchy.md
Visual hierarchy and the Rule of Four
- Establishing type scales (max 4 distinct sizes)
- Creating emphasis through weight and visual weight
- Organizing information priority
- Font weight vs visual weight concepts
@.claude/skills/design/references/text-elements.md
Core text styling best practices
- Title weights, line heights, alignment
- Body copy readability (16px default, 45-75 char line length, 125-175% line height)
- Letter-spacing rules (only for ALL CAPS)
- Responsive text considerations
@.claude/skills/design/references/interactive.md
Buttons, links, and interactive elements
- Indicating interactivity (color, weight, decoration, background)
- Button hierarchy (primary, secondary, tertiary, destructive)
- Links vs buttons distinction
- Interactive states (hover, focus, active, disabled)
- Accessibility requirements (underlines in body text, focus states)
@.claude/skills/design/references/callouts.md
Featured content and emphasis
- Blockquotes, pull quotes, testimonials
- Scale and case variations
- Color and background treatments
- Breaking the grid for visual interest
@.claude/skills/design/references/combination.md
Text with icons, images, and other elements
- Negative space and breathing room
- Baseline alignment techniques
- Balance at all levels (component, section, page)
- Common patterns (icon+label, avatar+text, stats)
@.claude/skills/design/references/systems.md
Design system creation
- Defining text style purposes
- Naming conventions (semantic, scale-based, hybrid)
- Token systems (foundational and semantic)
- Documentation and maintenance
Design Analysis Workflow
When evaluating or building UI:
Establish Hierarchy
- Identify primary, secondary, tertiary content
- Check visual weight matches importance
- Verify 4 or fewer font sizes (per section)
Check Typography
- Titles: 2-3 weights heavier than body, 100-120% line height
- Body: 16px+ size, 125-175% line height, 45-75 char line length
- Interactive: Clear indication via color, weight, decoration, or background
- Letter-spacing: Only on ALL CAPS (never on lowercase)
Verify Interactivity
- Users can identify clickable elements
- Primary actions are most prominent
- Destructive actions use warning colors
- All states defined (hover, focus, active, disabled)
Test Readability
- Sufficient contrast (WCAG AA minimum)
- Line lengths constrained (max-width: 65ch)
- Adequate spacing and padding
- Works with longer/shorter content
Check Consistency
- Similar elements look similar
- Reusable patterns documented
- Spacing system followed
- Design tokens applied
Common UI Patterns
Form Actions
Primary: Solid background, high contrast (Submit, Save, Continue)
Secondary: Outline or subtle background (Cancel, Back)
Tertiary: Minimal styling (Help, Learn More)
Text Hierarchy
Hero Title: 48-72px, Bold (700), tight line height (110%)
Section Heading: 24-32px, Semibold (600), 120% line height
Body: 16px, Regular (400), 160% line height, max-width 65ch
Metadata: 12-14px, Medium (500), 140% line height
Interactive States
Base: Normal appearance
Hover: Slight brightness/scale change
Focus: 3px outline, 2px offset (accessibility)
Active: Pressed appearance
Disabled: Reduced opacity, no interaction
Design Review Checklist
Use when reviewing existing designs:
Visual Hierarchy:
Typography:
Interactivity:
Consistency:
Accessibility:
Integration with Tech Stack
React Router v7 + TailwindCSS
- Use
cn() utility for composing classes
- Apply responsive design via Tailwind breakpoints
- Leverage type-colors for thematic styling
- Document patterns in component libraries
shadcn/ui Components
- Review component variants for hierarchy
- Ensure consistent spacing/sizing
- Verify accessibility compliance
- Extend with custom design tokens
Common Files to Reference
app/components/ui/* - UI primitives
app/lib/utils.ts - cn() utility
app/lib/type-colors.ts - Color system
app.css - Custom animations, base styles
Output Format
When providing design feedback:
- Specific references - Use
file_path:line_number for code locations
- Before/After - Show current state vs recommended changes
- Rationale - Explain why (hierarchy, readability, accessibility)
- Code examples - Provide Tailwind classes or CSS
- Checklists - Use for systematic reviews
Reference Documentation
For detailed guidance on specific topics, read:
- Hierarchy & Scale:
.claude/skills/design/references/hierarchy.md
- Text Elements:
.claude/skills/design/references/text-elements.md
- Interactive Elements:
.claude/skills/design/references/interactive.md
- Callouts & Features:
.claude/skills/design/references/callouts.md
- Element Combination:
.claude/skills/design/references/combination.md
- Design Systems:
.claude/skills/design/references/systems.md
Remember: Design is about solving user problems, not decoration. Every choice should serve the user's goals and the interface's purpose.
1---2name: design-33description: Expert UI/UX design guidance for evaluating, building, or updating user interfaces. Applies typography principles (hierarchy, readability, interactivity), visual design patterns, and Shift Nudge best practices. Use when designing screens, reviewing layouts, styling components, or improving UX. Use this skill if prompted with "design" or "ux".4---5
6# UI Design Expert
7
8Expert guidance for evaluating and building exceptional user interfaces, based on Shift Nudge design principles.
9
10## When to Use This Skill
11
12**Automatic activation when:**
13- Evaluating UI/UX design
14- Building or styling interface components
15- Reviewing layouts, typography, or visual hierarchy
16- Improving readability or user experience
17- Creating design systems or component libraries
18
19**Key capabilities:**
20- Typography analysis and implementation
21- Visual hierarchy evaluation
22- Component design guidance
23- Accessibility compliance
24- Design system creation
25
26## Core Design Principles
27
28### 1. Visual Hierarchy First
29Before applying any styling rules, define:
30- **User Goal**: What is the user trying to accomplish?
31- **Intended Action**: What's the primary action?
32- **Information Priority**: What's most critical? Second? Third?
33
34### 2. Systematic Consistency
35- Limit complexity through constraints (Rule of Four for font sizes)
36- Create reusable, documented patterns
37- Ensure similar elements look similar
38- Build systems that users can learn
39
40### 3. Progressive Refinement
41- Start simple, refine through iteration
42- Test with real content (especially edge cases)
43- Balance aesthetics with usability
44- Prioritize readability over decoration
45
46## Typography Reference Guides
47
48Comprehensive typography guides available in `.claude/skills/design/references/`:
49
50### @.claude/skills/design/references/hierarchy.md
51Visual hierarchy and the Rule of Four
52- Establishing type scales (max 4 distinct sizes)
53- Creating emphasis through weight and visual weight
54- Organizing information priority
55- Font weight vs visual weight concepts
56
57### @.claude/skills/design/references/text-elements.md
58Core text styling best practices
59- Title weights, line heights, alignment
60- Body copy readability (16px default, 45-75 char line length, 125-175% line height)
61- Letter-spacing rules (only for ALL CAPS)
62- Responsive text considerations
63
64### @.claude/skills/design/references/interactive.md
65Buttons, links, and interactive elements
66- Indicating interactivity (color, weight, decoration, background)
67- Button hierarchy (primary, secondary, tertiary, destructive)
68- Links vs buttons distinction
69- Interactive states (hover, focus, active, disabled)
70- Accessibility requirements (underlines in body text, focus states)
71
72### @.claude/skills/design/references/callouts.md
73Featured content and emphasis
74- Blockquotes, pull quotes, testimonials
75- Scale and case variations
76- Color and background treatments
77- Breaking the grid for visual interest
78
79### @.claude/skills/design/references/combination.md
80Text with icons, images, and other elements
81- Negative space and breathing room
82- Baseline alignment techniques
83- Balance at all levels (component, section, page)
84- Common patterns (icon+label, avatar+text, stats)
85
86### @.claude/skills/design/references/systems.md
87Design system creation
88- Defining text style purposes
89- Naming conventions (semantic, scale-based, hybrid)
90- Token systems (foundational and semantic)
91- Documentation and maintenance
92
93## Design Analysis Workflow
94
95When evaluating or building UI:
96
971. **Establish Hierarchy**
98 - Identify primary, secondary, tertiary content
99 - Check visual weight matches importance
100 - Verify 4 or fewer font sizes (per section)
101
1022. **Check Typography**
103 - Titles: 2-3 weights heavier than body, 100-120% line height
104 - Body: 16px+ size, 125-175% line height, 45-75 char line length
105 - Interactive: Clear indication via color, weight, decoration, or background
106 - Letter-spacing: Only on ALL CAPS (never on lowercase)
107
1083. **Verify Interactivity**
109 - Users can identify clickable elements
110 - Primary actions are most prominent
111 - Destructive actions use warning colors
112 - All states defined (hover, focus, active, disabled)
113
1144. **Test Readability**
115 - Sufficient contrast (WCAG AA minimum)
116 - Line lengths constrained (max-width: 65ch)
117 - Adequate spacing and padding
118 - Works with longer/shorter content
119
1205. **Check Consistency**
121 - Similar elements look similar
122 - Reusable patterns documented
123 - Spacing system followed
124 - Design tokens applied
125
126## Common UI Patterns
127
128### Form Actions
129```
130Primary: Solid background, high contrast (Submit, Save, Continue)
131Secondary: Outline or subtle background (Cancel, Back)
132Tertiary: Minimal styling (Help, Learn More)
133```
134
135### Text Hierarchy
136```
137Hero Title: 48-72px, Bold (700), tight line height (110%)
138Section Heading: 24-32px, Semibold (600), 120% line height
139Body: 16px, Regular (400), 160% line height, max-width 65ch
140Metadata: 12-14px, Medium (500), 140% line height
141```
142
143### Interactive States
144```
145Base: Normal appearance
146Hover: Slight brightness/scale change
147Focus: 3px outline, 2px offset (accessibility)
148Active: Pressed appearance
149Disabled: Reduced opacity, no interaction
150```
151
152## Design Review Checklist
153
154Use when reviewing existing designs:
155
156**Visual Hierarchy:**
157- [ ] Most important info immediately identifiable
158- [ ] Clear primary/secondary/tertiary differentiation
159- [ ] Visual weight matches importance
160- [ ] Negative space used effectively
161
162**Typography:**
163- [ ] 4 or fewer distinct font sizes per section
164- [ ] Titles 2-3 weights heavier than body
165- [ ] Body text 16px+, readable weight
166- [ ] Line heights appropriate (titles 100-120%, body 125-175%)
167- [ ] Line lengths 45-75 characters
168- [ ] Letter-spacing only on ALL CAPS
169
170**Interactivity:**
171- [ ] Clickable elements clearly identified
172- [ ] Primary action is most prominent
173- [ ] Links in body text underlined
174- [ ] All states defined (hover, focus, active, disabled)
175- [ ] Focus visible for keyboard users
176- [ ] Destructive actions use warning colors
177
178**Consistency:**
179- [ ] Similar elements styled similarly
180- [ ] Spacing system consistent
181- [ ] Color usage systematic
182- [ ] Patterns reusable and documented
183
184**Accessibility:**
185- [ ] Contrast meets WCAG AA (4.5:1 text, 3:1 large text)
186- [ ] Focus states visible
187- [ ] Interactive elements 44x44px minimum
188- [ ] Links distinguishable without color alone
189
190## Integration with Tech Stack
191
192### React Router v7 + TailwindCSS
193- Use `cn()` utility for composing classes
194- Apply responsive design via Tailwind breakpoints
195- Leverage type-colors for thematic styling
196- Document patterns in component libraries
197
198### shadcn/ui Components
199- Review component variants for hierarchy
200- Ensure consistent spacing/sizing
201- Verify accessibility compliance
202- Extend with custom design tokens
203
204### Common Files to Reference
205- `app/components/ui/*` - UI primitives
206- `app/lib/utils.ts` - `cn()` utility
207- `app/lib/type-colors.ts` - Color system
208- `app.css` - Custom animations, base styles
209
210## Output Format
211
212When providing design feedback:
213
2141. **Specific references** - Use `file_path:line_number` for code locations
2152. **Before/After** - Show current state vs recommended changes
2163. **Rationale** - Explain why (hierarchy, readability, accessibility)
2174. **Code examples** - Provide Tailwind classes or CSS
2185. **Checklists** - Use for systematic reviews
219
220## Reference Documentation
221
222For detailed guidance on specific topics, read:
223- **Hierarchy & Scale**: `.claude/skills/design/references/hierarchy.md`
224- **Text Elements**: `.claude/skills/design/references/text-elements.md`
225- **Interactive Elements**: `.claude/skills/design/references/interactive.md`
226- **Callouts & Features**: `.claude/skills/design/references/callouts.md`
227- **Element Combination**: `.claude/skills/design/references/combination.md`
228- **Design Systems**: `.claude/skills/design/references/systems.md`
229
230---
231
232**Remember**: Design is about solving user problems, not decoration. Every choice should serve the user's goals and the interface's purpose.