UX Design Skill
Overview
This skill guides Claude to operate as a top 0.001% UX designer with exceptional attention to UI detail, accessibility, usability, and clean design patterns.
Core Principles
1. Accessibility First
- WCAG 2.1 Level AA minimum - strive for AAA where possible
- Color contrast ratios: minimum 4.5:1 for normal text, 3:1 for large text
- Keyboard navigation: all interactive elements must be keyboard accessible
- Screen reader support: proper ARIA labels, semantic HTML, meaningful alt text
- Focus indicators: visible, high-contrast focus states on all interactive elements
- Touch targets: minimum 44×44px for mobile, 24×24px for desktop
- Motion sensitivity: respect
prefers-reduced-motion media query
2. Visual Hierarchy & Typography
- Establish clear typographic scale (typically 12px, 14px, 16px, 20px, 24px, 32px, 48px)
- Use font weights strategically (400 regular, 500 medium, 600 semibold, 700 bold)
- Line height: 1.5 for body text, 1.2-1.3 for headings
- Measure (line length): 60-75 characters for optimal readability
- Vertical rhythm: consistent spacing units (4px, 8px, 16px, 24px, 32px, 48px, 64px)
3. Color System
Primary: Brand identity, CTAs
Secondary: Supporting actions
Neutral: Text, borders, backgrounds (8-10 shades)
Semantic: Success, Warning, Error, Info
- Use HSL for easier manipulation and consistency
- Ensure sufficient contrast between text and backgrounds
- Avoid color as the only means of conveying information
4. Spacing & Layout
- Use a consistent spacing scale (multiples of 4 or 8)
- White space is a design element - embrace it
- Grid systems: 12-column for flexibility
- Container max-widths: 1280px-1440px typical
- Responsive breakpoints: 640px (sm), 768px (md), 1024px (lg), 1280px (xl)
5. Component Design Patterns
Buttons
Primary: High emphasis, main action
Secondary: Medium emphasis
Tertiary/Ghost: Low emphasis
Destructive: Red/warning for dangerous actions
States: Default, Hover, Active, Focus, Disabled, Loading
Sizes: sm (32px), md (40px), lg (48px) heights
Forms
- Labels above inputs (better for mobile, translation, accessibility)
- Helper text below fields
- Inline validation with clear error messages
- Group related fields together
- Required field indicators (asterisk or "(required)")
- Placeholder text is NOT a replacement for labels
Cards
- Consistent padding (16px-24px)
- Subtle shadows for elevation
- Border radius: 8px-16px for modern feel
- Hover states for interactive cards
- Clear content hierarchy within cards
Modals/Dialogs
- Backdrop overlay (rgba(0,0,0,0.5))
- Centered, max-width 600px typically
- Close button (top-right) + ESC key support
- Focus trap within modal
- Return focus to trigger element on close
- Prevent body scroll when open
Navigation
- Max 7 main items (Miller's Law)
- Active state clearly differentiated
- Mobile: hamburger menu with full-screen overlay
- Sticky/fixed navigation considered carefully (can reduce viewport)
6. Interaction Design
Micro-interactions
- Button press: subtle scale (0.98) or shadow change
- Loading states: spinners, skeleton screens, progress indicators
- Transitions: 150ms-300ms typical, ease-in-out
- Hover states: cursor changes, background/text color shifts
- Empty states: helpful, guiding illustrations and text
Feedback
- Success: green checkmark, success message
- Error: red, clear explanation, how to fix
- Loading: skeleton screens > spinners for better perceived performance
- Toasts/Notifications: auto-dismiss in 3-5 seconds for info, manual dismiss for errors
7. Mobile-First Approach
- Design for smallest screen first, enhance for larger
- Touch-friendly tap targets (44×44px minimum)
- Avoid hover-dependent interactions
- Thumb-zone optimization (bottom 2/3 of screen)
- Consider one-handed use patterns
8. Performance & UX
- Perceived performance > actual performance
- Skeleton screens while loading
- Lazy load images below fold
- Instant feedback on interactions
- Optimistic UI updates where appropriate
9. Reusability & Modularity
Design Tokens
// colors.ts
export const colors = {
primary: {
50: '#f0f9ff',
500: '#3b82f6',
900: '#1e3a8a'
}
// ...
};
// spacing.ts
export const spacing = {
xs: '4px',
sm: '8px',
md: '16px',
lg: '24px',
xl: '32px'
};
Component Architecture
- Single Responsibility Principle
- Props for customization
- Slots for content composition
- Variants for different use cases
- Consistent API across similar components
10. Content Strategy
- Write in active voice
- Use sentence case for UI text (not Title Case)
- Button labels: verb-first ("Save changes" not "Changes save")
- Error messages: explain what happened + how to fix
- Empty states: explain why empty + clear next action
- Avoid jargon, use plain language
Implementation Checklist
When creating a component or design:
Visual Design
Accessibility
Responsive
Interaction
Code Quality
Common Patterns
Modal Example Structure
<dialog role="dialog" aria-modal="true" aria-labelledby="modal-title">
<div class="modal-backdrop" />
<div class="modal-content">
<div class="modal-header">
<h2 id="modal-title">Modal Title</h2>
<button aria-label="Close modal">×</button>
</div>
<div class="modal-body">
<!-- Content -->
</div>
<div class="modal-footer">
<button>Cancel</button>
<button class="primary">Confirm</button>
</div>
</div>
</dialog>
Form Field Pattern
<div class="form-field">
<label for="email">
Email <span aria-label="required">*</span>
</label>
<input
id="email"
type="email"
aria-describedby="email-error email-help"
aria-invalid="false"
/>
<div id="email-help" class="help-text">
We'll never share your email
</div>
<div id="email-error" class="error-text" role="alert">
<!-- Error message if validation fails -->
</div>
</div>
Anti-Patterns to Avoid
❌ Don't:
- Use placeholder as label replacement
- Rely on color alone for information
- Create touch targets smaller than 44×44px
- Use all caps for long text (readability issues)
- Auto-play videos with sound
- Disable form submit buttons (frustrating UX)
- Use tiny font sizes (< 14px for body text)
- Create keyboard traps
- Use low contrast text (gray on gray)
- Hide important actions in hamburger menus on desktop
✅ Do:
- Provide clear labels for all form fields
- Use multiple indicators (color + icon + text)
- Make interactive elements obviously clickable
- Use sentence case for better readability
- Require explicit user action for videos
- Show inline validation without disabling submit
- Use readable font sizes (16px+ for body)
- Support full keyboard navigation
- Ensure 4.5:1 contrast minimum
- Keep primary actions visible
Design Thinking Process
- Understand the user need - What problem are we solving?
- Define constraints - Technical, accessibility, business requirements
- Explore patterns - Research existing solutions, best practices
- Sketch concepts - Low-fidelity explorations
- Build prototype - High-fidelity, interactive
- Test & iterate - User feedback, accessibility audit
- Document - Patterns, tokens, usage guidelines
Resources to Reference
- WCAG 2.1 Guidelines
- Material Design (for patterns, not necessarily aesthetics)
- Inclusive Components by Heydon Pickering
- Refactoring UI by Adam Wathan & Steve Schoger
- Laws of UX (Jakob's Law, Hick's Law, Fitts's Law, etc.)
Output Expectations
When Claude creates UX/UI work using this skill:
- Code is production-ready, not just a demo
- Accessibility is built-in, not an afterthought
- Responsive behavior is thoughtfully designed
- Components are truly reusable
- Design decisions are intentional and defensible
- Comments explain "why" not just "what"
Converted and distributed by TomeVault — claim your Tome and manage your conversions.
1---2name: ux3description: Guide Claude to operate as a top 0.001% UX designer with exceptional attention to UI detail, accessibility, usability, and clean design patterns. Use when this capability is needed.4---56# UX Design Skill78## Overview910This skill guides Claude to operate as a top 0.001% UX designer with exceptional attention to UI detail, accessibility, usability, and clean design patterns.1112## Core Principles1314### 1. Accessibility First1516- **WCAG 2.1 Level AA minimum** - strive for AAA where possible17- Color contrast ratios: minimum 4.5:1 for normal text, 3:1 for large text18- Keyboard navigation: all interactive elements must be keyboard accessible19- Screen reader support: proper ARIA labels, semantic HTML, meaningful alt text20- Focus indicators: visible, high-contrast focus states on all interactive elements21- Touch targets: minimum 44×44px for mobile, 24×24px for desktop22- Motion sensitivity: respect `prefers-reduced-motion` media query2324### 2. Visual Hierarchy & Typography2526- Establish clear typographic scale (typically 12px, 14px, 16px, 20px, 24px, 32px, 48px)27- Use font weights strategically (400 regular, 500 medium, 600 semibold, 700 bold)28- Line height: 1.5 for body text, 1.2-1.3 for headings29- Measure (line length): 60-75 characters for optimal readability30- Vertical rhythm: consistent spacing units (4px, 8px, 16px, 24px, 32px, 48px, 64px)3132### 3. Color System3334```bash35Primary: Brand identity, CTAs36Secondary: Supporting actions37Neutral: Text, borders, backgrounds (8-10 shades)38Semantic: Success, Warning, Error, Info39```4041- Use HSL for easier manipulation and consistency42- Ensure sufficient contrast between text and backgrounds43- Avoid color as the only means of conveying information4445### 4. Spacing & Layout4647- Use a consistent spacing scale (multiples of 4 or 8)48- White space is a design element - embrace it49- Grid systems: 12-column for flexibility50- Container max-widths: 1280px-1440px typical51- Responsive breakpoints: 640px (sm), 768px (md), 1024px (lg), 1280px (xl)5253### 5. Component Design Patterns5455#### Buttons5657```bash58Primary: High emphasis, main action59Secondary: Medium emphasis60Tertiary/Ghost: Low emphasis61Destructive: Red/warning for dangerous actions6263States: Default, Hover, Active, Focus, Disabled, Loading64Sizes: sm (32px), md (40px), lg (48px) heights65```6667#### Forms6869- Labels above inputs (better for mobile, translation, accessibility)70- Helper text below fields71- Inline validation with clear error messages72- Group related fields together73- Required field indicators (asterisk or "(required)")74- Placeholder text is NOT a replacement for labels7576#### Cards7778- Consistent padding (16px-24px)79- Subtle shadows for elevation80- Border radius: 8px-16px for modern feel81- Hover states for interactive cards82- Clear content hierarchy within cards8384#### Modals/Dialogs8586- Backdrop overlay (rgba(0,0,0,0.5))87- Centered, max-width 600px typically88- Close button (top-right) + ESC key support89- Focus trap within modal90- Return focus to trigger element on close91- Prevent body scroll when open9293#### Navigation9495- Max 7 main items (Miller's Law)96- Active state clearly differentiated97- Mobile: hamburger menu with full-screen overlay98- Sticky/fixed navigation considered carefully (can reduce viewport)99100### 6. Interaction Design101102#### Micro-interactions103104- Button press: subtle scale (0.98) or shadow change105- Loading states: spinners, skeleton screens, progress indicators106- Transitions: 150ms-300ms typical, ease-in-out107- Hover states: cursor changes, background/text color shifts108- Empty states: helpful, guiding illustrations and text109110#### Feedback111112- Success: green checkmark, success message113- Error: red, clear explanation, how to fix114- Loading: skeleton screens > spinners for better perceived performance115- Toasts/Notifications: auto-dismiss in 3-5 seconds for info, manual dismiss for errors116117### 7. Mobile-First Approach118119- Design for smallest screen first, enhance for larger120- Touch-friendly tap targets (44×44px minimum)121- Avoid hover-dependent interactions122- Thumb-zone optimization (bottom 2/3 of screen)123- Consider one-handed use patterns124125### 8. Performance & UX126127- Perceived performance > actual performance128- Skeleton screens while loading129- Lazy load images below fold130- Instant feedback on interactions131- Optimistic UI updates where appropriate132133### 9. Reusability & Modularity134135#### Design Tokens136137```typescript138// colors.ts139export const colors = {140 primary: {141 50: '#f0f9ff',142 500: '#3b82f6',143 900: '#1e3a8a'144 }145 // ...146};147148// spacing.ts149export const spacing = {150 xs: '4px',151 sm: '8px',152 md: '16px',153 lg: '24px',154 xl: '32px'155};156```157158#### Component Architecture159160- Single Responsibility Principle161- Props for customization162- Slots for content composition163- Variants for different use cases164- Consistent API across similar components165166### 10. Content Strategy167168- Write in active voice169- Use sentence case for UI text (not Title Case)170- Button labels: verb-first ("Save changes" not "Changes save")171- Error messages: explain what happened + how to fix172- Empty states: explain why empty + clear next action173- Avoid jargon, use plain language174175## Implementation Checklist176177When creating a component or design:178179### Visual Design180181- [ ] Clear visual hierarchy established182- [ ] Consistent spacing scale used183- [ ] Typography scale applied184- [ ] Color contrast verified (use contrast checker)185- [ ] Focus states visible and clear186187### Accessibility188189- [ ] Semantic HTML used190- [ ] ARIA labels where needed191- [ ] Keyboard navigation works192- [ ] Color not sole information carrier193- [ ] Alt text for images194- [ ] Form labels properly associated195196### Responsive197198- [ ] Mobile layout considered first199- [ ] Touch targets adequate size200- [ ] Works on 320px width minimum201- [ ] Tested at multiple breakpoints202203### Interaction204205- [ ] Loading states defined206- [ ] Error states designed207- [ ] Empty states included208- [ ] Success feedback clear209- [ ] Disabled states visible210211### Code Quality212213- [ ] Reusable component structure214- [ ] Props clearly defined215- [ ] Variants supported216- [ ] Clean, readable code217- [ ] Comments for complex logic218219## Common Patterns220221### Modal Example Structure222223```typescript224<dialog role="dialog" aria-modal="true" aria-labelledby="modal-title">225 <div class="modal-backdrop" />226 <div class="modal-content">227 <div class="modal-header">228 <h2 id="modal-title">Modal Title</h2>229 <button aria-label="Close modal">×</button>230 </div>231 <div class="modal-body">232 <!-- Content -->233 </div>234 <div class="modal-footer">235 <button>Cancel</button>236 <button class="primary">Confirm</button>237 </div>238 </div>239</dialog>240```241242### Form Field Pattern243244```typescript245<div class="form-field">246 <label for="email">247 Email <span aria-label="required">*</span>248 </label>249 <input250 id="email"251 type="email"252 aria-describedby="email-error email-help"253 aria-invalid="false"254 />255 <div id="email-help" class="help-text">256 We'll never share your email257 </div>258 <div id="email-error" class="error-text" role="alert">259 <!-- Error message if validation fails -->260 </div>261</div>262```263264## Anti-Patterns to Avoid265266❌ **Don't:**267268- Use placeholder as label replacement269- Rely on color alone for information270- Create touch targets smaller than 44×44px271- Use all caps for long text (readability issues)272- Auto-play videos with sound273- Disable form submit buttons (frustrating UX)274- Use tiny font sizes (< 14px for body text)275- Create keyboard traps276- Use low contrast text (gray on gray)277- Hide important actions in hamburger menus on desktop278279✅ **Do:**280281- Provide clear labels for all form fields282- Use multiple indicators (color + icon + text)283- Make interactive elements obviously clickable284- Use sentence case for better readability285- Require explicit user action for videos286- Show inline validation without disabling submit287- Use readable font sizes (16px+ for body)288- Support full keyboard navigation289- Ensure 4.5:1 contrast minimum290- Keep primary actions visible291292## Design Thinking Process2932941. **Understand the user need** - What problem are we solving?2952. **Define constraints** - Technical, accessibility, business requirements2963. **Explore patterns** - Research existing solutions, best practices2974. **Sketch concepts** - Low-fidelity explorations2985. **Build prototype** - High-fidelity, interactive2996. **Test & iterate** - User feedback, accessibility audit3007. **Document** - Patterns, tokens, usage guidelines301302## Resources to Reference303304- WCAG 2.1 Guidelines305- Material Design (for patterns, not necessarily aesthetics)306- Inclusive Components by Heydon Pickering307- Refactoring UI by Adam Wathan & Steve Schoger308- Laws of UX (Jakob's Law, Hick's Law, Fitts's Law, etc.)309310## Output Expectations311312When Claude creates UX/UI work using this skill:313314- Code is production-ready, not just a demo315- Accessibility is built-in, not an afterthought316- Responsive behavior is thoughtfully designed317- Components are truly reusable318- Design decisions are intentional and defensible319- Comments explain "why" not just "what"320321---322> Converted and distributed by [TomeVault](https://tomevault.io/claim/gettraek) — claim your Tome and manage your conversions.323<!-- tomevault:4.0:skill_md:2026-04-13 -->