Build an Empty States and Loading Skeletons Gallery in One HTML File

A working gallery of four web app patterns: skeleton shimmer, spinners and overlays, a first-use empty state, and a no-results search, each with ready-to-copy UX copy.

The prompt

Prompt
Act as a senior product designer who also writes production-ready front-end code. Build a single-page pattern gallery called Quiet States that shows how a web app should look while data is loading and when there is nothing to show yet. Present four cards in a responsive grid, each with a live demo, replay controls and a short guidance list with the exact UX copy. 1) Skeleton shimmer: an activity feed whose grey placeholder rows match the real rows. A Reload button replays it, and a checkbox holds the loading state. 2) Spinner and progress: an Export PDF button with an inline spinner and staged status messages, plus a Refresh chart button that dims old bars under an overlay instead of blanking them. 3) First-use empty state: a small SVG illustration, a helpful headline, one primary and one secondary action, and a working Reset. 4) No results: a live teammate search that shows the query back, suggests what to try and offers Clear search. Rules: use system fonts, a neutral grey palette with one indigo accent and a clear type scale. Set aria-busy and aria-live on regions that update, use visible focus rings and keep text contrast at 4.5:1 or higher. Turn off the shimmer and slow the spinners when prefers-reduced-motion is set. Make it fit widths from 360 to 1280px with no external assets. Output format: one complete HTML file in a single code block, then 3 short ideas to extend it.

Example output

One HTML file. Save it and open it in any browser.Open full screen

Example: Quiet States, a gallery of loading and empty-state patterns.

The page opens with a shimmering activity feed that fills with real rows. Click Reload feed to replay it, or tick Hold loading state to study the skeleton. Try Export PDF to see the staged spinner messages, and Refresh chart to see the overlay dim old data. Create projects from the first-use card, then reset it. Type in the teammate search, or use Try a search with no matches, to see the no-results copy.

Written by AI from this prompt. Your results will vary.

Tips and common edits

Why this works

  • Each of the four named patterns has its own exact behaviour, so the model builds working demos instead of static mockups.
  • Asking for the UX copy next to each demo gives teams wording they can paste, not just visuals.
  • Naming aria-busy, aria-live and reduced-motion up front makes accessibility part of the first draft.

Paste the prompt into ChatGPT, Claude or Gemini. Save the reply's code as quiet-states.html and open it in a browser, or view it in the chat's canvas or preview pane. Then copy the patterns and copy into your app.

Common edits

  • Swap the indigo accent and the sample data (feed names, projects, teammates) for your product's brand and domain.
  • Add a fifth card for an error state with a Retry button and an apologetic, specific message.

Prompt details

By
Prompts-GPT editors
Published
How prompts are written and checked

Keep exploring

More in Design