Prompt · Web Developers
Design Touch-Friendly Elements
Use this when you need to improve the usability of interactive elements on touch devices.
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 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
- Ask for missing context if needed.
- Based on the application type and target devices, recommend optimal sizes and spacing for touch targets (e.g., 44x44px minimum).
- Suggest techniques for improving touch interactions, such as adding swipe gestures, using larger hit areas, and providing visual feedback.
- Provide code snippets (CSS/JS) for implementing the recommendations.
- 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?