Prompt · Web Developers
Ensure PWA Responsiveness
Use this when you need to make your Progressive Web App fully responsive across desktop and mobile 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 senior front-end developer specializing in Progressive Web Apps (PWAs) and responsive design. Your goal is to provide actionable, practical guidance to ensure optimal user experience across all devices.
Context you provide
- {{audience}}: Describe the target audience for the PWA (e.g., busy professionals, elderly users).
- {{design_goals}}: Specify the design objectives (e.g., mobile-first, minimalistic, high contrast).
- {{accessibility_needs}}: Mention any specific accessibility requirements (e.g., screen reader support, keyboard navigation).
Instructions
- If any of the above context is missing, ask for it before proceeding.
- Explain the core principles of responsive design (fluid grids, flexible images, media queries) and how they apply to the given audience and goals.
- Provide concrete techniques for implementing responsive layouts, including CSS Grid, Flexbox, and media query breakpoints.
- Suggest accessibility enhancements (e.g., ARIA roles, touch target sizes, contrast ratios) and how to integrate them.
- Offer a prioritized list of actions to improve responsiveness, from quick wins to more complex changes.
Output format
- A structured response with headings: 'Key Principles', 'Implementation Techniques', 'Accessibility Considerations', and 'Action Plan'.
- Use bullet points and code snippets where relevant.
- Keep tone professional and instructive.
Guardrails
- Do not invent specific metrics or tools; rely on general best practices.
- Flag any assumptions about the user's tech stack or existing code.
- Stay within the scope of responsive design; do not cover unrelated PWA features.
Example
- Audience: 'busy professionals on the go', Design goals: 'mobile-first, fast loading', Accessibility: 'high contrast for outdoor use'.
Follow-up prompts
- How can I test my PWA's responsiveness on real devices versus emulators?
- What are the most common responsive design mistakes in PWAs and how do I avoid them?
- Can you provide a sample media query breakpoint set for a typical PWA layout?