# Start from mockups & PDFs

> Attach up to 8 Figma exports, hand-drawn sketches, brand PDFs, or product photos via + so turn one matches your real aesthetic and business content.

- Canonical: https://exaspark.ai/docs/starting-from-references/

## Why reference files outperform long visual descriptions

Visual adjectives are notoriously imprecise. Words like `"clean, modern, warm minimal"` describe fifty unrelated sites, from a Nordic furniture shop to a dark SaaS dashboard. Writing three paragraphs about layout spacing still leaves room for guesswork.

Attaching real reference files removes that guesswork immediately. Click **+** in the ExaSpark composer (across **Web Studio**, **Mobile Web**, or the **Desktop App**) to attach up to **8 files** per turn. ExaSpark reads proportions, palette contrast, typography rhythm, and real product details directly on turn one.

Uploading authentic logos, studio photos, or printed price sheets also prevents filler text and generic stock imagery from ever entering your build.

## Supported reference types and the 8-file budget

Every turn supports up to **8 attachments**. Budget those slots across distinct roles rather than uploading eight overlapping screenshots of one page.

| Reference file type | Ideal slots | What ExaSpark extracts accurately | Best starting mode |
| --- | --- | --- | --- |
| **Figma / design frame PNGs** | 1–3 slots | Grid spacing, card hierarchy, surface tones, and type scale | **Design**, **Web**, or **App** |
| **Hand-drawn paper or whiteboard sketch** | 1–2 slots | Section order, button placement, navigation, and user flow | **Design** or **App** |
| **Brand guideline PDF / logo pack** | 1–2 slots | Exact logo lockup, hex palette, font direction, and tone | Any mode |
| **Product or team photography** | 2–4 slots | Real hero banners, product cards, and gallery shots embedded directly | **Web**, **App**, or **Image** |
| **Menu, rate card, or catalog PDF** | 1 slot | Authentic service names, descriptions, durations, and prices | **Web** or **App** |
| **Layout inspiration screenshot** | 1–2 slots | Whitespace rhythm and card density (never copied branding) | **Design** |

> **Note:** **Keep inspiration original:** Use external screenshots strictly for pacing or grid ideas. Supply your own brand name, original copy, color identity, and imagery — never copy another brand's trademarks or copyrighted assets.

## Preparing high-signal attachments before uploading

Two minutes of clean file prep sharply boosts turn-one precision and avoids follow-up turns fixing misread details.

### Export individual Figma frames cleanly

Skip zoomed-out screenshots of an entire Figma canvas. Export key screens (`Homepage Desktop 1440px`, `Pricing Section`, `Mobile 390px`) as crisp **2x PNG** files so small button labels, borders, and spacing stay razor-sharp.

### Crop tall webpages into viewport sections

Ultra-tall 10,000-pixel full-page captures compress tiny fonts and subtle dividers into blurs. Take two or three viewport-height crops — **Hero**, **Core Grid**, and **Pricing / Checkout** — so every pixel carries clear visual signal.

### Photograph hand-drawn sketches cleanly

Sketches excel at mapping custom workflows fast without locking premature visual polish:

- **Use dark ink on plain paper** (or a clean digital board) for high line contrast.
- **Label every box with real actions** (`"Filter by date"`, `"Book ($45)"`, `"Admin Roster"`) instead of blank squiggles.
- **Shoot straight down in bright even light** and crop desk clutter before attaching via **Mobile Web** camera roll or Desktop drag-and-drop.

### Trim long brand or catalog PDFs

Extract just the **2–4 relevant pages** (palette, typography, logo rules, and service pricing) from a 60-page brand manual before uploading so ExaSpark locks onto exact hex codes and prices cleanly.

## Assigning explicit roles to every attachment

Never drop six images into chat and type `"Build my site like this."` If two images use conflicting palettes, ExaSpark has to guess which controls color and which controls layout.

Map each file to one clear job right inside your prompt:

```text
Attachment role map:
1. Logo & brand PDF  -> exact mark, hex palette, and typography voice
2. Layout reference  -> section rhythm, spacing, and card density ONLY
3. Real photography  -> place directly inside hero and catalog cards
4. Pricing/menu PDF  -> extract exact service titles, durations, and prices
5. Explicit overrides -> anything you want changed from the reference
```

### Example: Starting in Design mode from a sketch, brand PDF, and photos

Start in **Design** mode when you have real brand assets and a rough sketch yet want to compare two polished concepts before wiring tables:

