--- name: ui-ux-designer description: Modern UI/UX design specialist for web applications, mobile apps, and design systems. Covers design principles, user research, interaction patterns, accessibility (WCAG), responsive design, component libraries (Tailwind, shadcn/ui, Material), prototyping, and usability testing. Creates beautiful, functional interfaces following best practices. --- # UI/UX Designer Skill Expert in modern user interface and user experience design for web and mobile applications. Provides comprehensive guidance on design principles, interaction patterns, accessibility, and implementation using modern frameworks and libraries. ## Core Competencies ### 1. Design Principles - **Visual Hierarchy:** Guide user attention with size, color, spacing, contrast - **Consistency:** Maintain patterns across entire application - **Affordance:** Design elements that suggest their function - **Feedback:** Provide clear response to user actions - **White Space:** Use breathing room to reduce cognitive load - **Typography:** Choose readable fonts with proper sizing and spacing - **Color Theory:** Create harmonious palettes with proper contrast - **Progressive Disclosure:** Reveal complexity gradually ### 2. User Research & Analysis - **User Personas:** Define target user archetypes - **User Journeys:** Map complete user workflows - **Pain Points:** Identify friction in current experience - **Task Analysis:** Break down user goals into steps - **Competitive Analysis:** Learn from similar products - **Usability Testing:** Validate designs with real users - **A/B Testing:** Compare design variations empirically - **Analytics Review:** Use data to inform decisions ### 3. Interaction Patterns - **Navigation:** Clear, predictable movement through app - **Forms:** Efficient, error-tolerant data collection - **Feedback:** Loading states, success/error messages - **Microinteractions:** Small delightful moments - **Gestures:** Touch and mouse interactions - **Transitions:** Smooth, purposeful animations - **Empty States:** Guide users when no content exists - **Errors:** Helpful, actionable error messages ### 4. Accessibility (WCAG 2.1) - **Perceivable:** Content available to all senses - **Operable:** UI components usable by all - **Understandable:** Information and operation clear - **Robust:** Compatible with assistive technologies - **Color Contrast:** 4.5:1 for normal text, 3:1 for large - **Keyboard Navigation:** All functions keyboard-accessible - **Screen Readers:** Semantic HTML, ARIA labels - **Focus Indicators:** Clear visual focus states ### 5. Responsive Design - **Mobile First:** Design for smallest screen, enhance up - **Breakpoints:** Common: 640px, 768px, 1024px, 1280px - **Flexible Grids:** Use relative units (%, rem, fr) - **Touch Targets:** Minimum 44x44px for mobile - **Performance:** Optimize for slow networks - **Progressive Enhancement:** Core experience works everywhere ## Modern Tech Stack ### CSS Frameworks **Tailwind CSS** (Recommended) ```html ``` **Benefits:** - Utility-first approach - No CSS file bloat - Rapid prototyping - Consistent spacing/colors - Easy responsive design ### Component Libraries **shadcn/ui** (Recommended for React) - Accessible components (Radix UI primitives) - Tailwind-styled - Copy/paste, not npm install - Full customization **Material UI (MUI)** - Comprehensive component set - Material Design guidelines - Enterprise-ready - TypeScript support **Chakra UI** - Accessible by default - Composable components - Dark mode built-in - Great developer experience ### Design Tools - **Figma:** Collaborative design (industry standard) - **Adobe XD:** Adobe ecosystem integration - **Sketch:** Mac-only, design systems - **Framer:** Interactive prototypes - **Excalidraw:** Quick wireframes ### Icon Libraries - **Lucide:** Modern, consistent (recommended) - **Heroicons:** Tailwind-designed - **Feather:** Minimal, clean - **Font Awesome:** Comprehensive, classic ## UI/UX Workflow ### Phase 1: Research (20% of time) 1. **Understand Users** - Who are they? - What are their goals? - What's their context? 2. **Define Requirements** - Functional requirements - Business goals - Technical constraints 3. **Competitive Analysis** - What works well elsewhere? - What should we avoid? - Where's the opportunity? ### Phase 2: Ideation (15% of time) 1. **Sketching** - Low-fidelity paper sketches - Multiple approaches - Quick iteration 2. **Wireframing** - Digital low-fidelity layouts - Focus on structure, not style - Tools: Figma, Excalidraw 3. **Information Architecture** - Content organization - Navigation structure - Page hierarchy ### Phase 3: Design (30% of time) 1. **Visual Design** - Choose color palette - Select typography - Create components - Design key screens 2. **Design System** - Define reusable components - Document patterns - Create style guide 3. **Prototyping** - Interactive mockups - Test user flows - Validate interactions ### Phase 4: Implementation (30% of time) 1. **Component Development** - Build reusable components - Implement responsive behavior - Add accessibility features 2. **Integration** - Connect to backend - Handle loading/error states - Optimize performance 3. **Polish** - Smooth animations - Microinteractions - Edge case handling ### Phase 5: Testing & Iteration (5% of time) 1. **Usability Testing** - Observe real users - Identify issues - Gather feedback 2. **Accessibility Audit** - Screen reader testing - Keyboard navigation - Color contrast check 3. **Performance Testing** - Load times - Animation smoothness - Mobile performance ## Design System Template ### Color Palette ```css /* Primary Colors */ --primary-50: #eff6ff; --primary-500: #3b82f6; --primary-900: #1e3a8a; /* Semantic Colors */ --success: #10b981; --warning: #f59e0b; --error: #ef4444; --info: #3b82f6; /* Neutrals */ --gray-50: #f9fafb; --gray-500: #6b7280; --gray-900: #111827; ``` ### Typography Scale ```css /* Tailwind default scale */ text-xs: 0.75rem (12px) text-sm: 0.875rem (14px) text-base: 1rem (16px) text-lg: 1.125rem (18px) text-xl: 1.25rem (20px) text-2xl: 1.5rem (24px) text-3xl: 1.875rem (30px) text-4xl: 2.25rem (36px) ``` ### Spacing Scale ```css /* Tailwind 4px base unit */ 0: 0 1: 0.25rem (4px) 2: 0.5rem (8px) 3: 0.75rem (12px) 4: 1rem (16px) 6: 1.5rem (24px) 8: 2rem (32px) 12: 3rem (48px) 16: 4rem (64px) ``` ### Component Variants **Button Sizes:** - Small: py-1.5 px-3 text-sm - Medium: py-2 px-4 text-base - Large: py-3 px-6 text-lg **Button Styles:** - Primary: bg-primary text-white - Secondary: bg-gray-200 text-gray-900 - Ghost: bg-transparent hover:bg-gray-100 - Danger: bg-red-500 text-white ## Common UI Patterns ### Navigation **Top Nav (Desktop)** ```html ``` **Mobile Menu (Hamburger)** ```html ``` ### Forms **Input Field** ```html

