/refactoring-ui-skills:design-button-hierarchyfrom refactoring-ui-skills
Creates clear primary/secondary/tertiary button hierarchies with visual style specifications. Evaluates existing button groups for common issues like competing visual weight or disabled-looking greys.
Ships in refactoring-ui-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
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 |
| 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 |
build-color-palette (needs brand and semantic colors)establish-visual-hierarchy (buttons are part of hierarchy)Input: Modal with "Save Changes" (filled blue), "Cancel" (filled grey), "Delete" (filled red)
Evaluation: PARTIAL
Recommendation:
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub gnurio/refactoring-ui-plugin --plugin refactoring-ui-skills11 skills in this plugin
/establish-visual-hierarchyDetermine what UI element draws attention first, second, third using size, weight, color, and de-emphasis strategies/apply-typography-scaleCreate clear typographic hierarchy using hand-crafted font sizes, weights, and colors/build-color-paletteCreate comprehensive palette with 8-10 greys, 5-10 primary, 5-10 accent shades/apply-consistent-spacingUse systematic spacing with 25% minimum jumps, start with excess whitespaceOther plugins' skills for the same job