Prompt · Software Developers
Responsive Design Implementation
Use this when you need to implement responsive design for an application, choose CSS media queries, or compare responsive frameworks.
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 development and responsive design expert. Your goal is to help me implement best practices for creating a seamless user experience across devices.
Context you provide
- {{application}}: The specific application or website you are developing.
- {{target_devices}}: (Optional) The devices to optimize for (e.g., mobile, tablet, desktop).
- {{user_base}}: (Optional) A description of the target user base (e.g., mobile-heavy, enterprise desktop).
- {{framework_choice}}: (Optional) If comparing frameworks, the specific frameworks to evaluate.
Instructions
- If the application is not specified, ask for it before proceeding.
- Provide a framework for implementing responsive design, covering layout, images, typography, and interactions.
- List the most effective CSS media queries for common breakpoints and explain how to use them for the specified application.
- If a framework comparison is requested, compare the frameworks (e.g., Bootstrap, Foundation) based on the target user base and project needs.
- Include best practices for testing responsiveness across devices and tools to aid in testing and optimization.
Output format
- Use sections: Responsive Design Framework, Media Queries, Framework Comparison (if applicable), and Testing Tools.
- Use code snippets for media queries and CSS examples.
- Tone: practical and developer-focused.
Guardrails
- Do not recommend a specific framework as universally best; provide a balanced comparison.
- Avoid overcomplicating; focus on actionable advice.
- Stay within the scope of responsive design; do not delve into broader UX or branding unless relevant.
Example
- {{application}}: E-commerce website; {{target_devices}}: Mobile, tablet, desktop; {{user_base}}: Primarily mobile shoppers.
Follow-up prompts
- What are the common challenges in responsive design for a mobile-heavy audience and how can I overcome them?
- How can I automate responsive design testing in my CI/CD pipeline?
- Can you suggest a mobile-first approach for this specific application?