UI/UX Pro Max Skill
Overview
This skill provides access to a comprehensive design database via native Mastra tools.
All design recommendations MUST come from tool queries - never from LLM memory.
Available Tools
getStyleRecommendations
Search 67+ UI styles by product type, industry, and keywords.
Query examples:
- "fintech dashboard minimal"
- "healthcare monitoring dark"
- "startup saas bold"
- "enterprise corporate professional"
- "voice ai cyber glass"
Returns: Style category, colors (hex), effects, complexity rating, implementation checklist.
getTypographyRecommendations
Search 57+ font pairings by style, mood, and use case.
Query examples:
- "professional corporate"
- "modern tech startup"
- "friendly approachable"
- "premium luxury"
Returns: Font pairings (heading + body), weights, line heights, use cases.
getChartRecommendations
Search 25+ chart types by data pattern and visualization goal.
Query examples:
- "time series trend"
- "comparison categories"
- "part-to-whole percentage"
- "geographic distribution"
Returns: Chart type, secondary options, color guidance, accessibility notes, library recommendations.
getProductRecommendations
Search industry-specific design patterns.
Query examples:
- "crm dashboard"
- "voice ai analytics"
- "workflow automation"
- "healthcare monitoring"
Returns: Primary style recommendation, landing page pattern, dashboard style, key considerations.
getUXGuidelines
Search 98+ UX best practices by category and platform.
Query examples:
- "mobile navigation"
- "form validation"
- "accessibility wcag"
- "dashboard layout"
Returns: Guideline, do/don't examples, code samples, severity rating.
Usage Rules
- ALWAYS call tools before giving design advice
- NEVER invent design values - use only what tools return
- Reference specific values from results (hex codes, font names, style names)
- If tools return empty, suggest broadening the query
- Combine multiple tool results for comprehensive recommendations
Data Sources
- styles.csv: 67 UI styles with colors, effects, complexity
- typography.csv: 57 font pairings with weights, use cases
- charts.csv: 25 chart types with accessibility notes
- products.csv: Industry-specific design patterns
- ux-guidelines.csv: 98 UX best practices
Design System Workflow
Generate Complete Design System
Always start by generating a complete design system before individual domain searches:
Query Pattern:
getProductRecommendations("<product_type> <industry>")
+ getStyleRecommendations("<product_type> <style_keywords>")
+ getTypographyRecommendations("<style_keywords>")
+ getChartRecommendations("<data_type>") [if dashboard]
+ getUXGuidelines("<platform> <category>")
Example:
User: "Create a fintech dashboard with dark mode"
1. getProductRecommendations("fintech dashboard")
→ Returns: Industry-specific design direction
2. getStyleRecommendations("fintech dark minimal professional")
→ Returns: Style category, hex colors, effects, complexity
3. getTypographyRecommendations("professional modern corporate")
→ Returns: Font pairings, weights, line heights
4. getChartRecommendations("time series trend comparison")
→ Returns: Chart types, color palettes, libraries
5. getUXGuidelines("dashboard layout dark mode accessibility")
→ Returns: Best practices, anti-patterns, code samples
Design System Output Structure
A complete design system includes:
- Pattern - Landing page structure (hero-centric, testimonial-driven, etc.)
- Style - Visual direction (glassmorphism, minimalism, etc.) with hex colors
- Colors - Primary, secondary, accent, background, text colors
- Typography - Heading font + body font with weights and line heights
- Effects - Shadows, borders, animations, glassmorphism values
- Anti-patterns - What to avoid for this product type
Persist Design System (Master + Overrides Pattern)
For multi-page projects, persist the design system for consistency:
Concept:
design-system/MASTER.md → Global Source of Truth (all design rules)
design-system/pages/ → Page-specific overrides (deviations from Master)
Hierarchical Retrieval Logic:
- When building a specific page (e.g., "dashboard"), first check
design-system/pages/dashboard.md
- If page file exists, its rules override the Master file
- If page file doesn't exist, use
design-system/MASTER.md exclusively
When to Create Master:
- User confirms a design system for the entire project
- Multiple pages will share the same design language
When to Create Page Override:
- User requests page-specific style (e.g., "Make checkout page simpler")
- Page has different density/spacing requirements
- Page has different color emphasis (e.g., success green for confirmation)
Content Structure:
MASTER.md:
# [Project Name] Design System
## Style
- Category: Glassmorphism
- Primary: #667eea
- Effects: backdrop-blur-md, bg-white/10
- Dark mode primary: #818cf8
## Typography
- Heading: Inter Bold (700, 800)
- Body: Inter Regular (400, 500)
- Line height: 1.5
## Spacing
- Density: Comfortable
- Card padding: p-6
- Section gaps: space-y-8
## Components
- Border radius: rounded-xl
- Shadow: shadow-lg
- Hover: scale-105, transition-300ms
pages/dashboard.md:
# Dashboard Page Overrides
## Spacing (OVERRIDE)
- Density: Compact (data-heavy)
- Card padding: p-4
- Section gaps: space-y-4
## Components (OVERRIDE)
- Border radius: rounded-lg (sharper for data tables)
- Charts: Use consistent color palette from MASTER
Supplement with Domain Searches
After establishing the design system, use domain searches for specific needs:
When to Search Additional Domains:
| Need |
Domain |
Example Query |
| Alternative styles |
style |
"brutalism bold high-contrast" |
| More font options |
typography |
"elegant luxury serif" |
| Chart variations |
chart |
"funnel conversion visualization" |
| UX validation |
ux |
"mobile touch targets animation" |
| Industry patterns |
product |
"healthcare HIPAA compliance" |
Quick Reference by Priority
When designing or reviewing UI, apply these guidelines in priority order:
| Priority |
Category |
Impact |
Key Rules |
| 1 |
Accessibility |
CRITICAL |
4.5:1 contrast, focus states, alt text, aria-labels, keyboard nav |
| 2 |
Touch & Interaction |
CRITICAL |
44x44px targets, cursor-pointer, hover feedback, loading states |
| 3 |
Performance |
HIGH |
WebP images, lazy loading, reduced-motion, no content jumping |
| 4 |
Layout & Responsive |
HIGH |
Mobile-first, 16px min font, no horizontal scroll, z-index scale |
| 5 |
Typography & Color |
MEDIUM |
1.5-1.75 line height, 65-75 char lines, font pairing |
| 6 |
Animation |
MEDIUM |
150-300ms duration, transform/opacity only, skeleton screens |
Critical Rules (Always Check)
Accessibility:
color-contrast: Minimum 4.5:1 ratio for normal text
focus-states: Visible focus rings on all interactive elements
alt-text: Descriptive alt text for meaningful images
aria-labels: Required for icon-only buttons
keyboard-nav: Tab order matches visual order
form-labels: Use label with for attribute
Touch & Interaction:
touch-target-size: Minimum 44x44px touch targets
cursor-pointer: Add to all clickable/hoverable elements
hover-feedback: Clear visual feedback (color, shadow, border)
loading-buttons: Disable during async operations
error-feedback: Clear error messages near problem
Performance:
image-optimization: Use WebP, srcset, lazy loading
reduced-motion: Check prefers-reduced-motion media query
content-jumping: Reserve space for async content
Domain Search Guide
Use these domains to get specific design recommendations:
| Domain |
Use For |
Example Keywords |
Tool |
product |
Product type recommendations |
SaaS, e-commerce, portfolio, healthcare, beauty |
getProductRecommendations |
style |
UI styles, colors, effects |
glassmorphism, minimalism, dark mode, brutalism |
getStyleRecommendations |
typography |
Font pairings, Google Fonts |
elegant, playful, professional, modern |
getTypographyRecommendations |
color |
Color palettes by product type |
saas, ecommerce, healthcare, beauty, fintech |
getStyleRecommendations |
chart |
Chart types, library recommendations |
trend, comparison, timeline, funnel, pie |
getChartRecommendations |
ux |
Best practices, anti-patterns |
animation, accessibility, z-index, loading |
getUXGuidelines |
When to Use Each Domain
Start with product: Get industry-specific design direction
getProductRecommendations("voice ai analytics dashboard")
Returns: Primary style, landing pattern, dashboard style, key considerations
Follow with style: Get detailed visual direction
getStyleRecommendations("fintech minimal professional")
Returns: Style category, hex colors, effects, complexity rating, checklist
Add typography: Get font pairings
getTypographyRecommendations("professional corporate modern")
Returns: Heading + body fonts, weights, line heights, use cases
Include chart: For data visualization
getChartRecommendations("time series trend comparison")
Returns: Chart types, secondary options, color guidance, libraries
Check ux: For best practices
getUXGuidelines("mobile navigation accessibility")
Returns: Guidelines, do/don't examples, code samples, severity rating
Common Anti-Patterns (DO NOT DO)
Professional UI avoids these frequently overlooked issues:
Icons & Visual Elements
| Rule |
✅ Do |
❌ Don't |
| No emoji icons |
Use SVG icons (Heroicons, Lucide, Simple Icons) |
Use emojis like 🎨 🚀 ⚙️ as UI icons |
| Stable hover states |
Use color/opacity transitions on hover |
Use scale transforms that shift layout |
| Correct brand logos |
Research official SVG from Simple Icons |
Guess or use incorrect logo paths |
| Consistent icon sizing |
Use fixed viewBox (24x24) with w-6 h-6 |
Mix different icon sizes randomly |
Interaction & Cursor
| Rule |
✅ Do |
❌ Don't |
| Cursor pointer |
Add cursor-pointer to all clickable/hoverable cards |
Leave default cursor on interactive elements |
| Hover feedback |
Provide visual feedback (color, shadow, border) |
No indication element is interactive |
| Smooth transitions |
Use transition-colors duration-200 |
Instant state changes or too slow (>500ms) |
Light/Dark Mode Contrast
| Rule |
✅ Do |
❌ Don't |
| Glass card light mode |
Use bg-white/80 or higher opacity |
Use bg-white/10 (too transparent) |
| Text contrast light |
Use #0F172A (slate-900) for text |
Use #94A3B8 (slate-400) for body text |
| Muted text light |
Use #475569 (slate-600) minimum |
Use gray-400 or lighter for body text |
| Border visibility |
Use border-gray-200 in light mode |
Use border-white/10 (invisible) |
Layout & Spacing
| Rule |
✅ Do |
❌ Don't |
| Floating navbar |
Add top-4 left-4 right-4 spacing |
Stick navbar to top-0 left-0 right-0 |
| Content padding |
Account for fixed navbar height |
Let content hide behind fixed elements |
| Consistent max-width |
Use same max-w-6xl or max-w-7xl |
Mix different container widths per page |
Pre-Delivery Checklist
Before delivering UI code, verify ALL items:
Visual Quality
Interaction
Light/Dark Mode
Layout
Accessibility
Performance
1---2name: ui-ux-pro-max3description: UI/UX design intelligence. 50 styles, 21 palettes, 50 font pairings, 20 charts, 9 stacks (React, Next.js, Vue, Svelte, SwiftUI, React Native, Flutter, Tailwind, shadcn/ui). Actions: plan, build, create, design, implement, review, fix, improve, optimize, enhance, refactor, check UI/UX code. Projects: website, landing page, dashboard, admin panel, e-commerce, SaaS, portfolio, blog, mobile app, .html, .tsx, .vue, .svelte. Elements: button, modal, navbar, sidebar, card, table, form, chart. Styles: glassmorphism, claymorphism, minimalism, brutalism, neumorphism, bento grid, dark mode, responsive, skeuomorphism, flat design. Topics: color palette, accessibility, animation, layout, typography, font pairing, spacing, hover, shadow, gradient. Integrations: shadcn/ui MCP for component search and examples.4---56# UI/UX Pro Max Skill78## Overview9This skill provides access to a comprehensive design database via native Mastra tools.10All design recommendations MUST come from tool queries - never from LLM memory.1112## Available Tools1314### getStyleRecommendations15Search 67+ UI styles by product type, industry, and keywords.1617**Query examples:**18- "fintech dashboard minimal"19- "healthcare monitoring dark"20- "startup saas bold"21- "enterprise corporate professional"22- "voice ai cyber glass"2324**Returns:** Style category, colors (hex), effects, complexity rating, implementation checklist.2526### getTypographyRecommendations27Search 57+ font pairings by style, mood, and use case.2829**Query examples:**30- "professional corporate"31- "modern tech startup"32- "friendly approachable"33- "premium luxury"3435**Returns:** Font pairings (heading + body), weights, line heights, use cases.3637### getChartRecommendations38Search 25+ chart types by data pattern and visualization goal.3940**Query examples:**41- "time series trend"42- "comparison categories"43- "part-to-whole percentage"44- "geographic distribution"4546**Returns:** Chart type, secondary options, color guidance, accessibility notes, library recommendations.4748### getProductRecommendations49Search industry-specific design patterns.5051**Query examples:**52- "crm dashboard"53- "voice ai analytics"54- "workflow automation"55- "healthcare monitoring"5657**Returns:** Primary style recommendation, landing page pattern, dashboard style, key considerations.5859### getUXGuidelines60Search 98+ UX best practices by category and platform.6162**Query examples:**63- "mobile navigation"64- "form validation"65- "accessibility wcag"66- "dashboard layout"6768**Returns:** Guideline, do/don't examples, code samples, severity rating.6970## Usage Rules71721. **ALWAYS** call tools before giving design advice732. **NEVER** invent design values - use only what tools return743. Reference specific values from results (hex codes, font names, style names)754. If tools return empty, suggest broadening the query765. Combine multiple tool results for comprehensive recommendations7778## Data Sources79- styles.csv: 67 UI styles with colors, effects, complexity80- typography.csv: 57 font pairings with weights, use cases81- charts.csv: 25 chart types with accessibility notes82- products.csv: Industry-specific design patterns83- ux-guidelines.csv: 98 UX best practices8485---8687## Design System Workflow8889### Generate Complete Design System90**Always start by generating a complete design system** before individual domain searches:9192**Query Pattern:**93```94getProductRecommendations("<product_type> <industry>")95+ getStyleRecommendations("<product_type> <style_keywords>")96+ getTypographyRecommendations("<style_keywords>")97+ getChartRecommendations("<data_type>") [if dashboard]98+ getUXGuidelines("<platform> <category>")99```100101**Example:**102```103User: "Create a fintech dashboard with dark mode"1041051. getProductRecommendations("fintech dashboard")106 → Returns: Industry-specific design direction1071082. getStyleRecommendations("fintech dark minimal professional")109 → Returns: Style category, hex colors, effects, complexity1101113. getTypographyRecommendations("professional modern corporate")112 → Returns: Font pairings, weights, line heights1131144. getChartRecommendations("time series trend comparison")115 → Returns: Chart types, color palettes, libraries1161175. getUXGuidelines("dashboard layout dark mode accessibility")118 → Returns: Best practices, anti-patterns, code samples119```120121### Design System Output Structure122A complete design system includes:1231. **Pattern** - Landing page structure (hero-centric, testimonial-driven, etc.)1242. **Style** - Visual direction (glassmorphism, minimalism, etc.) with hex colors1253. **Colors** - Primary, secondary, accent, background, text colors1264. **Typography** - Heading font + body font with weights and line heights1275. **Effects** - Shadows, borders, animations, glassmorphism values1286. **Anti-patterns** - What to avoid for this product type129130### Persist Design System (Master + Overrides Pattern)131**For multi-page projects**, persist the design system for consistency:132133**Concept:**134- `design-system/MASTER.md` → Global Source of Truth (all design rules)135- `design-system/pages/` → Page-specific overrides (deviations from Master)136137**Hierarchical Retrieval Logic:**1381. When building a specific page (e.g., "dashboard"), first check `design-system/pages/dashboard.md`1392. If page file exists, its rules **override** the Master file1403. If page file doesn't exist, use `design-system/MASTER.md` exclusively141142**When to Create Master:**143- User confirms a design system for the entire project144- Multiple pages will share the same design language145146**When to Create Page Override:**147- User requests page-specific style (e.g., "Make checkout page simpler")148- Page has different density/spacing requirements149- Page has different color emphasis (e.g., success green for confirmation)150151**Content Structure:**152153**MASTER.md:**154```markdown155# [Project Name] Design System156157## Style158- Category: Glassmorphism159- Primary: #667eea160- Effects: backdrop-blur-md, bg-white/10161- Dark mode primary: #818cf8162163## Typography164- Heading: Inter Bold (700, 800)165- Body: Inter Regular (400, 500)166- Line height: 1.5167168## Spacing169- Density: Comfortable170- Card padding: p-6171- Section gaps: space-y-8172173## Components174- Border radius: rounded-xl175- Shadow: shadow-lg176- Hover: scale-105, transition-300ms177```178179**pages/dashboard.md:**180```markdown181# Dashboard Page Overrides182183## Spacing (OVERRIDE)184- Density: Compact (data-heavy)185- Card padding: p-4186- Section gaps: space-y-4187188## Components (OVERRIDE)189- Border radius: rounded-lg (sharper for data tables)190- Charts: Use consistent color palette from MASTER191```192193### Supplement with Domain Searches194After establishing the design system, use domain searches for specific needs:195196**When to Search Additional Domains:**197| Need | Domain | Example Query |198|------|--------|---------------|199| Alternative styles | `style` | "brutalism bold high-contrast" |200| More font options | `typography` | "elegant luxury serif" |201| Chart variations | `chart` | "funnel conversion visualization" |202| UX validation | `ux` | "mobile touch targets animation" |203| Industry patterns | `product` | "healthcare HIPAA compliance" |204205---206207## Quick Reference by Priority208209When designing or reviewing UI, apply these guidelines in priority order:210211| Priority | Category | Impact | Key Rules |212|----------|----------|--------|-----------|213| 1 | Accessibility | CRITICAL | 4.5:1 contrast, focus states, alt text, aria-labels, keyboard nav |214| 2 | Touch & Interaction | CRITICAL | 44x44px targets, cursor-pointer, hover feedback, loading states |215| 3 | Performance | HIGH | WebP images, lazy loading, reduced-motion, no content jumping |216| 4 | Layout & Responsive | HIGH | Mobile-first, 16px min font, no horizontal scroll, z-index scale |217| 5 | Typography & Color | MEDIUM | 1.5-1.75 line height, 65-75 char lines, font pairing |218| 6 | Animation | MEDIUM | 150-300ms duration, transform/opacity only, skeleton screens |219220### Critical Rules (Always Check)221222**Accessibility:**223- `color-contrast`: Minimum 4.5:1 ratio for normal text224- `focus-states`: Visible focus rings on all interactive elements225- `alt-text`: Descriptive alt text for meaningful images226- `aria-labels`: Required for icon-only buttons227- `keyboard-nav`: Tab order matches visual order228- `form-labels`: Use label with for attribute229230**Touch & Interaction:**231- `touch-target-size`: Minimum 44x44px touch targets232- `cursor-pointer`: Add to all clickable/hoverable elements233- `hover-feedback`: Clear visual feedback (color, shadow, border)234- `loading-buttons`: Disable during async operations235- `error-feedback`: Clear error messages near problem236237**Performance:**238- `image-optimization`: Use WebP, srcset, lazy loading239- `reduced-motion`: Check prefers-reduced-motion media query240- `content-jumping`: Reserve space for async content241242---243244## Domain Search Guide245246Use these domains to get specific design recommendations:247248| Domain | Use For | Example Keywords | Tool |249|--------|---------|------------------|------|250| `product` | Product type recommendations | SaaS, e-commerce, portfolio, healthcare, beauty | getProductRecommendations |251| `style` | UI styles, colors, effects | glassmorphism, minimalism, dark mode, brutalism | getStyleRecommendations |252| `typography` | Font pairings, Google Fonts | elegant, playful, professional, modern | getTypographyRecommendations |253| `color` | Color palettes by product type | saas, ecommerce, healthcare, beauty, fintech | getStyleRecommendations |254| `chart` | Chart types, library recommendations | trend, comparison, timeline, funnel, pie | getChartRecommendations |255| `ux` | Best practices, anti-patterns | animation, accessibility, z-index, loading | getUXGuidelines |256257### When to Use Each Domain258259**Start with `product`:** Get industry-specific design direction260```261getProductRecommendations("voice ai analytics dashboard")262Returns: Primary style, landing pattern, dashboard style, key considerations263```264265**Follow with `style`:** Get detailed visual direction266```267getStyleRecommendations("fintech minimal professional")268Returns: Style category, hex colors, effects, complexity rating, checklist269```270271**Add `typography`:** Get font pairings272```273getTypographyRecommendations("professional corporate modern")274Returns: Heading + body fonts, weights, line heights, use cases275```276277**Include `chart`:** For data visualization278```279getChartRecommendations("time series trend comparison")280Returns: Chart types, secondary options, color guidance, libraries281```282283**Check `ux`:** For best practices284```285getUXGuidelines("mobile navigation accessibility")286Returns: Guidelines, do/don't examples, code samples, severity rating287```288289---290291## Common Anti-Patterns (DO NOT DO)292293Professional UI avoids these frequently overlooked issues:294295### Icons & Visual Elements296| Rule | ✅ Do | ❌ Don't |297|------|-------|----------|298| **No emoji icons** | Use SVG icons (Heroicons, Lucide, Simple Icons) | Use emojis like 🎨 🚀 ⚙️ as UI icons |299| **Stable hover states** | Use color/opacity transitions on hover | Use scale transforms that shift layout |300| **Correct brand logos** | Research official SVG from Simple Icons | Guess or use incorrect logo paths |301| **Consistent icon sizing** | Use fixed viewBox (24x24) with w-6 h-6 | Mix different icon sizes randomly |302303### Interaction & Cursor304| Rule | ✅ Do | ❌ Don't |305|------|-------|----------|306| **Cursor pointer** | Add `cursor-pointer` to all clickable/hoverable cards | Leave default cursor on interactive elements |307| **Hover feedback** | Provide visual feedback (color, shadow, border) | No indication element is interactive |308| **Smooth transitions** | Use `transition-colors duration-200` | Instant state changes or too slow (>500ms) |309310### Light/Dark Mode Contrast311| Rule | ✅ Do | ❌ Don't |312|------|-------|----------|313| **Glass card light mode** | Use `bg-white/80` or higher opacity | Use `bg-white/10` (too transparent) |314| **Text contrast light** | Use `#0F172A` (slate-900) for text | Use `#94A3B8` (slate-400) for body text |315| **Muted text light** | Use `#475569` (slate-600) minimum | Use gray-400 or lighter for body text |316| **Border visibility** | Use `border-gray-200` in light mode | Use `border-white/10` (invisible) |317318### Layout & Spacing319| Rule | ✅ Do | ❌ Don't |320|------|-------|----------|321| **Floating navbar** | Add `top-4 left-4 right-4` spacing | Stick navbar to `top-0 left-0 right-0` |322| **Content padding** | Account for fixed navbar height | Let content hide behind fixed elements |323| **Consistent max-width** | Use same `max-w-6xl` or `max-w-7xl` | Mix different container widths per page |324325---326327## Pre-Delivery Checklist328329Before delivering UI code, verify ALL items:330331### Visual Quality332- [ ] No emojis used as icons (use SVG instead)333- [ ] All icons from consistent set (Heroicons/Lucide/Simple Icons)334- [ ] Brand logos are correct (verified from Simple Icons)335- [ ] Hover states don't cause layout shift (no scale transforms)336- [ ] Use theme colors directly (bg-primary) not var() wrapper337338### Interaction339- [ ] All clickable elements have `cursor-pointer`340- [ ] Hover states provide clear visual feedback341- [ ] Transitions are smooth (150-300ms)342- [ ] Focus states visible for keyboard navigation343- [ ] Loading states disable buttons during async344345### Light/Dark Mode346- [ ] Light mode text has sufficient contrast (4.5:1 minimum)347- [ ] Glass/transparent elements visible in light mode (bg-white/80+)348- [ ] Borders visible in both modes349- [ ] Test both modes before delivery350351### Layout352- [ ] Floating elements have proper spacing from edges (top-4, not top-0)353- [ ] No content hidden behind fixed navbars354- [ ] Responsive at 375px, 768px, 1024px, 1440px355- [ ] No horizontal scroll on mobile356357### Accessibility358- [ ] All images have descriptive alt text359- [ ] Form inputs have associated labels360- [ ] Color is not the only indicator of state361- [ ] `prefers-reduced-motion` respected for animations362- [ ] Minimum 44x44px touch targets on mobile363364### Performance365- [ ] Images optimized (WebP, lazy loading, srcset)366- [ ] No content layout shift (CLS)367- [ ] Animations use transform/opacity (not width/height)