01-establish-visual-hi…
Determine what UI element draws attention first, second, third using size, weight, color, and de-emphasis strategies
Create clear primary/secondary/tertiary action distinctions
$ npx -y skills add gnurio/refactoring-ui-plugin --skill 05-design-button-hierarchy --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/05-design-button-hierarchyContext preview
The summary Claude sees to decide when to auto-load this skill.
Create clear primary/secondary/tertiary action distinctions
name: design-button-hierarchy description: Create clear primary/secondary/tertiary action distinctions domain: ui-design skill-type: generative version: 1.0.0 author: refactoring-ui-expert prerequisites: [] dependencies: - 03-build-color-palette
Create clear distinctions between primary, secondary, and tertiary actions so users know which action to take.
Generative + Evaluative
Maps action importance to visual treatment: primary = filled brand color, secondary = outline or subtle (including grey solid), tertiary = text-only or link style.
| Level | Background | Border | Text | Use Case | |-------|------------|--------|------|----------| | **Primary** | Brand color (solid) | None | White/light | Main CTA, save, submit | | **Secondary** | Grey (solid) or transparent | Brand color (if outline) | Brand color or grey | Alternative action, cancel | | **Tertiary** | Transparent | None | Brand color or gray | Optional actions, learn more | | **Destructive** | Red | None | White | Delete, remove (not competing) | | **Disabled** | Gray 200 | None | Gray 400 | Cannot proceed |
1. **Fill vs outline**: Filled = primary, outline = secondary 2. **Color saturation**: More saturated = more important 3. **Size**: Primary can be slightly larger 4. **Position**: Primary often on right or bottom (reading pattern)
| Failure | Description | Fix | |---------|-------------|-----| | **Button Battle** | Save and Cancel both filled brand | Make Cancel outline or grey solid | | **Gray Button Confusion** | Very light grey (200) secondary looks disabled | Use grey 400-500 or outline, not near-white grey | | **Red Alert** | Delete button more prominent than primary | Make delete text-only or smaller | | **Primary Overload** | 3+ "primary" buttons | Choose one primary, demote others | | **Invisible Tertiary** | Text links same color as body | Use brand color or underline |
**Input:** Modal with "Save Changes" (filled blue), "Cancel" (filled grey), "Delete" (filled red)
**Evaluation:** PARTIAL
**Recommendation:**
Ten structured AI skills for evaluating and improving UI designs — covering visual hierarchy, typography, color, spacing, buttons, clutter, empty states, shadows, contrast, and grouping.
Determine what UI element draws attention first, second, third using size, weight, color, and de-emphasis strategies
Create clear typographic hierarchy using hand-crafted font sizes, weights, and colors
Create comprehensive palette with 8-10 greys, 5-10 primary, 5-10 accent shades
Use systematic spacing with 25% minimum jumps, start with excess whitespace
Remove unnecessary borders, backgrounds, shadows, decorations