Skip to main content

Lesson 8 of 9

Imagery & Illustration - Photography, Illustrations & Empty States

Photography and illustration transform UI from purely functional to emotionally resonant. The right image communicates context and mood in milliseconds - faster than any text. But imagery used without a systematic approach creates visual inconsistency, performance problems, and brand dilution. This topic covers the strategic use of photography, illustration systems, and specialized imagery contexts like empty states and onboarding illustrations.

30 minBy Priygop Editorial TeamUpdated 2026Peer Reviewed & Verified

Photography in Product UI - Best Practices

  • Consistency in style: Define a photography style guide for your product. Variables to define: natural vs studio lighting, candid vs posed subjects, processing style (warm vintage vs cool modern vs naturalistic), composition focus (people vs objects vs environments). Mixing wildly different photography styles creates visual incoherence
  • Image quality and performance: Always use WebP format (30-40% smaller than JPEG with equivalent quality), implement lazy loading (images load as users scroll), provide appropriate srcset for responsive sizes, and compress images (target under 200KB for hero images, under 50KB for thumbnail-size images). Slow-loading images are a primary cause of page abandonment
  • Representation and diversity: Product photography that represents only one demographic alienates others. Intentionally include diversity in age, race, gender, ability, and body type in user-facing photography. Users see themselves reflected in imagery - or they don't
  • Avoid stock photo clichés: The handshake, the 'team around a laptop', the generic 'working professional' portraits - these communicate nothing specific and undermine credibility. Whenever possible, use real product screenshots, real team photos, and real customer or scenario photography. When you must use stock, choose authentic-feeling images: candid moments, realistic scenarios, genuine emotional expressions (not toothy-grin poses)
  • Image overlays for text legibility: When placing text over photographs, always add a semi-transparent dark overlay (rgba(0,0,0,0.4-0.6)) between the image and text. Without it, text contrast cannot be guaranteed across all image content - photos with light areas will make white text invisible

Illustration Systems in UI

Illustration has become a dominant UI trend in the 2020s - used for onboarding, empty states, error pages, feature highlights, and decorative backgrounds. Unlike photography, illustration doesn't require model releases, can depict any scenario, and can be branded precisely to your color palette. Types of illustration styles used in product design: Flat illustration (2D, solid fills, minimal detail) - clean and timeless, fast to produce, scales perfectly. Used by: Slack, Mailchimp, Dropbox in their onboarding flows. Isometric illustration (3D perspective, geometric forms) - technical and precise feeling, popular in fintech and developer tools. Used by Stripe, Figma, and many SaaS brands. Character illustration (mascots and human figures) - creates personality and emotional connection. Used in Duolingo's Duo owl, Headspace's guide illustrations. Abstract/geometric (shapes, gradients, geometric patterns) - versatile and brand-able, less literal than figurative illustration. Works for any brand. Consistency rule: all illustrations in a product must come from the same family - same line weight, same color palette subset, same level of detail. Never mix a flat 2D illustration with an isometric one on adjacent screens.

Diagram
Loading diagram…

Imagery & Illustration - Photography, Illustrations & Empty States: Visual guide and core principles.

Empty States - Designing for No Content

Empty states are screens or sections that have no user content to display. They occur at onboarding (new user, no data), post-deletion (user removed all items), after a failed search (no matching results), and for locked/premium features. Empty states are design opportunities - they're moments of transition where a well-crafted experience can delight users and guide them toward action. A great empty state has three elements: (1) An illustration or icon that sets the emotional tone. Onboarding empty states should feel welcoming and inviting. Error empty states should feel apologetic. (2) A clear headline that explains the state. 'You have no saved recipes yet' is better than 'Nothing here'. (3) A primary CTA that directly resolves the empty state: 'Browse recipes', 'Upload your first file', 'Add a contact'. The CTA should be the same primary button style used throughout the product - it's not a different type of action, just an action triggered from a different context. Common mistake: leaving blank white space for empty states with only text labels. Blank space communicates 'broken' to users. Even a simple illustration communicates 'this is intentional and we thought about this experience.'

Tip

Tip

Practice Imagery Illustration Photography Illustrations Empty States in small, isolated examples before integrating into larger projects. Breaking concepts into small experiments builds genuine understanding faster than reading alone.

Practice Task

Note

Practice Task - (1) Write a working example of Imagery Illustration Photography Illustrations Empty States from scratch without looking at notes. (2) Modify it to handle an edge case (empty input, null value, or error state). (3) Share your solution in the Priygop community for feedback.

Quick Quiz

Common Mistake

Warning

A common mistake with Imagery Illustration Photography Illustrations Empty States is skipping edge case testing - empty inputs, null values, and unexpected data types. Always validate boundary conditions to write robust, production-ready ui ux code.

Key Takeaways

  • Photography and illustration transform UI from purely functional to emotionally resonant.
  • Consistency in style: Define a photography style guide for your product. Variables to define: natural vs studio lighting, candid vs posed subjects, processing style (warm vintage vs cool modern vs naturalistic), composition focus (people vs objects vs environments). Mixing wildly different photography styles creates visual incoherence
  • Image quality and performance: Always use WebP format (30-40% smaller than JPEG with equivalent quality), implement lazy loading (images load as users scroll), provide appropriate srcset for responsive sizes, and compress images (target under 200KB for hero images, under 50KB for thumbnail-size images). Slow-loading images are a primary cause of page abandonment
  • Representation and diversity: Product photography that represents only one demographic alienates others. Intentionally include diversity in age, race, gender, ability, and body type in user-facing photography. Users see themselves reflected in imagery - or they don't

Hands-on Practice Tools for this Course

Test what you learn using these free in-browser developer utilities (no signup required).

All 40+ Tools

Topics in This Module

0/9 done