UI/UX Design
Name: ui-ux-design
Description: Modern UI/UX design principles, patterns, and best practices for web and mobile applications. Use when building user interfaces, designing layouts, choosing color palettes, implementing responsive design, ensuring accessibility (WCAG), or creating beautiful modern applications. Includes 2026 design trends, Tailwind CSS patterns, Shadcn/ui integration, micro-interactions, and mobile-first responsive design.
When to Use This Skill
Activate this skill when:
- Building or designing web/mobile interfaces
- Choosing colors, typography, or layout systems
- Implementing responsive design (mobile-first)
- Ensuring accessibility compliance (WCAG 2.2)
- Setting up Shadcn/ui + Tailwind CSS projects
- Creating micro-interactions and animations
- Reviewing UI/UX decisions before coding
Core Design Principles
1. Mobile-First Always
- Start with 320px width (smallest phone)
- Breakpoints: 576px (phone), 768px (tablet), 992px (laptop), 1200px (desktop)
- Single-column default, expand only when space allows
2. Visual Hierarchy
Guide user attention using:
- Size: Larger = more important
- Color: Bright/contrasting = attention
- Whitespace: More space = emphasis
- Proximity: Related items grouped together
- Contrast: Dark on light or light on dark (4.5:1 minimum for text)
3. Whitespace is Your Weapon
- Space elements in multiples of 8px (8, 16, 24, 32, 48, 64)
- Breathing room between sections: 48-64px minimum
- Padding inside cards: 24-32px
Quick Reference
Color System
Build a primary color scale (50-900):
- Primary: Brand color (CTAs, links, active states)
- Neutrals: Grays 50-900 (text, backgrounds, borders)
- Semantic: Success (green), Error (red), Warning (yellow/orange)
Tools: Huevy.app, Coolors.co, Adobe Color
Typography Scale (8px baseline)
text-xs: 12px / 16px line-height
text-sm: 14px / 20px
text-base: 16px / 24px (body default)
text-lg: 18px / 28px
text-xl: 20px / 28px
text-2xl: 24px / 32px
text-3xl: 30px / 36px (section headers)
text-4xl: 36px / 40px
text-5xl: 48px / 1 (hero titles)
Font pairing: 2 fonts max (sans-serif for UI, optional serif for headings)
Layout Patterns
- CSS Grid: 2D layouts (page structure)
- Flexbox: 1D layouts (component internals)
- Auto-fit grid:
repeat(auto-fit, minmax(280px, 1fr)) (no media queries!)
Micro-Interactions
- Hover: Scale 1.05x (buttons feel clickable)
- Click: Scale 0.95x (tactile feedback)
- Duration: 0.2-0.3s max (keep it subtle)
- Animate only:
transform and opacity (GPU accelerated)
Accessibility (WCAG 2.2)
- Text contrast: 4.5:1 minimum (normal text), 3:1 (large text)
- UI components: 3:1 contrast minimum
- Keyboard navigation: Tab order logical, focus states visible (3:1 contrast)
- ARIA labels: Always provide for buttons, images, interactive elements
Shadcn/ui + Tailwind Stack
Setup (Next.js)
npx create-next-app@latest project-name --typescript --tailwind --app
cd project-name
npx shadcn@latest init
Choose: Style (Default), Base color (Blue or custom), CSS variables (Yes)
Adding Components
npx shadcn@latest add button
npx shadcn@latest add card
npx shadcn@latest add dialog
npx shadcn@latest add calendar
Components appear in components/ui/ — you own the code, customize freely.
Tailwind Best Practices
- Use design tokens (not arbitrary values):
p-4 not p-[17px]
- Responsive utilities:
w-full md:w-1/2 lg:w-1/3
- Dark mode:
dark:bg-gray-900 dark:text-white
Pre-Build Checklist
Before writing code, confirm:
Inspiration Sources
Study these products:
- Linear (linear.app) — Best keyboard-first UI, subtle animations
- Stripe Dashboard — Clean data visualization, perfect spacing
- Vercel — Minimalist, fast, modern gradients
- Notion — Intuitive drag-and-drop, clear hierarchy
Tools:
- Figma (mockups before coding)
- WebAIM Contrast Checker (accessibility)
- Coolors/Huevy (color palettes)
The 5 Laws of Beautiful UI
- Contrast creates hierarchy (big vs small, dark vs light)
- Whitespace creates calm (never fear empty space)
- Consistency builds trust (same patterns repeated)
- Feedback confirms action (animations, success messages)
- Accessibility includes everyone (contrast, keyboard, screen readers)
Full Reference
For comprehensive deep-dives (component patterns, animation examples, responsive grid techniques), see UI_UX_MASTER_GUIDE.md in this skill directory.
Last Updated: 2026-02-05
1---2name: ui-ux-design3description: Modern UI/UX design principles, patterns, and best practices for web and mobile applications. Use when building user interfaces, designing layouts, choosing color palettes, implementing responsive design, ensuring accessibility (WCAG), or creating beautiful modern applications. Includes 2026 design trends, Tailwind CSS patterns, Shadcn/ui integration, micro-interactions, and mobile-first responsive design.4---56# UI/UX Design78**Name:** ui-ux-design 9**Description:** Modern UI/UX design principles, patterns, and best practices for web and mobile applications. Use when building user interfaces, designing layouts, choosing color palettes, implementing responsive design, ensuring accessibility (WCAG), or creating beautiful modern applications. Includes 2026 design trends, Tailwind CSS patterns, Shadcn/ui integration, micro-interactions, and mobile-first responsive design.1011---1213## When to Use This Skill1415Activate this skill when:16- Building or designing web/mobile interfaces17- Choosing colors, typography, or layout systems18- Implementing responsive design (mobile-first)19- Ensuring accessibility compliance (WCAG 2.2)20- Setting up Shadcn/ui + Tailwind CSS projects21- Creating micro-interactions and animations22- Reviewing UI/UX decisions before coding2324---2526## Core Design Principles2728### 1. Mobile-First Always29- Start with 320px width (smallest phone)30- Breakpoints: 576px (phone), 768px (tablet), 992px (laptop), 1200px (desktop)31- Single-column default, expand only when space allows3233### 2. Visual Hierarchy34Guide user attention using:35- **Size:** Larger = more important36- **Color:** Bright/contrasting = attention37- **Whitespace:** More space = emphasis38- **Proximity:** Related items grouped together39- **Contrast:** Dark on light or light on dark (4.5:1 minimum for text)4041### 3. Whitespace is Your Weapon42- Space elements in multiples of 8px (8, 16, 24, 32, 48, 64)43- Breathing room between sections: 48-64px minimum44- Padding inside cards: 24-32px4546---4748## Quick Reference4950### Color System51Build a primary color scale (50-900):52- **Primary:** Brand color (CTAs, links, active states)53- **Neutrals:** Grays 50-900 (text, backgrounds, borders)54- **Semantic:** Success (green), Error (red), Warning (yellow/orange)5556Tools: Huevy.app, Coolors.co, Adobe Color5758### Typography Scale (8px baseline)59```60text-xs: 12px / 16px line-height61text-sm: 14px / 20px62text-base: 16px / 24px (body default)63text-lg: 18px / 28px64text-xl: 20px / 28px65text-2xl: 24px / 32px66text-3xl: 30px / 36px (section headers)67text-4xl: 36px / 40px68text-5xl: 48px / 1 (hero titles)69```7071**Font pairing:** 2 fonts max (sans-serif for UI, optional serif for headings)7273### Layout Patterns74- **CSS Grid:** 2D layouts (page structure)75- **Flexbox:** 1D layouts (component internals)76- **Auto-fit grid:** `repeat(auto-fit, minmax(280px, 1fr))` (no media queries!)7778### Micro-Interactions79- **Hover:** Scale 1.05x (buttons feel clickable)80- **Click:** Scale 0.95x (tactile feedback)81- **Duration:** 0.2-0.3s max (keep it subtle)82- **Animate only:** `transform` and `opacity` (GPU accelerated)8384### Accessibility (WCAG 2.2)85- **Text contrast:** 4.5:1 minimum (normal text), 3:1 (large text)86- **UI components:** 3:1 contrast minimum87- **Keyboard navigation:** Tab order logical, focus states visible (3:1 contrast)88- **ARIA labels:** Always provide for buttons, images, interactive elements8990---9192## Shadcn/ui + Tailwind Stack9394### Setup (Next.js)95```bash96npx create-next-app@latest project-name --typescript --tailwind --app97cd project-name98npx shadcn@latest init99```100101Choose: Style (Default), Base color (Blue or custom), CSS variables (Yes)102103### Adding Components104```bash105npx shadcn@latest add button106npx shadcn@latest add card107npx shadcn@latest add dialog108npx shadcn@latest add calendar109```110111Components appear in `components/ui/` — you own the code, customize freely.112113### Tailwind Best Practices114- Use design tokens (not arbitrary values): `p-4` not `p-[17px]`115- Responsive utilities: `w-full md:w-1/2 lg:w-1/3`116- Dark mode: `dark:bg-gray-900 dark:text-white`117118---119120## Pre-Build Checklist121122Before writing code, confirm:123- [ ] Color palette defined (primary + neutrals + semantic colors)124- [ ] Typography scale chosen (6-8 sizes)125- [ ] Component library picked (Shadcn + Tailwind)126- [ ] Mobile breakpoints planned (576px, 768px, 992px)127- [ ] Accessibility contrast ratios checked (4.5:1 text, 3:1 UI)128- [ ] Micro-interaction list (hover, click, success states)129- [ ] Grid layout sketched (mobile → desktop progression)130131---132133## Inspiration Sources134135**Study these products:**136- Linear (linear.app) — Best keyboard-first UI, subtle animations137- Stripe Dashboard — Clean data visualization, perfect spacing138- Vercel — Minimalist, fast, modern gradients139- Notion — Intuitive drag-and-drop, clear hierarchy140141**Tools:**142- Figma (mockups before coding)143- WebAIM Contrast Checker (accessibility)144- Coolors/Huevy (color palettes)145146---147148## The 5 Laws of Beautiful UI1491501. **Contrast creates hierarchy** (big vs small, dark vs light)1512. **Whitespace creates calm** (never fear empty space)1523. **Consistency builds trust** (same patterns repeated)1534. **Feedback confirms action** (animations, success messages)1545. **Accessibility includes everyone** (contrast, keyboard, screen readers)155156---157158## Full Reference159160For comprehensive deep-dives (component patterns, animation examples, responsive grid techniques), see `UI_UX_MASTER_GUIDE.md` in this skill directory.161162---163164**Last Updated:** 2026-02-05