/03. aio-uiux

PLUGINS

aio-uiux

From plugin aio-design-system · v1.0.2 · Install: /plugin install aio-design-system@aiocean-plugins

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 ChallengeStart With
Building a new componentComponent Patterns → Design Systems → Accessibility
Making something look betterVisual Hierarchy → Whitespace → Color → Typography
Choosing colorsColor Theory → Color Harmonies → Semantic Colors → Accessibility Contrast
Typography decisionsType Scale → Font Pairing → Readability → Fluid Typography
Layout / spacing issuesSpacing Systems → CSS Grid → Flexbox → Content Width
Form designForm Design → Form Accessibility → Error Messages → Validation
Navigation designNavigation Patterns → Navigation Components → Mobile UX
Accessibility audit/fixWCAG Guide → ARIA Patterns → Keyboard Nav → Testing Checklist
Animation / transitionsAnimation Principles → Motion System → CSS Transitions → Micro-animations
Performance concernsPerceived Performance → Core Web Vitals → Image Optimization → Font Performance
Dark modeTheming & Dark Mode → Semantic Colors → Color Accessibility
Responsive / mobileMobile-First → Fluid Design → Responsive Patterns → Touch Targets
Design system setupDesign Tokens → Atomic Design → Component API → Tailwind Patterns
UX flow / user behaviorUX Psychology → UX Laws → Decision Making → Cognitive Load
Writing UI textMicrocopy → Error Messages → Voice & Tone → Conversion Copy
Modern CSS techniquesCustom Properties → Container Queries → () → Cascade Layers
Loading / empty statesState Management UX → Perceived Performance → Loading Patterns → Skeleton Screens
Buttons / CTAsButtons → 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:

  • Visual hierarchy is clear (squint test)
  • Spacing is consistent (uses system, not arbitrary values)
  • Color contrast meets WCAG AA (4.5:1 text, 3:1 UI)
  • Interactive elements have all states (hover, focus, active, disabled)
  • Touch targets are ≥44×44px on mobile
  • Animations respect prefers-reduced-motion
  • Text is readable (45-75 char line length, 1.4-1.6 line-height)
  • Component is keyboard navigable

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

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

TopicCore IdeaWhen to Use
Gestalt PrinciplesHow humans perceive visual groupsOrganizing UI elements, creating clear relationships
Visual HierarchyGuide the eye through importanceEvery layout — primary, secondary, tertiary emphasis
Golden Ratio & CompositionMathematical harmony in layoutHero sections, image cropping, layout proportions
Whitespace & Negative SpaceSpace as a design elementFeeling cramped, improving readability, luxury feel
Visual Weight & BalanceHow elements attract attentionBalancing asymmetric layouts, focal points
Contrast & EmphasisDifference creates focusCTAs, important information, visual interest
Alignment & GridsOrder through alignmentAny layout — grids, optical alignment, consistency

02. Typography

Type systems, font pairing, and text rendering

TopicCore IdeaWhen to Use
Type Scale SystemsMathematical size progressionSetting up heading/body sizes
Font PairingCombining typefaces harmoniouslyChoosing fonts for a project
Vertical RhythmConsistent spacing rhythmPage-level text layout
Fluid Responsive TypographyType that scales with viewportResponsive text without breakpoints
Readability & LegibilityOptimal reading experienceBody text, long-form content
OpenType & Variable FontsAdvanced font featuresPerformance, design polish
Web Font LoadingFast font deliveryPerformance optimization, CLS prevention

03. Color Science

Color theory, spaces, palettes, and accessibility

TopicCore IdeaWhen to Use
Color Theory FundamentalsColor meaning and emotionChoosing brand/UI colors
Color HarmoniesComplementary, analogous, triadicBuilding color palettes
Color Spaces & Modern CSSoklch, Display P3, color-mix()Modern CSS color implementation
Systematic Palette GenerationBuilding 50-950 shade scalesDesign system color setup
Semantic Color SystemsPrimitive → semantic → componentColor token architecture
Color Accessibility & ContrastWCAG, APCA, color blindnessEvery color decision
Data Visualization ColorsSequential, diverging, qualitativeCharts, graphs, dashboards

04. Layout & Spacing

Grid systems, spacing tokens, and responsive layout

TopicCore IdeaWhen to Use
Spacing Systems4pt/8pt grid, spacing tokensEvery layout decision
CSS Grid MasteryTwo-dimensional layoutPage layouts, dashboards, galleries
Flexbox PatternsOne-dimensional layoutComponent-level layout, alignment
Responsive Layout StrategiesAdapting to screen sizesEvery responsive design
Z-Index & LayeringStacking context managementModals, dropdowns, tooltips, toasts
Box Model & SizingBox-sizing, margins, logical propsLayout debugging, i18n
Content Width & ContainersMax-width, container patternsReadable content, full-bleed layouts

