Design a Skeleton Screen Loading System for Seamless Perceived Performance

Build a complete skeleton screen loading system with animation specs, progressive loading hierarchy, and edge case handling.

πŸ“ The Prompt

Design a skeleton screen (content placeholder) system for [APPLICATION NAME], a [APP TYPE, e.g., social media feed, e-commerce catalog, project management dashboard]. The app's primary content types include [CONTENT TYPE 1], [CONTENT TYPE 2], and [CONTENT TYPE 3]. Create a comprehensive skeleton screen specification: 1. **Content Audit & Mapping**: For each primary content type, break down the UI into skeleton-friendly zones: - Identify which elements get placeholder shapes (text lines, image blocks, avatar circles, buttons) - Specify exact placeholder dimensions that match the final rendered content to prevent layout shift (CLS) - Note elements that should NOT be skeletonized (e.g., persistent navigation, fixed headers) 2. **Visual Styling**: Define the skeleton's visual language: - Base placeholder color: [suggest specific hex based on light/dark theme] - Animation type: shimmer (direction and speed), pulse (opacity range and duration), or wave - Border radius consistency with the design system - Contrast ratio against the page background 3. **Animation Specification**: Provide exact CSS/motion values: - Animation duration (recommend range) - Easing function - Shimmer gradient colors and angle - Stagger delay between skeleton groups (if applicable) 4. **Loading Hierarchy**: Define the progressive loading sequence: - Which sections appear as skeletons first vs. load instantly - Transition behavior: fade-in, slide-up, or instant swap when real content arrives - Handling of partially loaded states (e.g., text loads before images) 5. **Edge Cases**: Address skeleton behavior for: - Extremely fast loads (<200ms): avoid skeleton flash - Failed loads / timeouts: transition from skeleton to error state - Variable content lengths: how skeletons adapt to unknown content size - Infinite scroll: skeleton rows appended at the bottom 6. **Accessibility**: Ensure screen readers announce 'Content loading' with appropriate aria-busy and aria-live attributes. Output as a developer-ready specification with annotated wireframes described in detail.

πŸ’‘ Tips for Better Results

Add a 200-300ms delay before showing skeletons to avoid a 'flash of skeleton' on fast connectionsβ€”show nothing for instant loads. Match skeleton placeholder line widths to realistic content variance (e.g., alternate between 100%, 75%, and 60% width lines) to create a more natural preview.

🎯 Use Cases

Front-end developers and UI designers use this when implementing loading states that maintain layout stability and improve perceived performance across content-heavy applications.

πŸ”— Related Prompts

🎨 Design intermediate

UI/UX Design Review Checklist

Get a comprehensive UI/UX review covering hierarchy, accessibility, and responsiveness.

🎨 Design intermediate

Generate a Custom Color Palette for Any Brand or Project

Generate a complete, accessible color palette with HEX values, usage guidelines, and dark mode variants for any brand or project.

🎨 Design intermediate

Find the Perfect Typography Pairing for Your Design Project

Get expert typography pairing recommendations with type scales, spacing guidelines, and CSS fallback stacks for any design project.

🎨 Design advanced

Create a Detailed Wireframe Description for UI/UX Design

Generate a detailed, section-by-section wireframe description with layout specs, interaction flows, and responsive behavior for any page.

🎨 Design intermediate

Generate a Custom Color Palette for Your Brand or Project

Generate a complete, accessible color palette with hex codes, usage guidelines, dark mode variants, and brand-aligned reasoning.

🎨 Design advanced

Create a Detailed User Flow Diagram for Your Digital Product

Design a comprehensive text-based user flow diagram with decision points, error states, and UX annotations for any digital product.