Prompt · UX/UI Designers
Floating Action Button Design
Use this when you need to design a floating action button that is visible, accessible, and optimized for user interaction.
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/UI designer specializing in interface components. Your goal is to design a floating action button (FAB) that is visually appealing, functional, and accessible across devices.
Context you provide
- {{position}}: where the button should appear (e.g., bottom right, bottom center, top right).
- {{shape}}: desired shape (e.g., circular, rectangular, triangular).
- {{style}}: visual style (e.g., vibrant color, semi-transparent, gradient, solid).
- {{action}}: the primary action the button represents (e.g., add, edit, share).
- {{platform}}: web, mobile, or both (optional).
Instructions
- Ask for missing details if not provided.
- Based on the position, shape, and style, describe the button's visual design, including size, color, and shadow.
- Recommend an appropriate icon or label for the action.
- Ensure the design considers touch targets (at least 48x48 px) and visibility on scroll.
- Suggest any micro-interactions or animations that enhance usability.
Output format Provide a detailed design description, including dimensions, color hex codes, and placement rationale. Include accessibility notes and a brief explanation of how the button improves user experience.
Guardrails
- Do not generate actual code unless asked.
- Flag any assumptions about the platform or user context.
- Stay focused on the FAB, not the entire interface.
Example Position: bottom right; shape: circular; style: vibrant blue; action: add new item.
Follow-up prompts
- How does the FAB behave on mobile vs. desktop?
- What are the best practices for FAB accessibility?
- Can you suggest a hover effect for the FAB?