Mockup Image Best Practices: Professional Prototyping Techniques

May 28, 20268 min read

Why Mockup Image Quality Matters

A mockup is only as convincing as the images it contains. Sloppy placeholders — mismatched sizes, random photos, no labels — undermine stakeholder trust and hide layout problems. Professional mockup images follow conventions that communicate intent, reduce ambiguity, and make the transition to production smoother.

This guide covers techniques that experienced designers use to make mockups clear, consistent, and developer-friendly.

Color-Coded Placeholders by Section

One of the most effective techniques is assigning distinct background colors to placeholder images based on their UI section. This makes the structure of a page immediately visible at a glance.

SectionSuggested ColorHex
Hero / BannerBlue#3b82f6
Product CardsGreen#22c55e
TestimonialsPurple#a855f7
FooterGray#6b7280
NavigationDark slate#334155
Call-to-ActionOrange#f97316

When a developer sees a blue placeholder, they know it maps to the hero slot. When they see green, they know it is a product card image. This removes guesswork from the handoff process.

<!-- Color-coded placeholder for hero section -->
<svg width="1600" height="900" xmlns="http://www.w3.org/2000/svg">
  <rect width="100%" height="100%" fill="#3b82f6"/>
  <text x="50%" y="50%" text-anchor="middle"
        dominant-baseline="middle"
        font-family="sans-serif" font-size="32" fill="white">
    HERO — 1600 × 900
  </text>
</svg>

Aspect Ratio Consistency

Inconsistent aspect ratios across similar components create visual noise. If product cards use a 4:3 ratio on one row and 1:1 on the next, the layout looks disorganized — and the production images will look just as inconsistent.

Rules to Follow

  • Define one aspect ratio per component type and document it
  • Use CSS aspect-ratio to enforce ratios during development
  • Test with images that are slightly off-ratio to verify cropping behavior
.product-card-img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
}
<!-- The browser reserves correct space even before the image loads -->
<img class="product-card-img"
     src="/placeholder-product.png"
     alt="Product image placeholder"
     width="400" height="300">

The aspect-ratio CSS property works alongside width and height attributes. The attribute values set the intrinsic ratio; the CSS property ensures the element respects it even when the source image has different proportions.

Responsive Breakpoint Planning

Placeholder images must account for how images scale across breakpoints. A 1600 px wide hero image works on desktop but wastes bandwidth on mobile. Plan sizes for each major breakpoint.

BreakpointHero WidthCard WidthAvatar
Mobile (<640px)640 px320 px64 px
Tablet (640–1024px)1024 px400 px96 px
Desktop (>1024px)1600 px480 px128 px

Use the <picture> element or srcset to serve appropriate sizes:

<img srcset="/placeholder-hero-640.jpg 640w,
             /placeholder-hero-1024.jpg 1024w,
             /placeholder-hero-1600.jpg 1600w"
     sizes="(max-width: 640px) 100vw,
            (max-width: 1024px) 100vw,
            1600px"
     src="/placeholder-hero-1600.jpg"
     alt="Hero image placeholder"
     width="1600" height="900">

Testing responsive images with correctly sized placeholders ensures your srcset and sizes attributes work before real assets arrive.

Communicating with Developers Through Labels

Placeholder labels bridge the gap between design intent and implementation. A label should answer three questions: what is this, what size is it, and where does it come from?

Label Convention

[Section] — [Width]×[Height] — [Source]

Examples:

  • HERO — 1600×900 — CMS
  • PRODUCT — 400×400 — PIM
  • AVATAR — 128×128 — Upload

Including the source tells developers whether the image comes from a CMS, a product information management system, or user uploads. This affects how the front-end fetches and caches the image.

SVG Label Template

<svg width="400" height="300" xmlns="http://www.w3.org/2000/svg">
  <rect width="100%" height="100%" fill="#22c55e"/>
  <text x="50%" y="45%" text-anchor="middle"
        dominant-baseline="middle"
        font-family="monospace" font-size="18" fill="white">
    PRODUCT
  </text>
  <text x="50%" y="58%" text-anchor="middle"
        dominant-baseline="middle"
        font-family="monospace" font-size="14" fill="rgba(255,255,255,0.8)">
    400 × 300 — PIM
  </text>
</svg>

Design Tool Integration

Figma

Figma supports image fills on any frame or shape. To maintain placeholder consistency across a project:

  1. Create a component library with placeholder frames at standard sizes
  2. Use Figma variables for placeholder colors so they stay in sync
  3. Plugin recommendation: Content Reel for bulk-inserting labeled placeholders

Sketch

Sketch handles placeholders through shared styles and symbols. Create a symbol for each image slot type (hero, card, avatar) with preset dimensions and a text override for the label.

Adobe XD

XD's Repeat Grid feature pairs well with placeholder images. Drop a set of correctly sized placeholder images into the grid, and XD repeats them across the layout automatically.

Replacing Placeholders in Production

The transition from placeholders to production images is a common failure point. Use this checklist to prevent issues:

  1. Audit every image slot — list every <img>, <picture>, and background-image in the project
  2. Verify dimensions — confirm production images match placeholder dimensions or use object-fit: cover
  3. Compress assets — run all production images through a compression tool before deploying
  4. Check lazy loading — ensure loading="lazy" works correctly with the new source URLs
  5. Validate alt text — placeholder alt text like "Placeholder hero image" must be replaced with descriptive alt text
  6. Remove placeholder URLs — scan for any references to placeholder API domains
# Quick grep for leftover placeholder URLs
grep -r "picsum.photos\|placehold.co\|via.placeholder.com" app/

Key Takeaways

  • Color-coded placeholders make page structure visible at a glance
  • Enforce one aspect ratio per component type and document it
  • Plan placeholder sizes for mobile, tablet, and desktop breakpoints
  • Label placeholders with section name, dimensions, and image source
  • Use design tool components and variables to keep placeholders consistent across a project
  • Follow a structured checklist when transitioning from placeholders to production images

Try It Yourself

Create labeled, color-coded placeholder images with exact dimensions using our free Placeholder Image Generator. Set width, height, background color, and overlay text in seconds.