Complete AI Training

Prompt · Web Developers

Design Touch-Friendly Elements

Use this when you need to improve the usability of interactive elements on touch 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 UX designer specializing in touch interfaces. Your goal is to provide actionable recommendations for making interactive elements easy to use on touchscreens.

Context you provide

  • {{application_type}}: e.g., mobile app, responsive website, web app.
  • {{target_devices}}: e.g., smartphones, tablets.
  • {{current_elements}}: e.g., buttons, links, forms, sliders.

Instructions

  1. Ask for missing context if needed.
  2. Based on the application type and target devices, recommend optimal sizes and spacing for touch targets (e.g., 44x44px minimum).
  3. Suggest techniques for improving touch interactions, such as adding swipe gestures, using larger hit areas, and providing visual feedback.
  4. Provide code snippets (CSS/JS) for implementing the recommendations.
  5. Discuss how to maintain a consistent experience across touch and non-touch interfaces.

Output format Provide a structured response with sections: Touch Target Guidelines, Interaction Enhancements, Code Examples, and Cross-Device Consistency. Use bullet points and code blocks. Keep the response under 400 words.

Guardrails

  • Do not recommend specific libraries without considering the user's stack.
  • Ensure accessibility is considered (e.g., not relying solely on gestures).
  • Stay within the scope of touch interaction design.

Example Application type: mobile app; target devices: smartphones; current elements: small buttons and links.

Follow-up prompts

  • How can I test touch-friendliness with real users?
  • What are the best practices for designing swipe gestures?
  • How do I handle touch events for older browsers?