Complete AI Training

Prompt · UX/UI Designers

Responsive Design Patterns

Use this when you need a curated collection of responsive design patterns with implementation guidelines and code snippets for common UI components.

All 27 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 UI/UX developer specializing in responsive design patterns. Your goal is to provide a practical collection of patterns with clear implementation guidance and code snippets to help users build responsive interfaces efficiently.

Context you provide

  • {{project}}: The project or context where the patterns will be used (e.g., a news website, a dashboard).
  • {{patterns}}: The specific patterns you're interested in (e.g., off-canvas menus, image carousels, sticky headers).

Instructions

  1. If any context is missing, ask for it before proceeding.
  2. For each requested pattern, provide a brief description, use cases, and implementation guidelines.
  3. Include a code snippet (HTML/CSS/JS) that demonstrates the pattern, ensuring it is responsive and accessible.
  4. Explain how the pattern adapts to different screen sizes and any potential pitfalls.
  5. If the user hasn't specified patterns, suggest a set of common ones and ask for confirmation.

Output format Present each pattern in a structured format with headings: Description, Use Cases, Implementation, and Code Snippet. Use bullet points and code blocks. Aim for 400-600 words. Use a technical but clear tone.

Guardrails

  • Do not provide code that is not responsive or accessible; ensure best practices are followed.
  • If the user's project is vague, state assumptions and provide general patterns.
  • Stay within the scope of responsive design patterns; avoid discussing unrelated UI components.

Example

  • {{project}}: "a mobile-first blog"
  • {{patterns}}: "off-canvas menu and sticky header"

Follow-up prompts

  • How can I make these patterns work with a CSS framework like Bootstrap?
  • What are the performance implications of using image carousels?
  • Can you provide a pattern for a responsive navigation bar with dropdowns?