> **Example prompt (Design):** Create two visual directions for Solis Ceramic Studio using the 5 attached files. Use `solis-logo.png` and `brand-sheet.pdf` for our terracotta accent, warm oat surface, and logo lockup. Follow the section flow in `homepage-sketch.jpg` (hero, 3 upcoming wheel-throwing workshops, gallery, FAQ). Place `studio-hero.jpg` and `bowl-set.jpg` directly in the hero and cards. Replace the script font in the brand sheet with a crisp editorial serif paired with a clean sans-serif body font.

### Example: Going straight to App mode from Figma frames and a menu PDF

When visual design is finalized in Figma, jump straight into **App** mode and pair layout fidelity with real database and checkout logic:

> **Example prompt (App):** Build our bakery pre-order app matching the 3 attached Figma frames (`hero-desktop.png`, `menu-grid.png`, `checkout-mobile.png`) for spacing, hierarchy, and button styling. Load every pastry name, allergen tag, and dollar price from `weekend-menu.pdf` into a Cloud `products` table (stored in integer cents). Add customer login, pickup slot selection capped at 15 orders per 30-minute window on the server, and Stripe Test checkout.

## Step-by-step workflow: From mockup to live preview

1. **Curate up to 8 focused files** — Pair your logo, 1–3 cropped mockups or sketches, 2–3 real photos, and 1 pricing PDF when relevant.
2. **Attach via + in the composer** — Upload from Finder/Explorer in **Web Studio** or **Desktop App**, or straight from your phone camera roll on **Mobile Web**.
3. **Write a role-mapped prompt** — Name which file governs brand colors, which guides layout, which photos go live in UI, and any intentional overrides.
4. **Verify real content on turn one** — Check **Design Canvas** or **Preview** to confirm exact prices, product titles, and logo proportions transferred cleanly without placeholders.
5. **Add remaining media in batches** — Build core screens with your top 6–8 shots first, then upload extra gallery photos on turn two or directly into **Cloud** [File storage](https://exaspark.ai/docs/file-storage/).

## Polishing raw photos and locking consistency

Authentic phone photos often outperform stock imagery for buyer trust, yet cluttered backgrounds can weaken product grids:

- **Run transparent cutouts on Starter+.** On **Starter** (`$4.99/mo` or `$3.99/mo` annually) and **Pro**, open **Image** mode to create clean transparent **cutouts** or unified studio lighting from phone shots. See [Creative Studio](https://exaspark.ai/docs/media/).
- **Swap single visuals with click-to-edit.** Replace one hero image or adjust crop alignment inside **Preview** without triggering a full code turn.
- **Save persistent brand rules.** Store key palette hexes and tone guidelines inside [Project instructions](https://exaspark.ai/docs/project-instructions/) so turn 20 matches turn 1.

## Common attachment pitfalls and fixes

| Symptom | Likely cause | Fastest fix |
| --- | --- | --- |
| **Output mixed two clashing aesthetics** | Multiple inspiration shots uploaded without explicit file roles | Re-prompt assigning one file strictly to color/font tokens and another strictly to layout |
| **Small mockup text was misread** | Ultra-tall full-page capture compressed fine typography | Export individual viewport sections at 2x PNG and re-upload |
| **Placeholder items replaced PDF menu** | Attached PDF without asking to populate the **Cloud** table | Prompt: `"Replace sample rows in the Cloud menu table with exact names and prices from menu.pdf"` |
| **Need more than 8 reference assets** | Composer caps attachments at 8 files per turn | Upload hero + brand files on turn 1; add extra assets on turn 2 or via **Cloud** storage |
| **Logo looks tiny or clipped in navbar** | Square logo file contained oversized blank padding | Crop tight margins around your transparent PNG/SVG logo and re-attach |

## Next steps

- [Design Canvas](https://exaspark.ai/docs/design-canvas/) — Compare visual directions side by side and freeze reusable design tokens.
- [Writing good prompts](https://exaspark.ai/docs/prompting/) — Combine structured prompts with attachments for crisp first-turn builds.
- [File storage](https://exaspark.ai/docs/file-storage/) — Organize public storefront media and private user uploads inside Cloud.

## From the blog

- [Design before you build](https://exaspark.ai/blog/design-before-you-build/) — Why visual exploration upfront prevents expensive full-app redesigns.
- [How to describe your app](https://exaspark.ai/blog/describe-your-app/) — Practical templates for turning messy ideas into clear product specs.
- [What to put on a homepage](https://exaspark.ai/blog/what-to-put-on-a-homepage/) — Section-by-section blueprint for high-converting launch pages.
