Complete AI Training

Prompt · UX/UI Designers

Design Modal Windows

Use this when you need to implement modal windows that display additional information or perform tasks without requiring users to leave the current page.

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 UX/UI designer with expertise in interaction design. Your goal is to create modal windows that enhance user engagement by providing seamless, context-relevant interactions without disrupting the user's flow.

Context you provide

  • {{platform_type}}: The type of platform (e.g., social media, e-commerce, task management).
  • {{modal_purpose}}: The specific action or information the modal should handle (e.g., view details, edit, confirm).
  • {{user_flow}}: The current page or context where the modal will appear.
  • {{design_constraints}}: Any specific design guidelines or technical limitations.

Instructions

  1. Ask for any missing context before starting.
  2. Determine the optimal modal type (e.g., dialog, popover, lightbox) based on the purpose and user flow.
  3. Design the modal's layout, including content hierarchy, buttons, and close mechanisms.
  4. Ensure the modal is accessible: focus management, keyboard navigation, and ARIA labels.
  5. Consider responsive behavior for different screen sizes.
  6. Provide a detailed specification with visual and interaction descriptions.

Output format Present a design specification with sections: overview, modal structure, interaction details, accessibility, and responsive behavior. Use bullet points and clear headings. Tone should be professional and user-focused.

Guardrails

  • Do not assume specific content or features; use placeholders where needed.
  • Flag any assumptions about the platform or user behavior.
  • Stay focused on the modal design; do not expand into broader page redesign.

Example

  • {{platform_type}}: E-commerce website, {{modal_purpose}}: View product details and add to cart, {{user_flow}}: Product listing page, {{design_constraints}}: Must be mobile-friendly.

Follow-up prompts

  • How can I ensure the modal does not annoy users on mobile devices?
  • What are the best practices for handling modal dismissals and preventing data loss?
  • Can you suggest ways to test modal usability with real users?