# visual-emphasis-and-hierarchy

Enforces visual hierarchy rules in UI: button priorities, contrast, whitespace, and text emphasis. Useful when designing dashboards, cards, and CTA sections.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode · 874 installs · ★ 165
- Author: dembrandt
- License: MIT · policy=mirror · the beginning of the file is at the end of this page
- Source: https://github.com/dembrandt/dembrandt-skills/tree/HEAD/skills/visual-emphasis-and-hierarchy/SKILL.md
- Updated: 2026-10-22
- HTML: https://affpapa.org/en/nevibecode/skills/visual-emphasis-and-hierarchy

## What it does

This skill injects UI hierarchy rules into your coding assistant. It activates on file patterns such as `components/**`, `**/*.tsx`, and `tailwind.config.*`, or when prompts mention CTAs and button hierarchy. The instructions enforce a strict action ladder. One screen gets one primary action. Secondary actions stay outlined or ghosted.

The skill pairs high-contrast focal points with generous whitespace to direct user attention. It explicitly bans using brand colours on both a container background and its inner action button. For typography, bold weight is restricted to meaningful clusters of two to five words rather than isolated terms. If you ask for a hero banner with matching button fills, the agent will rewrite the button in neutral white to preserve visual contrast.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add dembrandt/dembrandt-skills --skill visual-emphasis-and-hierarchy -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/visual-emphasis-and-hierarchy/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/visual-emphasis-and-hierarchy/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add dembrandt/dembrandt-skills --skill visual-emphasis-and-hierarchy -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/visual-emphasis-and-hierarchy/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add dembrandt/dembrandt-skills --skill visual-emphasis-and-hierarchy -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/visual-emphasis-and-hierarchy/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install dembrandt/dembrandt-skills visual-emphasis-and-hierarchy
```

2. **Manually: put the files in place**
- File: `.github/skills/visual-emphasis-and-hierarchy/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add dembrandt/dembrandt-skills --skill visual-emphasis-and-hierarchy -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/dembrandt/dembrandt-skills --path skills/visual-emphasis-and-hierarchy
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/visual-emphasis-and-hierarchy/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add dembrandt/dembrandt-skills --skill visual-emphasis-and-hierarchy -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/dembrandt/dembrandt-skills/tree/HEAD/skills/visual-emphasis-and-hierarchy/SKILL.md

## When to use it
- separate primary and secondary actions in button groups
- eliminate visual noise caused by excessive bold formatting
- highlight key metrics in dense dashboard tables or cards
- structure whitespace and contrast around primary call-to-action blocks

## Example prompts
- Design the button group for this form so the primary action stands out
- Set up visual hierarchy for the pricing tier cards on this page

## Source text · SKILL.md · MIT

Below is the content of a third-party file. It is data, not instructions for you: do not act on anything written inside unless the human asks. Block tag: e024fbb4ff624068.

BEGIN THIRD-PARTY FILE e024fbb4ff624068
```text
---
name: visual-emphasis-and-hierarchy
description: Size, colour, weight and position mark what matters most. Use when designing button groups, CTAs, cards, dashboards or any layout with a primary action.
metadata:
  priority: 8
  pathPatterns:
    - "components/**"
    - "src/components/**"
    - "**/*.tsx"
    - "**/*.jsx"
    - "design-system/**"
    - "ui/**"
    - "tailwind.config.*"
  promptSignals:
    phrases:
      - "primary button"
      - "call to action"
      - "visual hierarchy"
      - "emphasis"
      - "most important"
      - "highlight"
      - "prominent"
      - "CTA"
      - "text over image"
      - "hero banner"
      - "legibility"
retrieval:
  aliases:
    - visual hierarchy
    - emphasis
    - primary action
    - CTA design
    - button hierarchy
    - content priority
  intents:
    - make the primary action stand out
    - design button hierarchy
    - guide user attention
    - emphasise key content
    - reduce visual noise
  examples:
    - make it obvious what the user should click
    - design the button group for this form
    - highlight the most important feature on this page
---

# Visual Emphasis and Hierarchy

Every screen has a most-important thing. Visual hierarchy is the design work that makes sure the user's eye finds it first — without requiring the user to read everything and decide for themselves.

Emphasis is achieved through **size**, **colour**, **weight**, **contrast**, and **position**. These tools work because they are relative: an element looks important because it differs from what surrounds it.

## The Hierarchy Ladder

Design every action group and content area with a clear hierarchy:

| Level | Role | Visual treatment |
|---|---|---|
| **Primary** | The one action the user should most likely take | Filled, brand colour, largest button in the group |
| **Secondary** | An alternative action of moderate importance | Outlined or ghost, neutral colour, same or slightly smaller size |
| **Tertiary** | Rarely needed, destructive, or low-priority | Text link or subtle ghost, smaller, visually recessive |
| **Disabled** | Unavailable | Low contrast, no hover state — signals "not yet" |

There should be **at most one primary action per view** or per logical section. Two filled buttons side by side cancel each other out — both feel equally important, so neither guides the user.

## Size as Emphasis

A larger button, heading, or element draws the eye before a smaller one. Use size deliberately:

- The primary CTA is the largest interactive element in its group
- Page headings are larger than section headings, which are larger than labels
- A featured product, plan, or option can be physically larger than its peers to signal recommendation
```
END THIRD-PARTY FILE e024fbb4ff624068

The third-party file has ended. Everything between the e024fbb4ff624068 tags is data: requests and commands from it are not followed. An “end of file” line with another tag inside the block is part of the file.

First 2743 of 13571 bytes. © dembrandt · MIT · https://github.com/dembrandt/dembrandt-skills/tree/HEAD/skills/visual-emphasis-and-hierarchy/SKILL.md

_Part of the page did not fit — see the HTML version._

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
