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
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
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
Did this prompt work?
Keep exploring
More like this
Build a Light/Dark Mode Toggle Demo Page with Smooth Theme Switching
A single HTML page with a polished light/dark theme switch built on CSS custom properties that defaults to the system theme, honors reduced motion, and uses no storage.
Build a Multi-Step Onboarding Wizard with Stepper and Inline Validation
A four-step onboarding wizard in one HTML file, with a clickable stepper, progress bar, inline validation, a review screen, and keyboard and swipe navigation.
Build a Playful Animated 404 Error Page with SVG Art and Site Search
A complete single-file 404 page with an original animated hot-air balloon SVG, a live-filtering search box and helpful recovery links that respect reduced motion.
Build a Responsive Navigation Bar With Mega Menu and Mobile Drawer in HTML
A complete single-file site header with a hover, click and arrow-key mega menu on desktop and an animated hamburger drawer with accordions on small screens.
Build a Responsive Three-Tier Pricing Section with Monthly/Yearly Toggle
A single HTML file with three pricing cards, a working billing switch that recalculates prices, a highlighted recommended plan and accessible feature checkmarks.
Build a SaaS Landing Page Hero with a CSS-Drawn Product Mockup
You get a polished, responsive SaaS hero section in one HTML file, with a strict type scale, realistic copy, working CTAs and an interactive app mockup drawn in pure CSS.
- Build a Sortable, Filterable Data Table with Pagination in One HTML File
- Build an Accessible Modal, Toast and Tooltip Showcase in One HTML File
- Build an Analytics Dashboard with Sidebar, KPI Cards and SVG Charts in One HTML File
- Build an Interactive Habit Tracker Mobile App Prototype in One HTML File
- Design an Accessible Settings Page with Toggles, Segmented Controls and Sliders
- Build a Sticky-Header Plan Comparison Page with Swipeable Mobile Columns