UI/UX Design Advisor
"Design is not just what it looks like and feels like. Design is how it works."
— Steve Jobs
Workflow: How to Use This Skill
When this skill is triggered, follow these steps. Do NOT just dump reference content — actively analyze the user's specific design challenge and provide targeted, actionable guidance.
Step 1: UNDERSTAND — Identify the Design Challenge
Before selecting references, understand:
- What is being built? (component, page, full app, design system)
- What's the context? (marketing site, SaaS dashboard, mobile app, e-commerce)
- What aspect needs help? (visual design, accessibility, UX flow, performance)
- What tech stack? (vanilla CSS, Tailwind, React, Vue, etc.)
- Who are the users? (general public, power users, accessibility needs)
If the user's message already contains enough context, proceed directly to Step 2.
Step 2: SEARCH — Find Relevant References
First, run semantic search with the user's design challenge to find the most relevant topics:
UX="${CLAUDE_PLUGIN_ROOT}/skills/aio-uiux/scripts"
npx tsx "$UX/search-uiux.ts" "<user's design challenge>" --top 5 --json
Read the full markdown file for each top result before proceeding. Then cross-reference with the routing table:
| Design Challenge |
Start With |
| Building a new component |
Component Patterns → Design Systems → Accessibility |
| Making something look better |
Visual Hierarchy → Whitespace → Color → Typography |
| Choosing colors |
Color Theory → Color Harmonies → Semantic Colors → Accessibility Contrast |
| Typography decisions |
Type Scale → Font Pairing → Readability → Fluid Typography |
| Layout / spacing issues |
Spacing Systems → CSS Grid → Flexbox → Content Width |
| Form design |
Form Design → Form Accessibility → Error Messages → Validation |
| Navigation design |
Navigation Patterns → Navigation Components → Mobile UX |
| Accessibility audit/fix |
WCAG Guide → ARIA Patterns → Keyboard Nav → Testing Checklist |
| Animation / transitions |
Animation Principles → Motion System → CSS Transitions → Micro-animations |
| Performance concerns |
Perceived Performance → Core Web Vitals → Image Optimization → Font Performance |
| Dark mode |
Theming & Dark Mode → Semantic Colors → Color Accessibility |
| Responsive / mobile |
Mobile-First → Fluid Design → Responsive Patterns → Touch Targets |
| Design system setup |
Design Tokens → Atomic Design → Component API → Tailwind Patterns |
| UX flow / user behavior |
UX Psychology → UX Laws → Decision Making → Cognitive Load |
| Writing UI text |
Microcopy → Error Messages → Voice & Tone → Conversion Copy |
| Modern CSS techniques |
Custom Properties → Container Queries → :has() → Cascade Layers |
| Loading / empty states |
State Management UX → Perceived Performance → Loading Patterns → Skeleton Screens |
| Buttons / CTAs |
Buttons → Visual Hierarchy → Von Restorff Effect → Conversion Copy |
State which references you selected and why they fit.
Step 3: APPLY — Provide Targeted Guidance
For each relevant reference area, apply it to the user's specific situation:
- State the principle or pattern (one sentence)
- Show how it applies to their specific case
- Provide concrete code (CSS/HTML) when applicable
- Flag any accessibility requirements
Step 4: SYNTHESIZE — Combine Into Actionable Advice
Merge insights into:
- Specific implementation recommendation with code
- Priority order (what to fix/implement first)
- Key tradeoffs to consider
- Accessibility checklist for the specific case
Step 5: REVIEW — Check Against Quality Criteria
Verify the recommendation against:
Scripts
Before calling any script, resolve the scripts directory (version may vary):
UX="${CLAUDE_PLUGIN_ROOT}/skills/aio-uiux/scripts"
List Topics
$UX/list-topics.sh # All topics by category
$UX/list-topics.sh --category accessibility # Filter by category
$UX/list-topics.sh --search "color" # Search by keyword
$UX/list-topics.sh --count # Quick count
Semantic Search
Find relevant topics by meaning, not just keywords. Uses pre-computed embeddings (snowflake-arctic-embed-xs, 384-dim, runs locally).
npx tsx "$UX/search-uiux.ts" "how to design accessible forms"
npx tsx "$UX/search-uiux.ts" "dark mode color palette" --top 3
npx tsx "$UX/search-uiux.ts" "button component best practices" --json
Options:
--top N — Number of results (default: 5)
--json — Output as JSON for programmatic use
Important
Always run semantic search first before selecting references. The search uses embeddings to find the most relevant topics for the user's specific design challenge — this is more reliable than guessing from the catalog. After searching, read the full markdown file for each selected topic.
Reference Catalog
01. Visual Design Foundations
Core principles of visual communication and composition
| Topic |
Core Idea |
When to Use |
| Gestalt Principles |
How humans perceive visual groups |
Organizing UI elements, creating clear relationships |
| Visual Hierarchy |
Guide the eye through importance |
Every layout — primary, secondary, tertiary emphasis |
| Golden Ratio & Composition |
Mathematical harmony in layout |
Hero sections, image cropping, layout proportions |
| Whitespace & Negative Space |
Space as a design element |
Feeling cramped, improving readability, luxury feel |
| Visual Weight & Balance |
How elements attract attention |
Balancing asymmetric layouts, focal points |
| Contrast & Emphasis |
Difference creates focus |
CTAs, important information, visual interest |
| Alignment & Grids |
Order through alignment |
Any layout — grids, optical alignment, consistency |
02. Typography
Type systems, font pairing, and text rendering
03. Color Science
Color theory, spaces, palettes, and accessibility
| Topic |
Core Idea |
When to Use |
| Color Theory Fundamentals |
Color meaning and emotion |
Choosing brand/UI colors |
| Color Harmonies |
Complementary, analogous, triadic |
Building color palettes |
| Color Spaces & Modern CSS |
oklch, Display P3, color-mix() |
Modern CSS color implementation |
| Systematic Palette Generation |
Building 50-950 shade scales |
Design system color setup |
| Semantic Color Systems |
Primitive → semantic → component |
Color token architecture |
| Color Accessibility & Contrast |
WCAG, APCA, color blindness |
Every color decision |
| Data Visualization Colors |
Sequential, diverging, qualitative |
Charts, graphs, dashboards |
04. Layout & Spacing
Grid systems, spacing tokens, and responsive layout
| Topic |
Core Idea |
When to Use |
| Spacing Systems |
4pt/8pt grid, spacing tokens |
Every layout decision |
| CSS Grid Mastery |
Two-dimensional layout |
Page layouts, dashboards, galleries |
| Flexbox Patterns |
One-dimensional layout |
Component-level layout, alignment |
| Responsive Layout Strategies |
Adapting to screen sizes |
Every responsive design |
| Z-Index & Layering |
Stacking context management |
Modals, dropdowns, tooltips, toasts |
| Box Model & Sizing |
Box-sizing, margins, logical props |
Layout debugging, i18n |
| Content Width & Containers |
Max-width, container patterns |
Readable content, full-bleed layouts |
05. Accessibility (a11y)
WCAG 2.2, ARIA, keyboard navigation, screen readers
06. UX Psychology
Cognitive psychology and behavioral design for interfaces
| Topic |
Core Idea |
When to Use |
| Cognitive Load |
Reduce mental effort |
Complex interfaces, forms, onboarding |
| Attention & Perception |
How users scan and notice |
CTA placement, important info display |
| Decision Making |
Choice architecture |
Options, pricing, configuration |
| Persuasion & Influence |
Ethical persuasion patterns |
Landing pages, conversions, trust |
| Emotional Design |
Visceral, behavioral, reflective |
Brand experience, delight, trust |
| Habit Formation |
Hook model, engagement loops |
Product engagement, onboarding |
| Memory & Learning |
Recognition, recall, mental models |
Navigation, onboarding, help |
07. UX Laws
30+ evidence-based laws for interface design
| Topic |
Core Idea |
When to Use |
| Fitts's Law |
Target size × distance = time |
Button sizing, touch targets, CTA placement |
| Hick's Law |
More choices = slower decisions |
Menu design, option reduction |
| Jakob's Law |
Users prefer familiar patterns |
Convention decisions, innovation risk |
| Miller's Law |
7±2 chunks in working memory |
Navigation, grouping, information architecture |
| Tesler's Law |
Complexity can't be removed |
Smart defaults, progressive disclosure |
| Doherty Threshold |
400ms for flow state |
Loading optimization, perceived performance |
| Aesthetic-Usability |
Beautiful = perceived usable |
Visual polish investment |
| Von Restorff Effect |
Distinctive items remembered |
CTAs, badges, highlights |
| Peak-End Rule |
Peaks and endings matter most |
Onboarding, checkout, error recovery |
| Serial Position Effect |
First/last items remembered |
Navigation order, list design |
| Goal-Gradient Effect |
Acceleration near completion |
Progress bars, multi-step flows |
| More UX Laws |
Postel's, Weber-Fechner, Prägnanz, + more |
Comprehensive reference |
08. Interaction Design
Forms, navigation, states, and user flows
| Topic |
Core Idea |
When to Use |
| Form Design |
Input types, validation, flow |
Building any form |
| Navigation Patterns |
Navbar, sidebar, tabs, breadcrumbs |
Information architecture |
| State Management UX |
Loading, empty, error, success |
Every interactive component |
| Micro-interactions |
Trigger, rule, feedback, loop |
Adding polish, user feedback |
| Feedback Patterns |
Toasts, alerts, progress, undo |
System-to-user communication |
| Search, Filter & Sort |
Search input, facets, results |
Data-heavy interfaces |
| Drag, Drop & Gestures |
Drag handles, touch gestures |
Sortable lists, kanban, mobile |
09. Motion & Animation
Animation principles, CSS transitions, scroll-driven effects
10. Component Patterns
Design patterns for UI components
| Topic |
Core Idea |
When to Use |
| Buttons |
Hierarchy, states, sizing |
Every interactive UI |
| Forms & Inputs |
Input types, states, validation |
Building forms |
| Cards & Containers |
Card anatomy, grid layouts |
Content display |
| Modals, Dialogs & Sheets |
When to use which overlay |
Confirmations, forms, settings |
| Tables & Data Display |
Sorting, filtering, responsive |
Data-heavy interfaces |
| Navigation Components |
Navbar, sidebar, tabs, breadcrumbs |
App chrome, wayfinding |
| Feedback Components |
Toasts, alerts, badges, progress |
System feedback |
| Complex Components |
Command palette, data grid, tree |
Advanced interfaces |
11. Design Systems
Tokens, atomic design, theming, and popular systems
| Topic |
Core Idea |
When to Use |
| Design Token Architecture |
Primitive → semantic → component |
Setting up any design system |
| Atomic Design |
Atoms, molecules, organisms |
Component organization |
| Component API Design |
Props, variants, composition |
Building reusable components |
| Popular Systems Analysis |
Material, Apple, Fluent, shadcn |
Learning from the best |
| Theming & Dark Mode |
CSS custom properties, themes |
Dark mode, multi-theme |
| Design System Checklist |
Everything a system needs |
Starting or auditing a system |
| Tailwind Design Patterns |
cva, tailwind-merge, config |
Tailwind-based projects |
12. UX Writing
Microcopy, content design, and inclusive language
13. Performance UX
Perceived performance, Core Web Vitals, optimization
14. Modern CSS
Custom properties, container queries, :has(), cascade layers
15. Responsive Design
Mobile-first, fluid design, touch targets
Quick Reference Card
The 10 Most Impactful Design Decisions
- Visual Hierarchy — Guide the eye: size, color, weight, space
- Spacing System — Use 8pt grid, consistent tokens, generous whitespace
- Color Contrast — WCAG AA minimum: 4.5:1 text, 3:1 UI components
- Typography — Max 2 fonts, clear type scale, 45-75 char line length
- Component States — Every element needs: hover, focus, active, disabled, loading, error
- Touch Targets — Minimum 44×44px, use full clickable area
- Loading States — Skeleton screens > spinners > nothing
- Error Handling — What happened + why + how to fix
- Keyboard Navigation — Tab order, focus visible, escape to dismiss
- Motion — 200-300ms transitions, ease-out for enters, respect prefers-reduced-motion
Design Review Checklist
Before shipping any UI, verify:
Sources & Further Reading
"Good design is obvious. Great design is transparent."
— Joe Sparano
1---2name: aio-uiux3description: Web UI design and review advisor — applies UX psychology, interaction patterns, WCAG accessibility, and modern CSS to design new interfaces or critique existing ones. Use proactively when reviewing any frontend UI, scaffolding new components, or deciding layout/color/typography trade-offs.4---56# UI/UX Design Advisor78> "Design is not just what it looks like and feels like. Design is how it works."9> — Steve Jobs1011## Workflow: How to Use This Skill1213When this skill is triggered, follow these steps. Do NOT just dump reference content — actively analyze the user's specific design challenge and provide targeted, actionable guidance.1415### Step 1: UNDERSTAND — Identify the Design Challenge1617Before selecting references, understand:18- What is being built? (component, page, full app, design system)19- What's the context? (marketing site, SaaS dashboard, mobile app, e-commerce)20- What aspect needs help? (visual design, accessibility, UX flow, performance)21- What tech stack? (vanilla CSS, Tailwind, React, Vue, etc.)22- Who are the users? (general public, power users, accessibility needs)2324If the user's message already contains enough context, proceed directly to Step 2.2526### Step 2: SEARCH — Find Relevant References2728**First, run semantic search** with the user's design challenge to find the most relevant topics:2930```bash31UX="${CLAUDE_PLUGIN_ROOT}/skills/aio-uiux/scripts"32npx tsx "$UX/search-uiux.ts" "<user's design challenge>" --top 5 --json33```3435Read the full markdown file for each top result before proceeding. Then cross-reference with the routing table:3637| Design Challenge | Start With |38|---|---|39| **Building a new component** | Component Patterns → Design Systems → Accessibility |40| **Making something look better** | Visual Hierarchy → Whitespace → Color → Typography |41| **Choosing colors** | Color Theory → Color Harmonies → Semantic Colors → Accessibility Contrast |42| **Typography decisions** | Type Scale → Font Pairing → Readability → Fluid Typography |43| **Layout / spacing issues** | Spacing Systems → CSS Grid → Flexbox → Content Width |44| **Form design** | Form Design → Form Accessibility → Error Messages → Validation |45| **Navigation design** | Navigation Patterns → Navigation Components → Mobile UX |46| **Accessibility audit/fix** | WCAG Guide → ARIA Patterns → Keyboard Nav → Testing Checklist |47| **Animation / transitions** | Animation Principles → Motion System → CSS Transitions → Micro-animations |48| **Performance concerns** | Perceived Performance → Core Web Vitals → Image Optimization → Font Performance |49| **Dark mode** | Theming & Dark Mode → Semantic Colors → Color Accessibility |50| **Responsive / mobile** | Mobile-First → Fluid Design → Responsive Patterns → Touch Targets |51| **Design system setup** | Design Tokens → Atomic Design → Component API → Tailwind Patterns |52| **UX flow / user behavior** | UX Psychology → UX Laws → Decision Making → Cognitive Load |53| **Writing UI text** | Microcopy → Error Messages → Voice & Tone → Conversion Copy |54| **Modern CSS techniques** | Custom Properties → Container Queries → :has() → Cascade Layers |55| **Loading / empty states** | State Management UX → Perceived Performance → Loading Patterns → Skeleton Screens |56| **Buttons / CTAs** | Buttons → Visual Hierarchy → Von Restorff Effect → Conversion Copy |5758State which references you selected and why they fit.5960### Step 3: APPLY — Provide Targeted Guidance6162For each relevant reference area, apply it to the user's specific situation:63- State the principle or pattern (one sentence)64- Show how it applies to their specific case65- Provide concrete code (CSS/HTML) when applicable66- Flag any accessibility requirements6768### Step 4: SYNTHESIZE — Combine Into Actionable Advice6970Merge insights into:71- Specific implementation recommendation with code72- Priority order (what to fix/implement first)73- Key tradeoffs to consider74- Accessibility checklist for the specific case7576### Step 5: REVIEW — Check Against Quality Criteria7778Verify the recommendation against:79- [ ] Visual hierarchy is clear (squint test)80- [ ] Spacing is consistent (uses system, not arbitrary values)81- [ ] Color contrast meets WCAG AA (4.5:1 text, 3:1 UI)82- [ ] Interactive elements have all states (hover, focus, active, disabled)83- [ ] Touch targets are ≥44×44px on mobile84- [ ] Animations respect prefers-reduced-motion85- [ ] Text is readable (45-75 char line length, 1.4-1.6 line-height)86- [ ] Component is keyboard navigable8788---8990## Scripts9192Before calling any script, resolve the scripts directory (version may vary):93```bash94UX="${CLAUDE_PLUGIN_ROOT}/skills/aio-uiux/scripts"95```9697### List Topics98```bash99$UX/list-topics.sh # All topics by category100$UX/list-topics.sh --category accessibility # Filter by category101$UX/list-topics.sh --search "color" # Search by keyword102$UX/list-topics.sh --count # Quick count103```104105### Semantic Search106107Find relevant topics by meaning, not just keywords. Uses pre-computed embeddings (snowflake-arctic-embed-xs, 384-dim, runs locally).108109```bash110npx tsx "$UX/search-uiux.ts" "how to design accessible forms"111npx tsx "$UX/search-uiux.ts" "dark mode color palette" --top 3112npx tsx "$UX/search-uiux.ts" "button component best practices" --json113```114115Options:116- `--top N` — Number of results (default: 5)117- `--json` — Output as JSON for programmatic use118119---120121## Important122123**Always run semantic search first before selecting references.** The search uses embeddings to find the most relevant topics for the user's specific design challenge — this is more reliable than guessing from the catalog. After searching, read the full markdown file for each selected topic.124125---126127## Reference Catalog128129### 01. Visual Design Foundations130_Core principles of visual communication and composition_131132| Topic | Core Idea | When to Use |133|---|---|---|134| [Gestalt Principles](./references/01-visual-design/01-gestalt-principles.md) | How humans perceive visual groups | Organizing UI elements, creating clear relationships |135| [Visual Hierarchy](./references/01-visual-design/02-visual-hierarchy.md) | Guide the eye through importance | Every layout — primary, secondary, tertiary emphasis |136| [Golden Ratio & Composition](./references/01-visual-design/03-golden-ratio-composition.md) | Mathematical harmony in layout | Hero sections, image cropping, layout proportions |137| [Whitespace & Negative Space](./references/01-visual-design/04-whitespace-negative-space.md) | Space as a design element | Feeling cramped, improving readability, luxury feel |138| [Visual Weight & Balance](./references/01-visual-design/05-visual-weight-balance.md) | How elements attract attention | Balancing asymmetric layouts, focal points |139| [Contrast & Emphasis](./references/01-visual-design/06-contrast-emphasis.md) | Difference creates focus | CTAs, important information, visual interest |140| [Alignment & Grids](./references/01-visual-design/07-alignment-grids.md) | Order through alignment | Any layout — grids, optical alignment, consistency |141142---143144### 02. Typography145_Type systems, font pairing, and text rendering_146147| Topic | Core Idea | When to Use |148|---|---|---|149| [Type Scale Systems](./references/02-typography/01-type-scale-systems.md) | Mathematical size progression | Setting up heading/body sizes |150| [Font Pairing](./references/02-typography/02-font-pairing.md) | Combining typefaces harmoniously | Choosing fonts for a project |151| [Vertical Rhythm](./references/02-typography/03-vertical-rhythm.md) | Consistent spacing rhythm | Page-level text layout |152| [Fluid Responsive Typography](./references/02-typography/04-fluid-responsive-typography.md) | Type that scales with viewport | Responsive text without breakpoints |153| [Readability & Legibility](./references/02-typography/05-readability-legibility.md) | Optimal reading experience | Body text, long-form content |154| [OpenType & Variable Fonts](./references/02-typography/06-opentype-variable-fonts.md) | Advanced font features | Performance, design polish |155| [Web Font Loading](./references/02-typography/07-web-font-loading.md) | Fast font delivery | Performance optimization, CLS prevention |156157---158159### 03. Color Science160_Color theory, spaces, palettes, and accessibility_161162| Topic | Core Idea | When to Use |163|---|---|---|164| [Color Theory Fundamentals](./references/03-color-science/01-color-theory-fundamentals.md) | Color meaning and emotion | Choosing brand/UI colors |165| [Color Harmonies](./references/03-color-science/02-color-harmonies.md) | Complementary, analogous, triadic | Building color palettes |166| [Color Spaces & Modern CSS](./references/03-color-science/03-color-spaces-modern-css.md) | oklch, Display P3, color-mix() | Modern CSS color implementation |167| [Systematic Palette Generation](./references/03-color-science/04-systematic-palette-generation.md) | Building 50-950 shade scales | Design system color setup |168| [Semantic Color Systems](./references/03-color-science/05-semantic-color-systems.md) | Primitive → semantic → component | Color token architecture |169| [Color Accessibility & Contrast](./references/03-color-science/06-color-accessibility-contrast.md) | WCAG, APCA, color blindness | Every color decision |170| [Data Visualization Colors](./references/03-color-science/07-data-visualization-colors.md) | Sequential, diverging, qualitative | Charts, graphs, dashboards |171172---173174### 04. Layout & Spacing175_Grid systems, spacing tokens, and responsive layout_176177| Topic | Core Idea | When to Use |178|---|---|---|179| [Spacing Systems](./references/04-layout-spacing/01-spacing-systems.md) | 4pt/8pt grid, spacing tokens | Every layout decision |180| [CSS Grid Mastery](./references/04-layout-spacing/02-css-grid-mastery.md) | Two-dimensional layout | Page layouts, dashboards, galleries |181| [Flexbox Patterns](./references/04-layout-spacing/03-flexbox-patterns.md) | One-dimensional layout | Component-level layout, alignment |182| [Responsive Layout Strategies](./references/04-layout-spacing/04-responsive-layout-strategies.md) | Adapting to screen sizes | Every responsive design |183| [Z-Index & Layering](./references/04-layout-spacing/05-z-index-layering.md) | Stacking context management | Modals, dropdowns, tooltips, toasts |184| [Box Model & Sizing](./references/04-layout-spacing/06-box-model-sizing.md) | Box-sizing, margins, logical props | Layout debugging, i18n |185| [Content Width & Containers](./references/04-layout-spacing/07-content-width-containers.md) | Max-width, container patterns | Readable content, full-bleed layouts |186187---188189### 05. Accessibility (a11y)190_WCAG 2.2, ARIA, keyboard navigation, screen readers_191192| Topic | Core Idea | When to Use |193|---|---|---|194| [WCAG 2.2 Essential Guide](./references/05-accessibility/01-wcag-22-essential-guide.md) | Web accessibility guidelines | Every project — baseline requirements |195| [ARIA Patterns Reference](./references/05-accessibility/02-aria-patterns-reference.md) | Widget roles and states | Custom interactive components |196| [Keyboard Navigation](./references/05-accessibility/03-keyboard-navigation.md) | Tab order, focus management | Every interactive element |197| [Screen Reader Optimization](./references/05-accessibility/04-screen-reader-optimization.md) | Semantic HTML, live regions | Dynamic content, SPAs |198| [Color & Motion Accessibility](./references/05-accessibility/05-color-motion-accessibility.md) | Contrast, reduced-motion | Color decisions, animations |199| [Form Accessibility](./references/05-accessibility/06-form-accessibility.md) | Labels, errors, validation | Every form |200| [Testing Checklist](./references/05-accessibility/07-testing-checklist.md) | Automated + manual testing | Pre-launch, code review |201202---203204### 06. UX Psychology205_Cognitive psychology and behavioral design for interfaces_206207| Topic | Core Idea | When to Use |208|---|---|---|209| [Cognitive Load](./references/06-ux-psychology/01-cognitive-load.md) | Reduce mental effort | Complex interfaces, forms, onboarding |210| [Attention & Perception](./references/06-ux-psychology/02-attention-perception.md) | How users scan and notice | CTA placement, important info display |211| [Decision Making](./references/06-ux-psychology/03-decision-making.md) | Choice architecture | Options, pricing, configuration |212| [Persuasion & Influence](./references/06-ux-psychology/04-persuasion-influence.md) | Ethical persuasion patterns | Landing pages, conversions, trust |213| [Emotional Design](./references/06-ux-psychology/05-emotional-design.md) | Visceral, behavioral, reflective | Brand experience, delight, trust |214| [Habit Formation](./references/06-ux-psychology/06-habit-formation.md) | Hook model, engagement loops | Product engagement, onboarding |215| [Memory & Learning](./references/06-ux-psychology/07-memory-learning.md) | Recognition, recall, mental models | Navigation, onboarding, help |216217---218219### 07. UX Laws220_30+ evidence-based laws for interface design_221222| Topic | Core Idea | When to Use |223|---|---|---|224| [Fitts's Law](./references/07-ux-laws/01-fitts-law.md) | Target size × distance = time | Button sizing, touch targets, CTA placement |225| [Hick's Law](./references/07-ux-laws/02-hicks-law.md) | More choices = slower decisions | Menu design, option reduction |226| [Jakob's Law](./references/07-ux-laws/03-jakobs-law.md) | Users prefer familiar patterns | Convention decisions, innovation risk |227| [Miller's Law](./references/07-ux-laws/04-millers-law.md) | 7±2 chunks in working memory | Navigation, grouping, information architecture |228| [Tesler's Law](./references/07-ux-laws/05-teslers-law.md) | Complexity can't be removed | Smart defaults, progressive disclosure |229| [Doherty Threshold](./references/07-ux-laws/06-doherty-threshold.md) | 400ms for flow state | Loading optimization, perceived performance |230| [Aesthetic-Usability](./references/07-ux-laws/07-aesthetic-usability.md) | Beautiful = perceived usable | Visual polish investment |231| [Von Restorff Effect](./references/07-ux-laws/08-von-restorff-effect.md) | Distinctive items remembered | CTAs, badges, highlights |232| [Peak-End Rule](./references/07-ux-laws/09-peak-end-rule.md) | Peaks and endings matter most | Onboarding, checkout, error recovery |233| [Serial Position Effect](./references/07-ux-laws/10-serial-position-effect.md) | First/last items remembered | Navigation order, list design |234| [Goal-Gradient Effect](./references/07-ux-laws/11-goal-gradient-effect.md) | Acceleration near completion | Progress bars, multi-step flows |235| [More UX Laws](./references/07-ux-laws/12-more-ux-laws.md) | Postel's, Weber-Fechner, Prägnanz, + more | Comprehensive reference |236237---238239### 08. Interaction Design240_Forms, navigation, states, and user flows_241242| Topic | Core Idea | When to Use |243|---|---|---|244| [Form Design](./references/08-interaction-design/01-form-design.md) | Input types, validation, flow | Building any form |245| [Navigation Patterns](./references/08-interaction-design/02-navigation-patterns.md) | Navbar, sidebar, tabs, breadcrumbs | Information architecture |246| [State Management UX](./references/08-interaction-design/03-state-management-ux.md) | Loading, empty, error, success | Every interactive component |247| [Micro-interactions](./references/08-interaction-design/04-micro-interactions.md) | Trigger, rule, feedback, loop | Adding polish, user feedback |248| [Feedback Patterns](./references/08-interaction-design/05-feedback-patterns.md) | Toasts, alerts, progress, undo | System-to-user communication |249| [Search, Filter & Sort](./references/08-interaction-design/06-search-filter-sort.md) | Search input, facets, results | Data-heavy interfaces |250| [Drag, Drop & Gestures](./references/08-interaction-design/07-drag-drop-gestures.md) | Drag handles, touch gestures | Sortable lists, kanban, mobile |251252---253254### 09. Motion & Animation255_Animation principles, CSS transitions, scroll-driven effects_256257| Topic | Core Idea | When to Use |258|---|---|---|259| [Animation Principles](./references/09-motion-animation/01-animation-principles.md) | Disney's 12 principles for UI | Understanding "why" behind motion |260| [Motion Design System](./references/09-motion-animation/02-motion-design-system.md) | Duration/easing token system | Setting up consistent motion |261| [CSS Transitions](./references/09-motion-animation/03-css-transitions.md) | Property transitions, 60fps | Hover, focus, state changes |262| [CSS Keyframe Animations](./references/09-motion-animation/04-css-keyframe-animations.md) | @keyframes, multi-step | Enter/exit, loading, attention |263| [Scroll-Driven Animations](./references/09-motion-animation/05-scroll-driven-animations.md) | Scroll progress, reveal on scroll | Landing pages, storytelling |264| [Page & View Transitions](./references/09-motion-animation/06-page-view-transitions.md) | View Transitions API | Route changes, shared elements |265| [Micro-Animation Library](./references/09-motion-animation/07-micro-animation-library.md) | 25+ copy-paste CSS animations | Quick implementation reference |266267---268269### 10. Component Patterns270_Design patterns for UI components_271272| Topic | Core Idea | When to Use |273|---|---|---|274| [Buttons](./references/10-component-patterns/01-buttons.md) | Hierarchy, states, sizing | Every interactive UI |275| [Forms & Inputs](./references/10-component-patterns/02-forms-inputs.md) | Input types, states, validation | Building forms |276| [Cards & Containers](./references/10-component-patterns/03-cards-containers.md) | Card anatomy, grid layouts | Content display |277| [Modals, Dialogs & Sheets](./references/10-component-patterns/04-modals-dialogs-sheets.md) | When to use which overlay | Confirmations, forms, settings |278| [Tables & Data Display](./references/10-component-patterns/05-tables-data-display.md) | Sorting, filtering, responsive | Data-heavy interfaces |279| [Navigation Components](./references/10-component-patterns/06-navigation-components.md) | Navbar, sidebar, tabs, breadcrumbs | App chrome, wayfinding |280| [Feedback Components](./references/10-component-patterns/07-feedback-components.md) | Toasts, alerts, badges, progress | System feedback |281| [Complex Components](./references/10-component-patterns/08-complex-components.md) | Command palette, data grid, tree | Advanced interfaces |282283---284285### 11. Design Systems286_Tokens, atomic design, theming, and popular systems_287288| Topic | Core Idea | When to Use |289|---|---|---|290| [Design Token Architecture](./references/11-design-systems/01-design-token-architecture.md) | Primitive → semantic → component | Setting up any design system |291| [Atomic Design](./references/11-design-systems/02-atomic-design.md) | Atoms, molecules, organisms | Component organization |292| [Component API Design](./references/11-design-systems/03-component-api-design.md) | Props, variants, composition | Building reusable components |293| [Popular Systems Analysis](./references/11-design-systems/04-popular-systems-analysis.md) | Material, Apple, Fluent, shadcn | Learning from the best |294| [Theming & Dark Mode](./references/11-design-systems/05-theming-dark-mode.md) | CSS custom properties, themes | Dark mode, multi-theme |295| [Design System Checklist](./references/11-design-systems/06-design-system-checklist.md) | Everything a system needs | Starting or auditing a system |296| [Tailwind Design Patterns](./references/11-design-systems/07-tailwind-design-patterns.md) | cva, tailwind-merge, config | Tailwind-based projects |297298---299300### 12. UX Writing301_Microcopy, content design, and inclusive language_302303| Topic | Core Idea | When to Use |304|---|---|---|305| [Microcopy Patterns](./references/12-ux-writing/01-microcopy-patterns.md) | Button labels, errors, empty states | Writing any UI text |306| [Voice & Tone Guidelines](./references/12-ux-writing/02-voice-tone-guidelines.md) | Consistent brand voice | Establishing content guidelines |307| [Error Messages](./references/12-ux-writing/03-error-messages.md) | What + why + how to fix | Error handling copy |308| [Onboarding Copy](./references/12-ux-writing/04-onboarding-copy.md) | Welcome, tours, progressive | First-run experience |309| [Conversion Copy](./references/12-ux-writing/05-conversion-copy.md) | CTAs, headlines, social proof | Landing pages, signup flows |310| [Inclusive Writing](./references/12-ux-writing/06-inclusive-writing.md) | Gender-neutral, plain language | All user-facing text |311312---313314### 13. Performance UX315_Perceived performance, Core Web Vitals, optimization_316317| Topic | Core Idea | When to Use |318|---|---|---|319| [Perceived Performance](./references/13-performance-ux/01-perceived-performance.md) | Psychology of waiting | Making things feel fast |320| [Core Web Vitals](./references/13-performance-ux/02-core-web-vitals.md) | LCP, INP, CLS | Performance auditing |321| [Image Optimization](./references/13-performance-ux/03-image-optimization.md) | Formats, responsive, lazy | Every image implementation |322| [Font Performance](./references/13-performance-ux/04-font-performance.md) | font-display, preload, subset | Web font optimization |323| [Critical Rendering Path](./references/13-performance-ux/05-critical-rendering-path.md) | Above-the-fold, CSS containment | Page load optimization |324| [Loading Patterns Library](./references/13-performance-ux/06-loading-patterns-library.md) | Skeleton, spinner, progress CSS | Copy-paste loading patterns |325326---327328### 14. Modern CSS329_Custom properties, container queries, :has(), cascade layers_330331| Topic | Core Idea | When to Use |332|---|---|---|333| [Custom Properties Architecture](./references/14-modern-css/01-custom-properties-architecture.md) | CSS token system design | Any CSS architecture |334| [Container Queries](./references/14-modern-css/02-container-queries.md) | Component-level responsiveness | Self-contained components |335| [:has() Selector Patterns](./references/14-modern-css/03-has-selector-patterns.md) | Parent selector, state-based | Advanced styling without JS |336| [Cascade Layers](./references/14-modern-css/04-cascade-layers.md) | @layer for specificity control | Managing CSS specificity |337| [Modern Layout Techniques](./references/14-modern-css/05-modern-layout-techniques.md) | Subgrid, nesting, logical props | Cutting-edge layout |338| [Color Functions](./references/14-modern-css/06-color-functions.md) | oklch, color-mix, light-dark() | Modern color implementation |339| [Scroll Snap & Popover](./references/14-modern-css/07-scroll-snap-popover.md) | Scroll snap, popover, dialog | Native browser patterns |340341---342343### 15. Responsive Design344_Mobile-first, fluid design, touch targets_345346| Topic | Core Idea | When to Use |347|---|---|---|348| [Mobile-First Strategy](./references/15-responsive-design/01-mobile-first-strategy.md) | Progressive enhancement | Starting any responsive project |349| [Breakpoint System](./references/15-responsive-design/02-breakpoint-system.md) | Content-based breakpoints | Defining responsive breakpoints |350| [Fluid Design](./references/15-responsive-design/03-fluid-design.md) | clamp(), no-breakpoint layouts | Truly fluid interfaces |351| [Responsive Patterns](./references/15-responsive-design/04-responsive-patterns.md) | Stack, sidebar, grid, table | Common responsive transformations |352| [Touch Targets & Mobile UX](./references/15-responsive-design/05-touch-targets-mobile-ux.md) | 44px minimum, thumb zones | Mobile-specific design |353| [Responsive Images](./references/15-responsive-design/06-responsive-images.md) | srcset, picture, art direction | Image delivery optimization |354| [Print Stylesheets](./references/15-responsive-design/07-print-stylesheets.md) | @media print, page breaks | Print-friendly pages |355356---357358## Quick Reference Card359360### The 10 Most Impactful Design Decisions3613621. **Visual Hierarchy** — Guide the eye: size, color, weight, space3632. **Spacing System** — Use 8pt grid, consistent tokens, generous whitespace3643. **Color Contrast** — WCAG AA minimum: 4.5:1 text, 3:1 UI components3654. **Typography** — Max 2 fonts, clear type scale, 45-75 char line length3665. **Component States** — Every element needs: hover, focus, active, disabled, loading, error3676. **Touch Targets** — Minimum 44×44px, use full clickable area3687. **Loading States** — Skeleton screens > spinners > nothing3698. **Error Handling** — What happened + why + how to fix3709. **Keyboard Navigation** — Tab order, focus visible, escape to dismiss37110. **Motion** — 200-300ms transitions, ease-out for enters, respect prefers-reduced-motion372373### Design Review Checklist374375Before shipping any UI, verify:376377- [ ] Visual hierarchy is clear (squint test passes)378- [ ] Spacing uses system tokens, not arbitrary values379- [ ] Color contrast meets WCAG AA (test with browser devtools)380- [ ] All interactive elements have hover, focus, active, and disabled states381- [ ] Touch targets are at least 44×44px382- [ ] Animations respect `prefers-reduced-motion`383- [ ] Text line length is 45-75 characters384- [ ] Forms have visible labels, clear errors, proper autocomplete385- [ ] Empty states, loading states, and error states are designed386- [ ] Page is navigable with keyboard only387- [ ] Screen reader announces dynamic changes (aria-live)388- [ ] Images have meaningful alt text (or alt="" for decorative)389390---391392## Sources & Further Reading393394- [Refactoring UI](https://www.refactoringui.com/) — Steve Schoger & Adam Wathan395- [Laws of UX](https://lawsofux.com/) — Jon Yablonski396- [Inclusive Components](https://inclusive-components.design/) — Heydon Pickering397- [Every Layout](https://every-layout.dev/) — Andy Bell & Heydon Pickering398- [WCAG 2.2](https://www.w3.org/TR/WCAG22/) — W3C399- [Material Design 3](https://m3.material.io/) — Google400- [Human Interface Guidelines](https://developer.apple.com/design/) — Apple401- [A11y Project](https://www.a11yproject.com/) — Community402- [web.dev](https://web.dev/) — Google (performance, CSS, accessibility)403- [Don't Make Me Think](https://sensible.com/dont-make-me-think/) — Steve Krug404- [The Design of Everyday Things](https://www.nngroup.com/) — Don Norman405- [100 Things Every Designer Needs to Know About People](https://www.susanweinschenk.com/) — Susan Weinschenk406407---408409_"Good design is obvious. Great design is transparent."_410— Joe Sparano