Mobile and desktop apps · Skill
Design buttons and actions by platform
design-buttons-and-actions-by-platform
Places actions on an iOS phone, Android and a desktop PC so the main action is obvious and the rest stay quiet - toolbar or a floating button, filled or text, and a status bar or a dialog. Use when the user asks which button style matches the platform, or whether the action belongs in a toolbar.
Works with: Any AI Not yet model-tested; testing Jan 2027
Paste it into ChatGPT, Claude, Gemini or any AI chat, then tell it about your project. How it works
Install in Claude Code, Cursor or Codex (optional)
Only for AI coding tools that read skill folders. Run one line in a terminal, in your project folder. It downloads this skill's text files from TheSkillVault and nothing else; you can read them first with “View raw SKILL.md”.
Claude Code (all your projects)
curl -fsSL --create-dirs 'https://theskillvault.ai/api/skills/design-buttons-and-actions-by-platform/raw' -o ~/'.claude/skills/design-buttons-and-actions-by-platform/SKILL.md'Cursor (this project)
curl -fsSL --create-dirs 'https://theskillvault.ai/api/skills/design-buttons-and-actions-by-platform/raw' -o '.cursor/skills/design-buttons-and-actions-by-platform/SKILL.md'Codex and other Agent Skills tools (this project)
curl -fsSL --create-dirs 'https://theskillvault.ai/api/skills/design-buttons-and-actions-by-platform/raw' -o '.agents/skills/design-buttons-and-actions-by-platform/SKILL.md'
Or connect the whole library over MCP
Add TheSkillVault to Cursor or add this to your app's MCP settings (read-only; help):
{
"mcpServers": {
"theskillvault": {
"url": "https://theskillvault.ai/mcp"
}
}
}A single primary action per screen is enough. The platform already has a place for it. Extra emphasis on every control makes none of them look important.
When to use
- A screen has several actions and it is unclear which action is primary.
- Someone wants a floating action button on an iOS phone, or a tab-bar item that only creates something.
- A desktop PC message is popping a dialog for a status that could be a bar.
When not to use
- Skip this when you are choosing the section control (tab bar, rail, sidebar). That is a separate skill.
- Skip this when you are coding an Expo sheet or switch. That is a separate skill.
- The screen is a marketing website button. Web buttons are a different look.
Steps
- Name the single primary action on the screen. Everything else is secondary or quiet.
- On iOS phone and iPad, put that action in the toolbar, not in the tab bar. A tab bar changes sections. It does not create or delete.
- On Android, a floating action button is for the most important action on that screen. If the action is milder, use a filled button. Use a tonal or outlined button for the next level, and a text or icon button for the quiet ones. Do not make every control filled.
- On a desktop PC, put commands in the command bar. Use an info bar for a status the person can dismiss. Do not open a dialog just to say something succeeded.
- Keep hit targets large enough for a thumb, about 44 points on Apple screens. Do not shrink an icon button below that.
- Destructive actions stay secondary until the person confirms them. Do not colour every button red.
- Check light and dark. The primary action must still be the action the eye hits first.
Gotchas
- Do not label a sample button with a password, a token or a private balance.
- Two floating buttons on an Android screen fight each other. Keep a single floating button.
- An iOS phone toolbar action copied as a desktop dialog feels heavy. Match the platform.
- These notes are our summary of public platform guidance. They are not vendor documentation.
Portability
If you use SwiftUI, Jetpack Compose or WinUI, map the choice onto that toolkit's toolbar, floating button or info bar. That mapping is the remaining work. If you use React Native or Expo, the same ranking applies. The widget names differ.
Done when
- The screen has a single primary action, in the platform's usual place.
- Secondary actions are visibly quieter.
- Status messages do not open a dialog when a bar would do.
Example prompt
"This Android order screen has Save, Share and Delete all as filled buttons, plus a second floating button. Rank them the Material way and move Delete behind a confirm."
---
Written by TheSkillVault, CC BY 4.0. Button placement is summarised from public Apple, Material and Fluent guidance. No text was copied from those docs.
Licence
Licence: CC BY 4.0. Attribution when you reuse it: From TheSkillVault, https://theskillvault.ai, CC BY 4.0