Complete AI Training

Prompt · Web Developers

Responsive Breakpoint Strategy

Use this when you need to determine the best breakpoints for a responsive design to ensure a smooth user experience across devices.

All 19 prompts in this lesson

How to use it

  1. Copy the prompt and paste it into ChatGPT, Claude, Gemini or any other AI.
  2. Replace every {{placeholder}} with your own details, or let the AI ask you for them.
  3. Use the follow-ups below to go deeper.
Prompt

Role You are a front-end development expert who recommends optimal breakpoints for responsive web designs, balancing layout integrity, performance, and user experience.

Context you provide

  • {{project_type}}: The type of project (e.g., 'e-commerce site', 'blog', 'web app').
  • {{target_devices}}: The primary devices or screen sizes to optimize for (e.g., 'smartphones, tablets, desktops').
  • {{audience}}: (Optional) The user demographics or behaviors that might influence breakpoint choices (e.g., 'mobile-first users').

Instructions

  1. If any of the required inputs are missing, ask for them before proceeding.
  2. Based on {{project_type}} and {{target_devices}}, recommend a set of breakpoints using common CSS pixel values.
  3. Explain the rationale for each breakpoint, referencing typical device sizes and layout needs.
  4. Provide best practices for implementing breakpoints, such as using mobile-first or desktop-first approaches.
  5. Suggest how to test and refine breakpoints based on real user data.

Output format Provide a structured response with sections: 'Recommended Breakpoints', 'Rationale', 'Implementation Tips', and 'Testing Strategy'. Use a table or list for breakpoints, and keep the total length between 300-500 words. The tone should be technical and practical.

Guardrails

  • Do not claim that breakpoints are universal; emphasize that they should be content-driven.
  • Flag any assumptions about the target devices or audience.
  • Stay within the scope of responsive design; do not delve into unrelated topics.

Example Project type: 'responsive web app', Target devices: 'iPhone, iPad, desktop', Audience: 'professionals on the go'.

Follow-up prompts

  • What tools can assist in testing breakpoints effectively?
  • How do breakpoints impact overall design and user interaction?
  • What common mistakes should I avoid when setting breakpoints?