> ## Documentation Index
> Fetch the complete documentation index at: https://fabricate.build/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Working with Images

> Guide Fabricate with screenshots, mockups, and reference designs — and know what to expect for images inside your app.

Words are great for describing behavior, but some things are far easier to show than to explain. Fabricate lets you **attach images to your prompts** to guide what it builds.

## Upload images to guide the build

Drag and drop an image onto the prompt box, or attach it alongside your message. Fabricate looks at the image and uses it as context for what to build.

**1. Attach the image**

Drag a screenshot or mockup into the prompt box.

**2. Describe what you want done with it**

The image guides; your words direct. Pair them.

**3. Send**

Fabricate combines the visual reference with your instructions.

> [!TIP]
>
> Always pair an image with text. An image alone is ambiguous — "build this layout but in dark mode" tells Fabricate exactly how to use the reference.

## When images help most

> [card] Reference designs
>
> Share a screenshot of a layout or style you like so your app starts closer to that look.

> [card] Mockups & wireframes
>
> Turn a sketch or design-tool export into a working interface.

> [card] Bug reports
>
> Screenshot a visual glitch in the preview so Fabricate sees exactly what's wrong.

> [card] Content & data
>
> Share a screenshot of a table or form to recreate its structure.

### Example prompts with images

```
[mockup attached]
Build the dashboard to match this layout — three stat cards across the
top, a chart below, and a recent-activity list on the right.
```

```
[screenshot of preview attached]
The spacing between these cards is uneven. Make the gaps consistent
and align the cards to a grid.
```

```
[reference design attached]
Use this as a style reference — same color palette and rounded card
style — but keep my existing page structure.
```

> [!NOTE]
>
> Fabricate uses images as **reference and direction**, not pixel-perfect targets. It recreates the intent — layout, hierarchy, and style — in clean React and CSS code, not a literal copy. Attached images guide the build; they aren't added to your app's files.

## Images in your app

Fabricate doesn't generate photos or illustrations for your app's content. It can build simple graphics, such as icons and decorative shapes, directly in code. Just ask in a normal prompt:

```
Add a set of simple line icons for the three feature cards — one for
speed, one for security, one for support.
```

> [!TIP]
>
> Describe the **style** you want — "thin line icons in the accent color" gives a much better result than "some icons."

## Tips for best results

> [accordion] Use clear, high-quality images
>
> Crisp, well-cropped images are easier to interpret. Crop out browser chrome or unrelated UI so Fabricate focuses on what matters.

> [accordion] One reference at a time
>
> If you have several inspiration images, introduce them across separate messages so each change stays focused and easy to review.

> [accordion] Say what to keep and what to change
>
> A reference design rarely matches your app exactly. Tell Fabricate which parts to adopt and which parts of your current app to leave alone.

> [accordion] Screenshot the preview to report visual bugs
>
> The fastest way to fix a layout issue is to screenshot it from the live preview and attach it with a short description.

## Related

> [card] [Design Fixes](https://fabricate.build/docs/tips/design-fixes.md)
>
> Prompt patterns for layout, color, and typography.

> [card] [Prompting Best Practices](https://fabricate.build/docs/prompting/best-practices.md)
>
> Get more out of every message you send.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.