20 KiB
name: ui-ux-pro-max description: UI/UX design intelligence for web and mobile. Covers accessibility, touch interaction, performance, typography, animation, forms, navigation, and data visualization. Use when the task involves UI structure, visual design decisions, interaction patterns, or user experience quality control. Projects include websites, landing pages, dashboards, admin panels, SaaS, portfolios, and mobile apps. Stacks include React, Next.js, Vue, Svelte, HTML/CSS/Tailwind, and shadcn/ui. license: Adapted from nextlevelbuilder/ui-ux-pro-max-skill (MIT). Source: https://github.com/nextlevelbuilder/ui-ux-pro-max-skill
UI/UX Pro Max — Design Intelligence
Comprehensive UX/UI guidance for web and mobile. Covers 10 rule categories: accessibility, touch & interaction, performance, style, layout, typography & color, animation, forms & feedback, navigation, and data visualization. Applied with priority weighting — fix CRITICAL first, HIGH second, MEDIUM third.
When to Apply
Must Use
- Designing new pages (landing, dashboard, admin, SaaS, mobile app)
- Creating or refactoring UI components (buttons, modals, forms, tables, charts)
- Choosing color schemes, typography, spacing, or layout systems
- Reviewing UI code for accessibility, visual consistency, or UX quality
- Implementing navigation, animations, or responsive behavior
- Making product-level design decisions (style, hierarchy, brand)
Recommended
- UI looks "unprofessional" but the reason is unclear
- Receiving feedback on usability or experience
- Pre-launch UI quality pass
- Aligning cross-platform design (Web / iOS / Android)
- Building design systems or reusable component libraries
Skip
- Pure backend logic, API/database design, DevOps, infrastructure, non-visual scripts
Decision rule: If the task changes how something looks, feels, moves, or is interacted with — use this skill.
How to Use
Step 1 — Analyze requirements Identify: product type, target audience, style keywords, tech stack.
Step 2 — Apply the rule categories below in priority order (1→10). Focus on CRITICAL and HIGH first.
Step 3 — Run the Pre-Delivery Checklist before submitting any UI code.
| Scenario | Start From |
|---|---|
| New project / page | Step 1 → Style Selection → Layout → Typography |
| New component | Animation + Forms + Interaction rules |
| Review existing UI | Quick Reference checklist, §1–§3 first |
| Fix a UI bug | Relevant section from Quick Reference |
| Improve / optimize | §3 Performance + §5 Layout |
| Add charts / data viz | §10 Charts & Data |
Rule Categories by Priority
| Priority | Category | Impact | Key Checks (Must Have) | Anti-Patterns (Avoid) |
|---|---|---|---|---|
| 1 | Accessibility | CRITICAL | Contrast 4.5:1, Alt text, Keyboard nav, Aria-labels | Removing focus rings, Icon-only buttons without labels |
| 2 | Touch & Interaction | CRITICAL | Min size 44×44px, 8px+ spacing, Loading feedback | Reliance on hover only, Instant state changes (0ms) |
| 3 | Performance | HIGH | WebP/AVIF, Lazy loading, Reserve space (CLS < 0.1) | Layout thrashing, Cumulative Layout Shift |
| 4 | Style Selection | HIGH | Match product type, Consistency, SVG icons (no emoji) | Mixing flat & skeuomorphic randomly |
| 5 | Layout & Responsive | HIGH | Mobile-first, Viewport meta, No horizontal scroll | Fixed px widths, Disable zoom |
| 6 | Typography & Color | MEDIUM | Base 16px, Line-height 1.5, Semantic color tokens | Text < 12px body, Raw hex in components |
| 7 | Animation | MEDIUM | 150–300ms, Motion conveys meaning, Spatial continuity | Decorative-only animation, No reduced-motion support |
| 8 | Forms & Feedback | MEDIUM | Visible labels, Error near field, Progressive disclosure | Placeholder-only label, Overwhelm upfront |
| 9 | Navigation Patterns | HIGH | Predictable back, Bottom nav ≤5, Deep linking | Overloaded nav, Broken back behavior |
| 10 | Charts & Data | LOW | Legends, Tooltips, Accessible colors | Relying on color alone |
Quick Reference
§1 Accessibility (CRITICAL)
color-contrast— Minimum 4.5:1 for normal text; 3:1 for large textfocus-states— Visible focus rings on all interactive elements (2–4px)alt-text— Descriptive alt text for meaningful imagesaria-labels— aria-label for icon-only buttons; accessibilityLabel in nativekeyboard-nav— Tab order matches visual order; full keyboard supportform-labels—<label for>per input; never placeholder-onlyskip-links— "Skip to main content" for keyboard usersheading-hierarchy— Sequential h1→h6, no level skippedcolor-not-only— Don't convey info by color alone; add icon/textdynamic-type— Support system text scaling; avoid truncation as text growsreduced-motion— Respectprefers-reduced-motion; reduce/disable animationsvoiceover-sr— Meaningful labels and logical reading order for screen readersescape-routes— Cancel/back affordance in all modals and multi-step flows
§2 Touch & Interaction (CRITICAL)
touch-target-size— Min 44×44pt (iOS) / 48×48dp (Android); extend hit area if neededtouch-spacing— Minimum 8px gap between touch targetshover-vs-tap— Use click/tap for primary interactions; don't rely on hover onlyloading-buttons— Disable button during async; show spinner or progresserror-feedback— Clear, specific error messages near the problemcursor-pointer—cursor: pointeron all clickable elements (Web)tap-delay—touch-action: manipulationto eliminate 300ms delay (Web)standard-gestures— Use platform-standard gestures; don't redefine swipe-back or pinch-zoomsystem-gestures— Don't block Control Center, back swipe, or gesture barpress-feedback— Visual feedback on press (ripple, opacity, scale) within 80–150mshaptic-feedback— Haptic for confirmations and important actions; avoid overusesafe-area-awareness— Keep primary touch targets away from notch, Dynamic Island, gesture barno-precision-required— Avoid requiring pixel-perfect taps on small targetsdrag-threshold— Movement threshold before starting drag to avoid accidental drags
§3 Performance (HIGH)
image-optimization— WebP/AVIF, responsivesrcset, lazy load non-critical assetsimage-dimension— Declarewidth/heightoraspect-ratioto prevent CLSfont-loading—font-display: swapto avoid invisible text; preload critical fonts onlycritical-css— Inline or early-load above-the-fold CSSlazy-loading— Dynamic import / route splitting for non-hero componentsbundle-splitting— Split by route/feature (React Suspense / Next.js dynamic)reduce-reflows— Batch DOM reads then writes; avoid frequent layout reads/writescontent-jumping— Reserve space for async content (CLS < 0.1)virtualize-lists— Virtualize lists with 50+ itemsmain-thread-budget— Keep per-frame work under ~16ms for 60fpsprogressive-loading— Skeleton screens / shimmer for operations >1sinput-latency— Keep input latency under ~100msdebounce-throttle— Debounce/throttle scroll, resize, and input eventsoffline-support— Provide offline state messaging and basic fallback
§4 Style Selection (HIGH)
style-match— Match style to product type and industryconsistency— Same style across all pages; no arbitrary style switchingno-emoji-icons— Use SVG icons (Heroicons, Lucide, etc.), never emojiscolor-palette-from-product— Choose palette from product/industry contexteffects-match-style— Shadows, blur, radius aligned with chosen styleplatform-adaptive— Respect platform idioms (iOS HIG vs Material Design)state-clarity— Hover / pressed / disabled states visually distinctelevation-consistent— Consistent elevation/shadow scale; no random shadow valuesdark-mode-pairing— Design light and dark variants togethericon-style-consistent— One icon set; consistent stroke width and corner radiusprimary-action— One primary CTA per screen; secondary actions visually subordinatesystem-controls— Prefer native controls over fully custom ones unless branding requires it
§5 Layout & Responsive (HIGH)
viewport-meta—width=device-width, initial-scale=1; never disable zoommobile-first— Design mobile-first, scale up to tablet and desktopbreakpoint-consistency— Systematic breakpoints: 375 / 768 / 1024 / 1440readable-font-size— Minimum 16px body on mobile (avoids iOS auto-zoom)line-length-control— Mobile 35–60 chars/line; desktop 60–75 charshorizontal-scroll— No horizontal scroll on mobilespacing-scale— 4pt/8dp incremental spacing systemcontainer-width— Consistent max-width on desktop (max-w-6xl / 7xl)z-index-management— Defined z-index scale: 0 / 10 / 20 / 40 / 100 / 1000fixed-element-offset— Fixed navbar/bottom bar reserves padding for underlying contentscroll-behavior— No nested scroll regions that interfere with main scrollviewport-units— Usemin-h-dvhover100vhon mobileorientation-support— Layout readable in landscapevisual-hierarchy— Size, spacing, contrast — not color alone — drives hierarchy
§6 Typography & Color (MEDIUM)
line-height— 1.5–1.75 for body textline-length— 65–75 characters per linefont-pairing— Heading/body font personalities match; pair with intentfont-scale— Consistent type scale: 12 / 14 / 16 / 18 / 24 / 32contrast-readability— Darker text on light backgrounds (e.g. slate-900 on white)weight-hierarchy— Bold headings (600–700), Regular body (400), Medium labels (500)color-semantic— Semantic color tokens (primary, secondary, error, surface, on-surface); no raw hex in componentscolor-dark-mode— Desaturated/lighter tonal variants for dark; not inverted colorscolor-accessible-pairs— Foreground/background ≥4.5:1 (AA) or 7:1 (AAA)color-not-decorative-only— Functional color (error red, success green) requires icon/text alongsidenumber-tabular— Tabular/monospaced figures for prices, data columns, timerswhitespace-balance— Intentional whitespace groups related items; avoids clutter
§7 Animation (MEDIUM)
duration-timing— 150–300ms for micro-interactions; complex transitions ≤400ms; never >500mstransform-performance— Animatetransformandopacityonly; avoidwidth/height/top/leftloading-states— Skeleton or progress indicator when loading exceeds 300msexcessive-motion— 1–2 key animated elements per view maximumeasing—ease-outfor entering,ease-infor exiting; neverlinearfor UI transitionsmotion-meaning— Every animation expresses cause-effect; no purely decorative motionstate-transition— State changes animate smoothly (hover / active / expanded / collapsed)continuity— Page transitions maintain spatial continuity (shared element, directional slide)spring-physics— Prefer spring/physics-based curves for natural feelexit-faster-than-enter— Exit animations ~60–70% of enter durationstagger-sequence— Stagger list/grid entrance 30–50ms per iteminterruptible— Animations interruptible by user tap; UI stays interactive during animationmodal-motion— Modals animate from trigger source (scale+fade or slide-in)navigation-direction— Forward: left/up; backward: right/down — consistent directionlayout-shift-avoid— Animations must not cause CLS; usetransformfor position changes
§8 Forms & Feedback (MEDIUM)
input-labels— Visible label per input; never placeholder-onlyerror-placement— Error messages below the related fieldsubmit-feedback— Loading → success/error state on submitrequired-indicators— Mark required fields (asterisk or equivalent)empty-states— Helpful message and call-to-action when no contenttoast-dismiss— Auto-dismiss toasts in 3–5 secondsconfirmation-dialogs— Confirm before destructive actionsinline-validation— Validate on blur (not keystroke); show error only after user finishesinput-type-keyboard— Semanticinput type(email, tel, number) for correct mobile keyboardpassword-toggle— Show/hide toggle on password fieldsautofill-support—autocomplete/textContentTypefor system autofillundo-support— Allow undo for destructive or bulk actions (e.g. "Undo delete" toast)error-recovery— Error message includes a clear recovery path (retry, edit, help link)multi-step-progress— Step indicator or progress bar; allow back navigationerror-clarity— Error states state cause + how to fix; never just "Invalid input"focus-management— After submit error, auto-focus the first invalid field
§9 Navigation Patterns (HIGH)
bottom-nav-limit— Bottom navigation max 5 items; icons with labelsback-behavior— Back navigation predictable, consistent, preserves scroll/statedeep-linking— All key screens reachable via deep link / URLnav-label-icon— Navigation items have both icon and text label; icon-only hurts discoverabilitynav-state-active— Current location visually highlighted (color, weight, indicator)nav-hierarchy— Primary nav (tabs/bottom bar) vs secondary nav (drawer) clearly separatedmodal-escape— Modals offer clear close affordance; swipe-down to dismiss on mobilesearch-accessible— Search reachable from top bar or tab; recent/suggested queries providedstate-preservation— Back restores scroll position, filter state, and inputgesture-nav-support— Support iOS swipe-back, Android predictive back without conflictadaptive-navigation— ≥1024px: sidebar; <1024px: bottom/top navback-stack-integrity— Never silently reset nav stack or jump to home unexpectedlyavoid-mixed-patterns— Don't mix Tab + Sidebar + Bottom Nav at the same hierarchy levelmodal-vs-navigation— Modals not for primary navigation flows; they break the user's pathpersistent-nav— Core navigation reachable from deep pages; don't hide in sub-flows
§10 Charts & Data (LOW)
chart-type— Match chart type to data: trend → line, comparison → bar, proportion → pie/donutcolor-guidance— Accessible palettes; avoid red/green-only pairs for colorblind usersdata-table— Provide table alternative; charts alone are not screen-reader friendlypattern-texture— Supplement color with patterns/shapes for colorblind accessibilitylegend-visible— Always show legend; position near charttooltip-on-interact— Hover (Web) / tap (mobile) tooltips with exact valuesaxis-labels— Label axes with units; no truncated or rotated labels on mobileresponsive-chart— Charts reflow on small screens (horizontal bar instead of vertical)empty-data-state— Meaningful empty state with guidance; not a blank chartloading-chart— Skeleton/shimmer while chart data loadsanimation-optional— Chart entrance animations respectprefers-reduced-motionlarge-dataset— Aggregate or sample 1000+ data points; provide drill-downtouch-target-chart— Interactive chart elements ≥44pt tap areano-pie-overuse— Avoid pie/donut for >5 categories; use bar chartcontrast-data— Data lines/bars vs background ≥3:1; data labels ≥4.5:1
Common Rules for Professional UI
Icons & Visual Elements
| Rule | Do | Don't |
|---|---|---|
| No emoji as icons | Use SVG icons (Lucide, Heroicons, etc.) | Navigation icons as emojis (🎨🚀⚙️) |
| Vector-only assets | SVG / platform vector icons | Raster PNG icons that blur |
| Consistent icon sizing | Define tokens: icon-sm / icon-md (24pt) / icon-lg | Random 20 / 24 / 28pt mixing |
| Stroke consistency | One stroke width per visual layer (1.5px or 2px) | Mixing thick/thin strokes |
| Filled vs outline discipline | One style per hierarchy level | Mixing filled and outline at same level |
| Touch target minimum | ≥44×44pt; use hitSlop if icon is smaller |
Small icons without expanded hit area |
| Icon alignment | Align to text baseline; consistent padding | Misaligned icons or inconsistent spacing |
| Icon contrast | 4.5:1 (small) / 3:1 (large UI glyphs) | Low-contrast icons blending into background |
Interaction Standards
| Rule | Do | Don't |
|---|---|---|
| Tap feedback | Visual response within 80–150ms (ripple/opacity/elevation) | No visual response on tap |
| Animation timing | Micro-interactions 150–300ms with platform-native easing | Instant transitions or >500ms animations |
| Accessibility focus | Screen reader focus order matches visual; labels descriptive | Unlabeled controls or confusing traversal |
| Disabled state | Reduced opacity (0.38–0.5) + cursor change + semantic attribute | Controls that look tappable but do nothing |
| Touch target minimum | ≥44×44pt iOS / ≥48×48dp Android; expand hit area | Tiny touch targets without padding |
| Semantic controls | Native interactive primitives with proper roles | Generic containers as controls without semantics |
Light/Dark Mode
| Rule | Do | Don't |
|---|---|---|
| Surface readability (light) | Cards/surfaces clearly separated with opacity/elevation | Overly transparent surfaces that blur hierarchy |
| Text contrast (light) | Body text ≥4.5:1 against light surfaces | Low-contrast gray body text |
| Text contrast (dark) | Primary ≥4.5:1; secondary ≥3:1 on dark surfaces | Dark mode text that blends into background |
| Token-driven theming | Semantic color tokens mapped per theme | Hardcoded hex values per screen |
| Scrim and modal legibility | Modal scrim 40–60% black to isolate foreground | Weak scrim that leaves background competing |
| State contrast parity | Pressed/focused/disabled equally distinguishable in both themes | Interaction states defined for one theme only |
Layout & Spacing
| Rule | Do | Don't |
|---|---|---|
| Safe-area compliance | Respect top/bottom safe areas for fixed headers, tab bars, CTA bars | UI placed under notch, status bar, or gesture area |
| 8dp spacing rhythm | Consistent 4/8dp spacing system for padding, gaps, section spacing | Random spacing increments with no rhythm |
| Consistent content width | Predictable content width per device class | Arbitrary widths between screens |
| Section spacing hierarchy | Vertical rhythm tiers: 16 / 24 / 32 / 48 by hierarchy | Similar UI levels with inconsistent spacing |
| Scroll and fixed coexistence | Content insets so lists don't hide behind fixed bars | Scroll content obscured by sticky headers/footers |
Pre-Delivery Checklist
Run this before submitting any UI code.
Visual Quality
- No emojis used as icons
- All icons from consistent family and style
- No ad-hoc hardcoded hex values; semantic tokens used throughout
- Pressed-state visuals don't shift layout or cause jitter
Interaction
- All tappable elements have pressed feedback within 150ms
- Touch targets meet minimum size (≥44×44pt iOS / ≥48×48dp Android)
- Micro-interaction timing: 150–300ms with native-feeling easing
- Disabled states are visually clear and non-interactive
- Screen reader focus order matches visual; interactive labels descriptive
- No nested/conflicting gesture regions
Light/Dark Mode
- Primary text contrast ≥4.5:1 in both modes
- Secondary text contrast ≥3:1 in both modes
- Dividers/borders and states distinguishable in both modes
- Both themes tested before delivery
Layout
- Safe areas respected for headers, tab bars, and bottom CTA bars
- Scroll content not hidden behind fixed bars
- Tested on small phone, large phone, and tablet (portrait + landscape)
- 4/8dp spacing rhythm consistent across component, section, and page levels
Accessibility
- All meaningful images/icons have accessibility labels
- Form fields have labels, hints, and clear error messages
- Color is not the only indicator of state or meaning
- Reduced motion and dynamic text size supported without layout breakage
- Accessibility traits/roles/states (selected, disabled, expanded) announced correctly
Stacking with frontend-design
This skill covers UX rules and interaction quality. The frontend-design skill covers aesthetic direction and visual identity. Use both together:
frontend-design→ aesthetic direction, type system, color palette, signature elementui-ux-pro-max→ accessibility, interaction quality, animation timing, layout rules, pre-delivery checks