---
name: visualize-design-moodboard
description: Generate a professional design moodboard as a self-contained HTML file from a DESIGN.md or design brief. Covers color palette, typography specimens, brand assets, photo direction, UI patterns, design rationale, and section rhythm. For client presentations and internal alignment.
model: opus
allowed-tools:
  - Read
  - Write
  - Edit
  - Glob
  - Grep
  - Bash
  - WebFetch
  - Agent
---

# Moodboard Generator

Create a professional, client-ready design moodboard as a self-contained HTML file.

## When to Use

- After defining a design system (DESIGN.md) and before building
- To align with a client on visual direction
- To document and communicate design decisions
- As a deliverable alongside an offer/proposal

## Input

Look for design context in this priority order:

1. **DESIGN.md** in the project root or current directory
2. **design-system.md**, **brand.md**, or similar files
3. **Brand assets** in the project (logo, mascot, icons — search for `*.png`, `*.svg`, `*.jpg` in common paths)
4. If nothing found, ask the user for: brand name, colors, fonts, and any assets

## Output

A single self-contained HTML file: `moodboard-{project-slug}.html`

The file must:
- Be viewable by opening in any browser (no build step)
- Load fonts from Google Fonts / Fontshare CDN
- Reference local images via relative paths
- Include print CSS for PDF export
- Be responsive (usable on tablet/mobile)

## Moodboard Sections (in order)

### 1. Header
- Project/brand name
- One-line positioning statement
- 3-5 brand attributes as keywords (e.g. "Professional · Warm · Premium · Established")

### 2. Brand Assets
- Logo (on appropriate background — remove white backgrounds from PNGs if needed)
- Mascot or illustration assets (if any)
- Certification badges, trust marks (if any)
- Show assets at uniform height in a horizontal row

### 3. Color Palette
- **Core colors** as large swatches with name, hex, and role (Primary, Accent, Hover, etc.)
- **Surface palette** (backgrounds) if defined
- **Section rhythm strip** showing the alternation pattern (e.g. Mist → White → Mist → White → CTA → Footer)
- All swatches in a single connected row with rounded corners

### 4. Design Rationale
- 2-3 paragraphs explaining WHY these design decisions were made
- Address likely client questions proactively:
  - Why this color palette over alternatives?
  - Why do the fonts differ from the logo?
  - What's the long-term vision?
- Use `<strong>` for question headings, body text in a card
- **Psychology**: rationale builds Authority and preempts objections

### 5. Typography Specimens
- **Two cards side by side**: Display font (left) and Body font (right)
- Each card shows:
  - Font name as label with teal underline
  - Full alphabet (AaBb...Zz) in the font
  - Numbers + special chars (0-9, äöüß, €)
  - Sample sentence in the font at display size
  - Weight scale showing all available weights
- Use REAL project content, never lorem ipsum

### 6. Type Scale
- Show the full size scale (72px down to 12px) with real headlines and body text
- Each row: size label (mono) + sample text at that size
- Body sizes switch to the body font, display sizes use the display font
- Overflow handling: `text-overflow: ellipsis` for long lines

### 7. Contrast Principle (if logo uses different typography than the site)
- Logo image next to explanation text
- Explain the intentional contrast between logo typography and website typography
- Frame as a strength, not an inconsistency

## Design Rules for the Moodboard Itself

### Use Only On-System Colors
The moodboard must practice what it preaches. Every color used in the moodboard's own design (backgrounds, borders, dividers, text) must come from the project's design system. No `#ddd`, `#f5f5f5`, `#f0f0f0`, or other off-system grays.

For borders and dividers, derive from the primary color:
- Light divider: `rgba(primary, 0.06-0.1)`
- Card border: `rgba(0,0,0,0.06)` or `rgba(primary, 0.08)`

### Section Rhythm
Alternate section backgrounds to demonstrate the project's actual section rhythm:
- Section 1: Surface color (e.g. Teal Mist)
- Section 2: White
- Section 3: Surface color
- Section 4: White
- This IS the deliverable showing the rhythm, not just a decoration choice

### Cards on White Sections
When cards have white backgrounds on white section backgrounds, add visible borders (`1px solid rgba(0,0,0,0.06)`) and slightly stronger shadows.

### Typography
- Use the project's own fonts for the moodboard content
- Section labels: Mono font, tiny, uppercase, tracked
- Card labels: Mono font with primary-color underline

### Brand Asset Backgrounds
Remove white backgrounds from PNGs before displaying on non-white surfaces:
```python
from PIL import Image
import numpy as np
img = Image.open('logo.png').convert('RGBA')
data = np.array(img)
white_mask = (data[:,:,0] > 230) & (data[:,:,1] > 230) & (data[:,:,2] > 230)
data[white_mask, 3] = 0
Image.fromarray(data).save('logo.png')
```

### Responsive
Include `@media` breakpoints:
- 768px: stack grids to single column, wrap palette swatches
- 480px: reduce font sizes, stack brand assets

### Print CSS
Include `@media print` with:
- `print-color-adjust: exact` on colored surfaces
- White body background
- Preserve section alternation colors

## What NOT to Include

Based on research from NNGroup, Pentagram case studies, and agency best practices:

1. **No full-page mockups** — moodboards are directional, not final. Mockups make clients think the design is locked.
2. **No implementation details** — no code snippets, no CSS specs, no breakpoint tables. Save that for the design system doc.
3. **No lorem ipsum** — always use real project content. Lorem signals laziness.
4. **No random inspiration images** — every image must support the defined direction. If it doesn't have a reason, remove it.
5. **No emoji as design elements** — rockets, sparkles, and pointing fingers are AI slop signals.
6. **No jargon paragraphs** — tight copy only. If the board needs paragraphs to explain itself, the visuals aren't working.
7. **No UI component demos** — no button previews, no form mockups. That's for a component library, not a moodboard.
8. **No browser frame mockups** — the moodboard should feel like a design artifact, not a website screenshot.
9. **No more than 2 typefaces** in the moodboard's own design (matching the project's display + body fonts).
10. **No decorative elements** — no blobs, gradients, wavy dividers, or ornamental shapes that aren't part of the design system.

## Psychology of Effective Moodboards

Apply these principles in the board's structure:

| Principle | Application |
|-----------|-------------|
| **Anchoring** | Place the strongest visual (hero color, logo) first to anchor expectations |
| **Authority** | Include rationale for decisions — "we chose X because Y" signals expertise |
| **IKEA Effect** | Invite client input in the email: "If you'd like to adjust..." creates co-ownership |
| **Contrast Effect** | "Why NOT warm tones" section makes the chosen direction feel more deliberate |
| **Commitment & Consistency** | Getting agreement on the moodboard makes it harder to reject the final design |
| **Peak-End Rule** | Strong opening (brand assets + palette) and strong close (contrast principle) |

## Workflow

1. Read DESIGN.md (or equivalent)
2. Find and inventory brand assets (logo, mascot, badges)
3. Remove white backgrounds from PNGs if needed
4. Create white/inverted versions of logos for dark backgrounds if needed
5. Generate the HTML moodboard with all sections
6. Open in browser for review
7. Iterate based on feedback

## Example Invocation

User says: "Erstelle ein Moodboard" / "Create a moodboard" / "Moodboard für [Projekt]"

→ Read DESIGN.md → Find assets → Generate `moodboard-{slug}.html` → Open in browser
