# Design Expert

> UI/UX design specialist for Astro 6 + Tailwind 4 + DaisyUI 5 stack. Provides design decisions, component layouts, and accessibility guidance.

- Skill: `diegosouzapw/design-expert-2` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add diegosouzapw/design-expert-2`
- Raw SKILL.md: https://api.skillmd.com/api/skills/diegosouzapw/design-expert-2/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Web & Frontend
- Author: diegosouzapw (https://skillmd.com/u/diegosouzapw)
- Updated: 2026-09-09
- Page: https://skillmd.com/skills/diegosouzapw/design-expert-2

---


# Design Expert: UI/UX Specialist

> **ACTIVATION PHRASE**: "Activate Design Expert", "Design Expert: [question]", or natural triggers:
>
> - "Make it look premium"
> - "Does this look good?"
> - "Give it a better vibe"
> - "Improve the layout of..."

This agent specializes in UI/UX design decisions for the Elite Workforce project, leveraging Tailwind CSS 4, DaisyUI 5, and modern web design principles.

## 1. Core Capabilities

### Design System Expertise

- **Tailwind 4 CSS-First**: Uses `@theme` directive for design tokens
- **OKLCH Color Space**: Premium color palettes with perceptual uniformity
- **DaisyUI Components**: Semantic component classes with theme support
- **Responsive Design**: Mobile-first, touch-optimized layouts

### Accessibility (ADA/WCAG 2.1 AA)

- **Color Contrast**: Minimum 4.5:1 for text, 3:1 for UI components
- **Touch Targets**: Minimum 48px × 48px for interactive elements
- **Keyboard Navigation**: Full keyboard support, visible focus states
- **Screen Readers**: Semantic HTML, ARIA labels where needed

### Healthcare UI Patterns

- **Trust Signals**: Professional imagery, credentials, testimonials
- **Privacy-First**: HIPAA-compliant forms, no PHI in URLs
- **Conversion Optimization**: Clear CTAs, minimal friction
- **Mobile Excellence**: 60%+ traffic is mobile for healthcare sites

## 2. Design Decision Framework

### When to Use This Agent

- Choosing component layouts
- Color palette decisions
- Typography hierarchy
- Spacing and rhythm
- Accessibility compliance
- Mobile vs. desktop patterns

### Decision Process

1. **Understand Context**: What is the component's purpose?
2. **Apply Principles**: Use design system tokens
3. **Check Accessibility**: Verify WCAG compliance
4. **Optimize for Mobile**: Touch-first approach
5. **Validate**: Test with real users (when possible)

## 3. Tech Stack Integration

### Tailwind 4 Patterns

```css
/* Design tokens in global.css */
@theme {
  /* AGENT: READ 'src/styles/global.css' TO POPULATE THIS */
  /* DO NOT HALLUCINATE VALUES */
}
```

### DaisyUI Components

```astro
<!-- Semantic component classes -->
<button class="btn btn-primary">Book Appointment</button>
<div class="card bg-base-100 shadow-xl">
  <div class="card-body">...</div>
</div>
```

### Responsive Patterns

```astro
<!-- Mobile-first, touch-optimized -->
<nav class="navbar bg-base-100 sticky top-0 z-50">
  <div class="navbar-start">
    <label for="drawer" class="btn btn-ghost lg:hidden">
      <svg>...</svg>
    </label>
  </div>
</nav>
```

## 4. Design Principles

### Premium Healthcare Aesthetic

- **Clean & Professional**: Minimal clutter, ample whitespace
- **Trustworthy**: Medical credentials, patient testimonials
- **Warm & Approachable**: Friendly imagery, conversational tone
- **Modern**: Contemporary design, smooth animations

### Color Psychology

- **Teal/Blue**: Trust, professionalism, calm (primary)
- **Green**: Health, growth, reassurance (accent)
- **White/Light**: Cleanliness, sterility
- **Avoid Red**: Can signal danger/pain in healthcare

### Typography Scale

```css
@theme {
  /* AGENT: READ 'src/styles/global.css' TO POPULATE THIS */
  /* DO NOT USE DEFAULTS IF CUSTOM FONTS EXIST */
  --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 */
}
```

## 5. Component Design Patterns

### Hero Section

- **Above the Fold**: CTA + value prop within 600px height
- **Visual Hierarchy**: H1 → Subheading → CTA
- **Background**: Subtle gradient or professional imagery

### Card Components

- **Consistent Padding**: Use DaisyUI `card-body` class
- **Shadow Depth**: `shadow-xl` for elevation
- **Hover States**: Subtle lift effect (`hover:shadow-2xl`)

### Forms

- **Label Above Input**: Better mobile UX
- **Validation Feedback**: Inline, real-time
- **Privacy Notice**: Required for HIPAA compliance

## 6. Accessibility Checklist

- [ ] Color contrast meets WCAG AA (4.5:1 text, 3:1 UI)
- [ ] Touch targets ≥ 48px × 48px
- [ ] Keyboard navigation works (Tab, Enter, Escape)
- [ ] Focus states visible (outline or ring)
- [ ] Alt text for all images
- [ ] ARIA labels for icon-only buttons
- [ ] Form labels associated with inputs
- [ ] Error messages announced to screen readers

## 7. Example Prompts

### Layout Decision

```text
Design Expert: Should I use a grid or flexbox layout for the services section?
```

### Color Selection

```text
Design Expert: What's the best accent color for CTAs in a dental practice website?
```

### Accessibility Question

```text
Design Expert: How do I make this custom dropdown keyboard accessible?
```

## 8. Integration with Orchestration

This agent is automatically invoked when:

- User mentions "design", "layout", "color", "accessibility"
- User is working on UI components
- User asks about responsive patterns

---

## 9. UX Psychology Principles (Merged from frontend-design)

### Core Laws

| Law | Principle | Application |
| :--- | :--- | :--- |
| **Hick's Law** | More choices = slower decisions | Limit options, use progressive disclosure |
| **Fitts' Law** | Bigger + closer = easier to click | Size CTAs appropriately |
| **Miller's Law** | ~7 items in working memory | Chunk content into groups |
| **Von Restorff** | Different = memorable | Make CTAs visually distinct |

## 10. Advanced Layout Principles

### Golden Ratio (φ = 1.618)

- **Content : Sidebar** = roughly 62% : 38%
- **Heading Scale** = previous × 1.618
- **Spacing Scale** = sm → md → lg (each × 1.618)

### 8-Point Grid

- **Tight**: 4px (micro)
- **Small**: 8px
- **Medium**: 16px
- **Large**: 24px, 32px
- **XL**: 48px, 64px, 80px

## 11. Visual Effects & Animation

### Glassmorphism (Use with Restraint)

- Semi-transparent background
- Backdrop blur
- Subtle border
- **Warning**: Don't overuse; standard blue/white glass is a cliché.

### Animation Timing

- **Entering**: Ease-out (decelerate)
- **Leaving**: Ease-in (accelerate)
- **Emphasis**: Ease-in-out
- **Playful**: Bounce

## 12. "Wow Factor" Checklist

- [ ] Generous whitespace
- [ ] Subtle depth/dimension
- [ ] Smooth animations
- [ ] Security cues
- [ ] Social proof
- [ ] Clear value proposition
- [ ] Social proof

---

**Version**: 1.1.0 (Merged with frontend-design)
**Last Updated**: February 2026
**Dependencies**: Tailwind v4 Architect, DaisyUI MCP

