Assess and improve visual hierarchy so the interface communicates priority immediately instead of making users decode it manually.
Use this when the problem is mainly priority and emphasis. If the bigger issue is arbitrary spacing, weak grouping, or monotonous layout rhythm, use arrange.
MANDATORY PREPARATION
Users start this workflow with /hierarchy. Once this skill is active, load $frontend-design — it contains design principles, anti-patterns, and the Context Gathering Protocol. Follow that protocol before proceeding — if no design context exists yet, you MUST load $setup first.
Assess Hierarchy Problems
Analyze where the interface is failing to prioritize clearly:
Run the grayscale test:
- If color disappeared, would the screen still make sense?
- Can you identify primary, secondary, and tertiary elements within about 2 seconds?
Scan for competition:
- Are multiple cards, titles, or buttons equally loud?
- Are section titles stealing focus from the content they label?
- Are supporting details too strong relative to the main task?
- Are heavy icons, bold labels, or dark metadata outweighing the content they are supposed to support?
Check consistency and predictability:
- Do action colors and button treatments keep the same meaning across the flow?
- Are similar success, error, or helper messages written with parallel structure?
- Are icon styles, typography roles, and familiar layout regions consistent enough that users can transfer what they learned?
Check action priority:
- Is there one obvious primary action?
- Are secondary actions clear but quieter?
- Are tertiary actions discoverable without competing?
Check labels and values:
- Does everything use a rigid
label: value pattern even when the value is self-explanatory?
- Should labels be combined with values or de-emphasized?
Check visual harmony:
- Is there a clear focal point?
- Is the page relying on one balance mode everywhere (for example, the same left-right split repeated section after section)?
- Are text and imagery balanced, or is one accidentally overpowering the other?
Check spacing, proximity, and alignment:
- Is space within groups smaller than the space between groups?
- Are labels, inputs, cards, and navigation items grouped tightly enough to read as related?
- Are shared alignment lines and container widths helping the screen scan cleanly?
- Does the page support the right scan pattern for the content density (for example, denser F-pattern scanning vs lighter directed Z-pattern scanning)?
If any of these are unclear from the codebase, ask the user directly to clarify what you cannot infer.
CRITICAL: Hierarchy problems are not cosmetic. If users can't tell what matters, the design is failing at communication.
Plan Hierarchy Fixes
Consult the hierarchy checklist for grayscale tests, label/value handling, action hierarchy, and de-emphasis techniques.
Consult the text hierarchy and readability when title restraint, label/value structure, line length, semantic-vs-visual hierarchy, or weight-versus-contrast balancing are part of the problem.
Consult the design-system alignment when hierarchy problems are partly caused by inconsistent action styles, icon logic, or drifted component treatments across the product.
Consult the spatial design and spacing system references when hierarchy problems are really spacing, grouping, or alignment problems in disguise.
Use the shared references as the canonical source for hierarchy and readability doctrine, then focus this skill on fixing priority and emphasis in the actual interface.
Create a plan around these levers:
- What should be primary?
- What should become quieter?
- Which labels can be removed, combined, or de-emphasized?
- Which actions need differentiated treatments?
- Which inconsistencies are teaching the wrong pattern?
- What balance mode would make the screen feel clearer and more complete?
- What spacing and alignment changes would make grouping more obvious?
- What scan path should the layout support?
Improve Hierarchy Systematically
Clarify the Pyramid
- Establish one clear primary focus
- Give secondary and tertiary content visibly quieter treatments
- Use space, weight, contrast, and placement before inventing decorative fixes
Emphasize by De-emphasizing
- Reduce contrast on competing elements
- Soften secondary icon or text colors
- Quiet sidebars, metadata, and labels before making the hero louder
Fix Action Hierarchy
- Use one clear primary button style
- Use secondary styles for supportive actions
- Use link-like or tertiary styles for low-frequency actions
- Reserve visually dominant destructive styling for confirmation moments, not every delete button
Restructure Labels and Values
- Remove labels when the value format is already obvious
- Combine labels and values when that improves scanning
- Treat labels as supporting content by default
- In technical contexts, let labels take slightly more emphasis when users are scanning for specs or field names
Quiet Section Titles
- Treat section titles like labels unless they truly deserve headline treatment
- Make titles smaller or lower contrast when the content should lead
- Separate semantic importance from visual size; a structurally important heading can still be visually restrained
Preserve Predictability
- Keep action colors and button styles semantically stable across similar contexts
- Keep repeated message patterns and labels parallel so users learn the system faster
- Keep icon families, layout regions, and familiar navigation structures consistent unless there is a strong workflow reason to change them
Improve Harmony, Not Just Loudness
- Use symmetry when the section should feel stable and orderly, but avoid repeating the same symmetrical structure everywhere
- Use asymmetry when the screen needs movement or stronger focal direction, but keep the weight balanced
- Use centered or radial emphasis when one item truly deserves unmistakable focus
- Rebalance text and images so neither side accidentally crushes the other
Use Space to Clarify Priority
- Keep more space around groups than within them
- Increase space around the primary element when it needs stronger focus
- Keep text, controls, and media off container edges unless edge tension is intentional
- Separate different sections enough that users can feel the topic change
Use Proximity and Alignment Deliberately
- Pull related fields, labels, and support text closer together
- Increase separation between unrelated groups
- Top-align larger neighboring blocks when comparison matters
- Keep major sections aligned to stable container edges so scanning stays effortless
- Choose centered alignment only when the content is compact enough that it still reads clearly
Support the Intended Scan Pattern
- Use denser left-to-right, top-to-bottom structure for information-heavy screens
- Use cleaner directional composition for lighter, CTA-led screens
- Place anchors like logos, main titles, and primary actions where the eye can find them quickly
Balance Weight and Contrast
- If icons feel louder than nearby text, soften their contrast before changing everything else
- If separators are too faint, consider a slightly heavier treatment before making them darker and harsher
- Use contrast reduction to quiet heavy elements and weight to support subtle low-contrast elements when needed
NEVER:
- Make every section title feel like a headline
- Style every action as primary
- Use color as the only hierarchy tool
- Leave labels at the same visual weight as the data they describe when the data matters more
- Randomly change action meaning, icon logic, or layout patterns that users already learned
- Try to fix weak hierarchy only by adding more decoration
Verify Hierarchy Improvements
- Grayscale clarity: Does it still work without color?
- 2-second scan: Can users identify the primary action and key content quickly?
- Action clarity: Is one action clearly first?
- Label/value efficiency: Is data easier to scan after restructuring?
- Reduced competition: Do quieter elements actually recede?
Remember: Great hierarchy makes the right thing feel obvious. If users have to study the screen, the hierarchy still needs work.
1---
2name: hierarchy
3description: Clarify priority and emphasis by fixing unclear primary actions, competing visual weight, loud section titles, and weak label/value treatment. Use when the user mentions hierarchy, prioritization, too much competition, grayscale confusion, loud headings, or unclear primary actions.
4metadata:
5 argument-hint: "[target]"
6---
7
8Assess and improve visual hierarchy so the interface communicates priority immediately instead of making users decode it manually.
9
10Use this when the problem is mainly **priority and emphasis**. If the bigger issue is arbitrary spacing, weak grouping, or monotonous layout rhythm, use `arrange`.
11
12## MANDATORY PREPARATION
13
14Users start this workflow with `/hierarchy`. Once this skill is active, load $frontend-design — it contains design principles, anti-patterns, and the **Context Gathering Protocol**. Follow that protocol before proceeding — if no design context exists yet, you MUST load $setup first.
15
16---
17
18## Assess Hierarchy Problems
19
20Analyze where the interface is failing to prioritize clearly:
21
221. **Run the grayscale test**:
23 - If color disappeared, would the screen still make sense?
24 - Can you identify primary, secondary, and tertiary elements within about 2 seconds?
25
262. **Scan for competition**:
27 - Are multiple cards, titles, or buttons equally loud?
28 - Are section titles stealing focus from the content they label?
29 - Are supporting details too strong relative to the main task?
30 - Are heavy icons, bold labels, or dark metadata outweighing the content they are supposed to support?
31
323. **Check consistency and predictability**:
33 - Do action colors and button treatments keep the same meaning across the flow?
34 - Are similar success, error, or helper messages written with parallel structure?
35 - Are icon styles, typography roles, and familiar layout regions consistent enough that users can transfer what they learned?
36
374. **Check action priority**:
38 - Is there one obvious primary action?
39 - Are secondary actions clear but quieter?
40 - Are tertiary actions discoverable without competing?
41
425. **Check labels and values**:
43 - Does everything use a rigid `label: value` pattern even when the value is self-explanatory?
44 - Should labels be combined with values or de-emphasized?
45
466. **Check visual harmony**:
47 - Is there a clear focal point?
48 - Is the page relying on one balance mode everywhere (for example, the same left-right split repeated section after section)?
49 - Are text and imagery balanced, or is one accidentally overpowering the other?
50
517. **Check spacing, proximity, and alignment**:
52 - Is space within groups smaller than the space between groups?
53 - Are labels, inputs, cards, and navigation items grouped tightly enough to read as related?
54 - Are shared alignment lines and container widths helping the screen scan cleanly?
55 - Does the page support the right scan pattern for the content density (for example, denser F-pattern scanning vs lighter directed Z-pattern scanning)?
56
57If any of these are unclear from the codebase, ask the user directly to clarify what you cannot infer.
58
59**CRITICAL**: Hierarchy problems are not cosmetic. If users can't tell what matters, the design is failing at communication.
60
61## Plan Hierarchy Fixes
62
63Consult the [hierarchy checklist](../frontend-design/reference/hierarchy-checklist.md) for grayscale tests, label/value handling, action hierarchy, and de-emphasis techniques.
64Consult the [text hierarchy and readability](../frontend-design/reference/text-hierarchy-and-readability.md) when title restraint, label/value structure, line length, semantic-vs-visual hierarchy, or weight-versus-contrast balancing are part of the problem.
65Consult the [design-system alignment](../frontend-design/reference/design-system-alignment.md) when hierarchy problems are partly caused by inconsistent action styles, icon logic, or drifted component treatments across the product.
66Consult the [spatial design](../frontend-design/reference/spatial-design.md) and [spacing system](../frontend-design/reference/spacing-system.md) references when hierarchy problems are really spacing, grouping, or alignment problems in disguise.
67
68Use the shared references as the canonical source for hierarchy and readability doctrine, then focus this skill on fixing priority and emphasis in the actual interface.
69
70Create a plan around these levers:
71- **What should be primary?**
72- **What should become quieter?**
73- **Which labels can be removed, combined, or de-emphasized?**
74- **Which actions need differentiated treatments?**
75- **Which inconsistencies are teaching the wrong pattern?**
76- **What balance mode would make the screen feel clearer and more complete?**
77- **What spacing and alignment changes would make grouping more obvious?**
78- **What scan path should the layout support?**
79
80## Improve Hierarchy Systematically
81
82### Clarify the Pyramid
83- Establish one clear primary focus
84- Give secondary and tertiary content visibly quieter treatments
85- Use space, weight, contrast, and placement before inventing decorative fixes
86
87### Emphasize by De-emphasizing
88- Reduce contrast on competing elements
89- Soften secondary icon or text colors
90- Quiet sidebars, metadata, and labels before making the hero louder
91
92### Fix Action Hierarchy
93- Use one clear primary button style
94- Use secondary styles for supportive actions
95- Use link-like or tertiary styles for low-frequency actions
96- Reserve visually dominant destructive styling for confirmation moments, not every delete button
97
98### Restructure Labels and Values
99- Remove labels when the value format is already obvious
100- Combine labels and values when that improves scanning
101- Treat labels as supporting content by default
102- In technical contexts, let labels take slightly more emphasis when users are scanning for specs or field names
103
104### Quiet Section Titles
105- Treat section titles like labels unless they truly deserve headline treatment
106- Make titles smaller or lower contrast when the content should lead
107- Separate semantic importance from visual size; a structurally important heading can still be visually restrained
108
109### Preserve Predictability
110- Keep action colors and button styles semantically stable across similar contexts
111- Keep repeated message patterns and labels parallel so users learn the system faster
112- Keep icon families, layout regions, and familiar navigation structures consistent unless there is a strong workflow reason to change them
113
114### Improve Harmony, Not Just Loudness
115- Use symmetry when the section should feel stable and orderly, but avoid repeating the same symmetrical structure everywhere
116- Use asymmetry when the screen needs movement or stronger focal direction, but keep the weight balanced
117- Use centered or radial emphasis when one item truly deserves unmistakable focus
118- Rebalance text and images so neither side accidentally crushes the other
119
120### Use Space to Clarify Priority
121- Keep more space around groups than within them
122- Increase space around the primary element when it needs stronger focus
123- Keep text, controls, and media off container edges unless edge tension is intentional
124- Separate different sections enough that users can feel the topic change
125
126### Use Proximity and Alignment Deliberately
127- Pull related fields, labels, and support text closer together
128- Increase separation between unrelated groups
129- Top-align larger neighboring blocks when comparison matters
130- Keep major sections aligned to stable container edges so scanning stays effortless
131- Choose centered alignment only when the content is compact enough that it still reads clearly
132
133### Support the Intended Scan Pattern
134- Use denser left-to-right, top-to-bottom structure for information-heavy screens
135- Use cleaner directional composition for lighter, CTA-led screens
136- Place anchors like logos, main titles, and primary actions where the eye can find them quickly
137
138### Balance Weight and Contrast
139- If icons feel louder than nearby text, soften their contrast before changing everything else
140- If separators are too faint, consider a slightly heavier treatment before making them darker and harsher
141- Use contrast reduction to quiet heavy elements and weight to support subtle low-contrast elements when needed
142
143**NEVER**:
144- Make every section title feel like a headline
145- Style every action as primary
146- Use color as the only hierarchy tool
147- Leave labels at the same visual weight as the data they describe when the data matters more
148- Randomly change action meaning, icon logic, or layout patterns that users already learned
149- Try to fix weak hierarchy only by adding more decoration
150
151## Verify Hierarchy Improvements
152
153- **Grayscale clarity**: Does it still work without color?
154- **2-second scan**: Can users identify the primary action and key content quickly?
155- **Action clarity**: Is one action clearly first?
156- **Label/value efficiency**: Is data easier to scan after restructuring?
157- **Reduced competition**: Do quieter elements actually recede?
158
159Remember: Great hierarchy makes the right thing feel obvious. If users have to study the screen, the hierarchy still needs work.