05. Accessibility (a11y)

WCAG 2.2, ARIA, keyboard navigation, screen readers

TopicCore IdeaWhen to Use
WCAG 2.2 Essential GuideWeb accessibility guidelinesEvery project — baseline requirements
ARIA Patterns ReferenceWidget roles and statesCustom interactive components
Keyboard NavigationTab order, focus managementEvery interactive element
Screen Reader OptimizationSemantic HTML, live regionsDynamic content, SPAs
Color & Motion AccessibilityContrast, reduced-motionColor decisions, animations
Form AccessibilityLabels, errors, validationEvery form
Testing ChecklistAutomated + manual testingPre-launch, code review

06. UX Psychology

Cognitive psychology and behavioral design for interfaces

TopicCore IdeaWhen to Use
Cognitive LoadReduce mental effortComplex interfaces, forms, onboarding
Attention & PerceptionHow users scan and noticeCTA placement, important info display
Decision MakingChoice architectureOptions, pricing, configuration
Persuasion & InfluenceEthical persuasion patternsLanding pages, conversions, trust
Emotional DesignVisceral, behavioral, reflectiveBrand experience, delight, trust
Habit FormationHook model, engagement loopsProduct engagement, onboarding
Memory & LearningRecognition, recall, mental modelsNavigation, onboarding, help

07. UX Laws

30+ evidence-based laws for interface design

TopicCore IdeaWhen to Use
Fitts's LawTarget size × distance = timeButton sizing, touch targets, CTA placement
Hick's LawMore choices = slower decisionsMenu design, option reduction
Jakob's LawUsers prefer familiar patternsConvention decisions, innovation risk
Miller's Law7±2 chunks in working memoryNavigation, grouping, information architecture
Tesler's LawComplexity can't be removedSmart defaults, progressive disclosure
Doherty Threshold400ms for flow stateLoading optimization, perceived performance
Aesthetic-UsabilityBeautiful = perceived usableVisual polish investment
Von Restorff EffectDistinctive items rememberedCTAs, badges, highlights
Peak-End RulePeaks and endings matter mostOnboarding, checkout, error recovery
Serial Position EffectFirst/last items rememberedNavigation order, list design
Goal-Gradient EffectAcceleration near completionProgress bars, multi-step flows
More UX LawsPostel's, Weber-Fechner, Prägnanz, + moreComprehensive reference

08. Interaction Design

Forms, navigation, states, and user flows

TopicCore IdeaWhen to Use
Form DesignInput types, validation, flowBuilding any form
Navigation PatternsNavbar, sidebar, tabs, breadcrumbsInformation architecture
State Management UXLoading, empty, error, successEvery interactive component
Micro-interactionsTrigger, rule, feedback, loopAdding polish, user feedback
Feedback PatternsToasts, alerts, progress, undoSystem-to-user communication
Search, Filter & SortSearch input, facets, resultsData-heavy interfaces
Drag, Drop & GesturesDrag handles, touch gesturesSortable lists, kanban, mobile

09. Motion & Animation

Animation principles, CSS transitions, scroll-driven effects

TopicCore IdeaWhen to Use
Animation PrinciplesDisney's 12 principles for UIUnderstanding "why" behind motion
Motion Design SystemDuration/easing token systemSetting up consistent motion
CSS TransitionsProperty transitions, 60fpsHover, focus, state changes
CSS Keyframe Animations@keyframes, multi-stepEnter/exit, loading, attention
Scroll-Driven AnimationsScroll progress, reveal on scrollLanding pages, storytelling
Page & View TransitionsView Transitions APIRoute changes, shared elements
Micro-Animation Library25+ copy-paste CSS animationsQuick implementation reference

10. Component Patterns

Design patterns for UI components

TopicCore IdeaWhen to Use
ButtonsHierarchy, states, sizingEvery interactive UI
Forms & InputsInput types, states, validationBuilding forms
Cards & ContainersCard anatomy, grid layoutsContent display
Modals, Dialogs & SheetsWhen to use which overlayConfirmations, forms, settings
Tables & Data DisplaySorting, filtering, responsiveData-heavy interfaces
Navigation ComponentsNavbar, sidebar, tabs, breadcrumbsApp chrome, wayfinding
Feedback ComponentsToasts, alerts, badges, progressSystem feedback
Complex ComponentsCommand palette, data grid, treeAdvanced interfaces

