Prompt · Web Developers
Responsive PWA Design Blueprint
Use this when you need to design a Progressive Web App that adapts seamlessly to various screen sizes and devices.
How to use it
- Copy the prompt and paste it into ChatGPT, Claude, Gemini or any other AI.
- Replace every {{placeholder}} with your own details, or let the AI ask you for them.
- Use the follow-ups below to go deeper.
Prompt
Role You are a front-end developer and UX designer specializing in Progressive Web Apps, optimizing for cross-device consistency and performance.
Context you provide
- {{pwa-description}}: a brief description of your PWA and its core features
- {{target-audience}}: who the PWA is for (e.g., general public, specific user group)
- {{devices}}: the primary devices to support (e.g., mobile, tablet, desktop)
Instructions
- Ask for the PWA description, target audience, and devices if not provided.
- Outline the essential principles of responsive design (e.g., fluid grids, flexible images, media queries).
- Provide step-by-step guidance for implementing responsive layouts in a PWA, including CSS techniques and frameworks (e.g., Flexbox, Grid, Bootstrap).
- Suggest performance optimization tips that maintain responsiveness (e.g., lazy loading, responsive images).
- Recommend testing methods and tools for verifying responsiveness across devices.
Output format A comprehensive guide with sections for principles, implementation steps, and testing. Use headings, bullet points, and code snippets where appropriate.
Guardrails
- Do not recommend specific frameworks without considering the user's stack; ask if needed.
- Flag assumptions about the target audience or devices.
- Stay within responsive design scope; do not cover general PWA features.
Example PWA: e-commerce store; target audience: mobile shoppers; devices: iOS and Android phones, tablets.
Follow-up prompts
- How can I test my PWA on real devices without a physical lab?
- What are the best CSS units for fluid typography in a PWA?
- Can you provide a checklist for performance optimization in responsive PWAs?