We'll never share your email.

``` **Form Validation** ```html

This field is required

Looks good!

``` ### Cards **Basic Card** ```html

Card Title

Card description goes here.

``` ### Modals/Dialogs **Modal Structure** ```html

Modal Title

Modal content goes here.

``` ### Loading States **Spinner** ```html ``` **Skeleton Loading** ```html
``` ### Toasts/Notifications **Success Toast** ```html

Successfully saved!

``` ## Accessibility Checklist ### Essential Requirements ✅ - [ ] All images have alt text - [ ] Forms have associated labels - [ ] Color contrast meets WCAG AA (4.5:1) - [ ] All interactive elements keyboard accessible - [ ] Focus indicators visible - [ ] Headings follow logical hierarchy (h1 → h2 → h3) - [ ] ARIA labels for icon buttons - [ ] Skip to main content link - [ ] Error messages associated with inputs - [ ] No information conveyed by color alone ### Advanced Requirements ✅ - [ ] Screen reader tested (NVDA, JAWS, VoiceOver) - [ ] Keyboard shortcuts documented - [ ] Reduced motion respected (prefers-reduced-motion) - [ ] High contrast mode supported - [ ] Text can be resized to 200% - [ ] Content reflows at 320px width - [ ] Timeout warnings with extension option - [ ] ARIA landmarks for page regions ## Responsive Design Patterns ### Mobile-First Approach ```html
Content
``` ### Responsive Grid ```html
Item 1
Item 2
Item 3
``` ### Responsive Typography ```html

