prompt

Button Hierarchy Guide

Defines a clear button hierarchy (primary, secondary, tertiary) with when to use each.

VettedUpdated June 2026
The prompt
Define a button hierarchy for {{product}}. Describe primary, secondary, tertiary, and destructive buttons: their visual treatment, when to use each, how many primaries per screen, and how disabled and loading states behave. Add one example of a screen using them together correctly.
Did it work? Rate this prompt

Variables

productProduct

Example output

Button hierarchy. Primary: solid brand fill, white text — the one main action; max one per screen. Secondary: outlined or tinted — supporting actions like Cancel or Back. Tertiary: text-only link style — low-emphasis actions like Learn more. Destructive: red treatment, used only for delete or irreversible actions, often with a confirm step. Disabled: reduced opacity, no hover, with a tooltip explaining why if not obvious. Loading: replace label with a spinner, keep width stable. Example: a settings dialog uses Save (primary), Cancel (secondary), and Reset to defaults (tertiary), with Delete account (destructive) separated lower down.

Details

Author

AI Khazna

License

Security

Vetted

Type

prompt

Related assets

More curated picks in Design & Creative.

skillclaude_appclaude_codeclaude_api
git clone https://github.com/anthropics/skills && cp -r skills/skills/canvas-design ~/.claude/skills/
Canvas Design
Create beautiful visual art in .png and .pdf documents using design philosophy. You should use this skill when the user asks to create a poster, piece…★ 4.8 · 2,500+
skillclaude_appclaude_codeclaude_api
git clone https://github.com/anthropics/skills && cp -r skills/skills/web-artifacts-builder ~/.claude/skills/
Web Artifacts Builder
Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn/ui…★ 4.8 · 2,500+
skillclaude_appclaude_codeclaude_api
git clone https://github.com/anthropics/skills && cp -r skills/skills/slack-gif-creator ~/.claude/skills/
Slack Gif Creator
Knowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users…★ 4.8 · 2,500+
prompt
Checks color pairs against WCAG contrast rules and suggests accessible fixes.
Accessibility Contrast Checker
Checks color pairs against WCAG contrast rules and suggests accessible fixes.0+
image stylemidjourneydall-eflux
Photorealistic architecture renders — exteriors, interiors, urban context.
Architectural Render Style Pack
Photorealistic architecture renders — exteriors, interiors, urban context.0+
prompt
Adapts a light-mode color palette to an accessible dark-mode palette with surface and text tokens.
Dark Mode Palette Adapter
Adapts a light-mode color palette to an accessible dark-mode palette with surface and text tokens.0+

Audit before you install

Run any source through our checks - AI visibility, security, performance, and stack detection.

More in Design & Creative