11. Design Systems

Tokens, atomic design, theming, and popular systems

TopicCore IdeaWhen to Use
Design Token ArchitecturePrimitive → semantic → componentSetting up any design system
Atomic DesignAtoms, molecules, organismsComponent organization
Component API DesignProps, variants, compositionBuilding reusable components
Popular Systems AnalysisMaterial, Apple, Fluent, shadcnLearning from the best
Theming & Dark ModeCSS custom properties, themesDark mode, multi-theme
Design System ChecklistEverything a system needsStarting or auditing a system
Tailwind Design Patternscva, tailwind-merge, configTailwind-based projects

12. UX Writing

Microcopy, content design, and inclusive language

TopicCore IdeaWhen to Use
Microcopy PatternsButton labels, errors, empty statesWriting any UI text
Voice & Tone GuidelinesConsistent brand voiceEstablishing content guidelines
Error MessagesWhat + why + how to fixError handling copy
Onboarding CopyWelcome, tours, progressiveFirst-run experience
Conversion CopyCTAs, headlines, social proofLanding pages, signup flows
Inclusive WritingGender-neutral, plain languageAll user-facing text

13. Performance UX

Perceived performance, Core Web Vitals, optimization

TopicCore IdeaWhen to Use
Perceived PerformancePsychology of waitingMaking things feel fast
Core Web VitalsLCP, INP, CLSPerformance auditing
Image OptimizationFormats, responsive, lazyEvery image implementation
Font Performancefont-display, preload, subsetWeb font optimization
Critical Rendering PathAbove-the-fold, CSS containmentPage load optimization
Loading Patterns LibrarySkeleton, spinner, progress CSSCopy-paste loading patterns

14. Modern CSS

Custom properties, container queries, (), cascade layers

TopicCore IdeaWhen to Use
Custom Properties ArchitectureCSS token system designAny CSS architecture
Container QueriesComponent-level responsivenessSelf-contained components
() Selector PatternsParent selector, state-basedAdvanced styling without JS
Cascade Layers@layer for specificity controlManaging CSS specificity
Modern Layout TechniquesSubgrid, nesting, logical propsCutting-edge layout
Color Functionsoklch, color-mix, light-dark()Modern color implementation
Scroll Snap & PopoverScroll snap, popover, dialogNative browser patterns

15. Responsive Design

Mobile-first, fluid design, touch targets

TopicCore IdeaWhen to Use
Mobile-First StrategyProgressive enhancementStarting any responsive project
Breakpoint SystemContent-based breakpointsDefining responsive breakpoints
Fluid Designclamp(), no-breakpoint layoutsTruly fluid interfaces
Responsive PatternsStack, sidebar, grid, tableCommon responsive transformations
Touch Targets & Mobile UX44px minimum, thumb zonesMobile-specific design
Responsive Imagessrcset, picture, art directionImage delivery optimization
Print Stylesheets@media print, page breaksPrint-friendly pages

Quick Reference Card

The 10 Most Impactful Design Decisions

  1. Visual Hierarchy — Guide the eye: size, color, weight, space
  2. Spacing System — Use 8pt grid, consistent tokens, generous whitespace
  3. Color Contrast — WCAG AA minimum: 4.5:1 text, 3:1 UI components
  4. Typography — Max 2 fonts, clear type scale, 45-75 char line length
  5. Component States — Every element needs: hover, focus, active, disabled, loading, error
  6. Touch Targets — Minimum 44×44px, use full clickable area
  7. Loading States — Skeleton screens > spinners > nothing
  8. Error Handling — What happened + why + how to fix
  9. Keyboard Navigation — Tab order, focus visible, escape to dismiss
  10. Motion — 200-300ms transitions, ease-out for enters, respect prefers-reduced-motion

Design Review Checklist

Before shipping any UI, verify:

  • Visual hierarchy is clear (squint test passes)
  • Spacing uses system tokens, not arbitrary values
  • Color contrast meets WCAG AA (test with browser devtools)
  • All interactive elements have hover, focus, active, and disabled states
  • Touch targets are at least 44×44px
  • Animations respect prefers-reduced-motion
  • Text line length is 45-75 characters
  • Forms have visible labels, clear errors, proper autocomplete
  • Empty states, loading states, and error states are designed
  • Page is navigable with keyboard only
  • Screen reader announces dynamic changes (aria-live)
  • Images have meaningful alt text (or alt="" for decorative)

Sources & Further Reading


"Good design is obvious. Great design is transparent." — Joe Sparano