Responsive Heading

``` ### Show/Hide by Screen Size ```html
Mobile content
``` ## Animation Guidelines ### Timing Functions ```css /* Tailwind defaults */ ease-linear: linear ease-in: cubic-bezier(0.4, 0, 1, 1) ease-out: cubic-bezier(0, 0, 0.2, 1) /* Best for entering */ ease-in-out: cubic-bezier(0.4, 0, 0.2, 1) ``` ### Duration Guidelines - **Instant:** <100ms (hover effects) - **Quick:** 100-200ms (small transitions) - **Normal:** 200-300ms (most transitions) - **Slow:** 300-500ms (large movements) - **Avoid:** >500ms (feels sluggish) ### Common Transitions ```html ``` ### Dark Mode Toggle ```javascript // Toggle function function toggleDarkMode() { document.documentElement.classList.toggle('dark'); localStorage.theme = document.documentElement.classList.contains('dark') ? 'dark' : 'light'; } // Initialize on load if (localStorage.theme === 'dark' || (!('theme' in localStorage) && window.matchMedia('(prefers-color-scheme: dark)').matches)) { document.documentElement.classList.add('dark'); } ``` ## Common Pitfalls & Solutions ### Pitfall 1: Too Many Colors **Problem:** Inconsistent color usage, visual chaos **Solution:** Use a constrained palette (1 primary, 1-2 accent, neutrals) ### Pitfall 2: Inconsistent Spacing **Problem:** Elements feel unaligned, unprofessional **Solution:** Use 4px or 8px base unit, stick to spacing scale ### Pitfall 3: Poor Contrast **Problem:** Text hard to read, fails accessibility **Solution:** Use contrast checker, aim for 4.5:1 minimum ### Pitfall 4: Tiny Touch Targets **Problem:** Hard to tap on mobile **Solution:** Minimum 44x44px for all interactive elements ### Pitfall 5: No Loading States **Problem:** Users unsure if action worked **Solution:** Show spinners, disable buttons, provide feedback ### Pitfall 6: Desktop-Only Design **Problem:** Broken on mobile **Solution:** Design mobile-first, test on real devices ### Pitfall 7: Inaccessible Forms **Problem:** Screen readers can't navigate **Solution:** Associate labels, use semantic HTML, add ARIA ## Resources ### Learning - **Laws of UX:** https://lawsofux.com - **Refactoring UI:** Book by Adam Wathan & Steve Schoger - **Don't Make Me Think:** Book by Steve Krug - **Nielsen Norman Group:** https://www.nngroup.com ### Tools - **Figma:** https://figma.com (design) - **Tailwind CSS:** https://tailwindcss.com (CSS framework) - **shadcn/ui:** https://ui.shadcn.com (components) - **Lucide Icons:** https://lucide.dev (icons) - **Coolors:** https://coolors.co (color palettes) - **WebAIM Contrast Checker:** https://webaim.org/resources/contrastchecker/ ### Inspiration - **Dribbble:** https://dribbble.com - **Behance:** https://behance.net - **Mobbin:** https://mobbin.com (mobile patterns) - **Land-book:** https://land-book.com (landing pages) ## Success Criteria **Good UI/UX achieves:** - ✅ Users complete tasks efficiently - ✅ Zero confusion about how to use interface - ✅ Accessible to all users (WCAG AA minimum) - ✅ Works on all screen sizes - ✅ Fast load times (<3s initial, <1s interactions) - ✅ Consistent visual language throughout - ✅ Delightful microinteractions - ✅ Error messages are helpful - ✅ Users don't need documentation **Poor UI/UX results in:** - ❌ High bounce rates - ❌ Support tickets about "how to..." - ❌ Accessibility complaints - ❌ Mobile users leave immediately - ❌ Frustrated users, negative reviews