/loxihart-design:advanced-ux-patternsfrom loxihart-design
Comprehensive UX best practices including accessibility (WCAG 2.2), interaction patterns, user research methods, and usability principles. Use when designing user interfaces, conducting UX audits, or implementing accessible, user-centered designs. Also triggers on WCAG, ARIA, keyboard navigation, screen reader, focus trap, focus management, touch targets, usability testing, heuristic evaluation, card sorting, tree testing, NPS, SUS, form design, navigation patterns, mobile UX, design handoff, cognitive load, information architecture, dark patterns, skeleton screen, error states, reduced motion, dark mode accessibility, component states, error recovery, or any request to audit, improve, spec, or review a user interface — even casually. If UI is involved, use this skill.
Ships in loxihart-design. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Build accessible, user-centered interfaces using proven UX patterns and research-backed principles.
Choose your workflow based on task:
MANDATORY for all interfaces:
Perceivable:
Operable:
prefers-reduced-motion: gate animations in @media (prefers-reduced-motion: no-preference) — don't suppress motion globallyUnderstandable:
lang="en")Robust:
Validate with: Chrome DevTools → Accessibility panel, or axe DevTools extension, or run npx axe <url> in terminal.
See: references/wcag-checklist.md for complete requirements
Choose patterns based on user task:
Navigation Patterns:
Input Patterns:
Feedback Patterns:
Data Display:
See: references/interaction-patterns.md for complete pattern library
When to conduct research:
Quick research methods:
Research outputs:
See: references/research-methods.md for detailed guidance
Use when evaluating existing interfaces:
Usability (Nielsen Heuristics):
Accessibility:
Performance:
Mobile:
Manual audit tools: Lighthouse (DevTools → Audits), WAVE browser extension, keyboard-only navigation test.
Developer-ready deliverables:
Component specs:
Interaction specs:
Responsive behavior:
Accessibility annotations:
Visual regression baseline:
npx vizzly tdd "npx playwright test" (local, free tier)See: references/design-handoff.md for templates
✅ DO:
- Single column layouts (easier scanning)
- Inline validation (immediate feedback)
- Clear labels above inputs (always visible)
- Optional fields marked (assume required)
- Smart defaults (reduce user effort)
- Progress indicators (multi-step forms)
❌ AVOID:
- Placeholder-only labels (accessibility issue)
- CAPTCHA on low-risk flows (use invisible reCAPTCHA v3 or honeypot — visible CAPTCHAs add friction and fail screen readers)
- Disabled submit buttons (show errors instead)
- Ambiguous error messages ("invalid input")
- Reset buttons (accidental data loss)
See: references/form-patterns.md
✅ DO:
- Logo links to home (universal convention)
- Primary nav ≤7 items (NN/g research; Miller's "7±2" applies to working memory chunks, not nav items — but the practical limit holds)
- Active state indicators (current page)
- Breadcrumbs for deep hierarchies (3+ levels)
- Search in header (expected location)
❌ AVOID:
- Hamburger menus on desktop (hide content)
- Auto-playing carousels (accessibility, usability)
- Dropdown menus on hover (mobile, accessibility)
- Pagination for <50 items (use scrolling)
See: references/navigation-patterns.md
✅ DO:
- Bottom navigation (thumb-friendly)
- Large touch targets (≥44×44px)
- Swipe gestures (back, delete, archive)
- Pull-to-refresh (native feel)
- Sticky CTAs (always visible)
❌ AVOID:
- Horizontal scrolling (poor discoverability)
- Tiny tap targets (<44px)
- Hover-dependent interactions
- Long forms without chunking
See: references/mobile-patterns.md
Dark Patterns (unethical UX):
Performance Anti-Patterns:
Accessibility Anti-Patterns:
Before finalizing designs:
These patterns apply directly to Kyle's production stack.
shadcn/ui a11y defaults:
Dialog / AlertDialog — built-in focus trap, returns focus on close. Don't roll your own.Command — keyboard-navigable by default; add aria-label to CommandInput.Select — uses Radix UI; keyboard + screen reader compatible. Never replace with a <div> dropdown.Tooltip — keyboard-accessible by default; don't add tooltips to non-interactive elements.Table — add aria-sort attributes manually when implementing sortable columns.Tailwind utilities:
text-gray-900 dark:text-gray-100 — always pair light/dark values; verify with Tailwind's contrast() plugin or a browser DevTools checkfocus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 — use focus-visible: not focus: to avoid showing rings on mouse clickmotion-safe:transition-all motion-reduce:transition-nonesr-only for visually hidden labelsReact patterns:
useEffect(() => { ref.current?.focus() }, [isLoaded])<body>, href="#main-content", visible on focus onlynullCross-skill callouts:
managing-design-briefselite-ui-designfrontend-designprototyping-testingreferences/design-handoff.md (opens in a new tab)references/form-patterns.md (opens in a new tab)references/interaction-patterns.md (opens in a new tab)references/mobile-patterns.md (opens in a new tab)references/navigation-patterns.md (opens in a new tab)references/research-methods.md (opens in a new tab)references/wcag-checklist.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub krosebrook/loxihart-skills --plugin loxihart-design19 skills in this plugin
/advanced-visual-designAdvanced visual design techniques including typography systems, color theory, grid-based layouts, visual hierarchy, and composition principles. Use when creating high-quality visual designs, establishing design foundations, or implementing sophisticated design systems. Also triggers on type scale, font pairing, color palette, HSL color, 8-point grid, 12-column layout, visual hierarchy, whitespace, composition, rule of thirds, golden ratio, dark mode design, optical adjustments, or easing curves. Even if someone says "make this look professional" or "set up my design foundations" — use this skill./applying-web-design-standardsApplies web design standards covering typography systems, color theory, grid layouts, design tokens, component library architecture, responsive CSS, and performance optimization. Use when the user mentions: type scale, font pairing, color palette, HSL color, 8-point grid, design tokens, component API, Storybook, Style Dictionary, atomic design, responsive layout, mobile-first, Core Web Vitals, CSS Grid, Flexbox, container queries, pre-launch audit. Does NOT activate for Kyle-specific branded builds — use executing-branded-frontends or managing-design-briefs instead.Other plugins' skills for the same job