Design visual hierarchy

From Intense-Visions/harness-engineering · View interactive version

Design visual hierarchy is an AI agent skill from the GitHub repository Intense-Visions/harness-engineering. > Directing attention through size, color, contrast, position, isolation, and motion — the system that tells the eye where to go first, second, and third

How to use this skill

Skill file

Visual Hierarchy

Directing attention through size, color, contrast, position, isolation, and motion — the system that tells the eye where to go first, second, and third

When to Use

Instructions

  1. Establish exactly one dominant element per viewport. Every page needs a clear entry point — the single element the eye hits first. If two elements compete for dominance, the viewer hesitates and the layout feels chaotic:
  1. Use the seven hierarchy tools in combination. Each tool adds visual weight. The more tools you stack on an element, the more dominant it becomes:

| Tool | How It Adds Weight | Example |

| ------------------ | ---------------------------------------------------- | --------------------------------------------------- |

| Size | Larger = heavier. The most powerful single tool. | Stripe hero: 56px headline vs. 18px body text |

| Color | Saturated, warm, or brand colors draw attention. | Vercel: blue "Deploy" CTA against monochrome page |

| Contrast | High contrast foreground/background draws the eye. | Apple: white text on black hero, gray text for meta |

| Position | Top-left (LTR) and center draw first attention. | Dashboards: key metrics in top-left quadrant |

| Isolation | An element surrounded by whitespace draws attention. | Apple: single product floating in vast empty space |

| Texture/Detail | Complex, detailed elements attract over simple ones. | Airbnb: photo-rich listing vs. plain text sidebar |

| Motion | Moving elements override all static hierarchy. | Stripe: animated gradient draws eye before reading |

Decision procedure: For your primary element, apply 3-4 tools (large + high contrast + prime position + isolation). For secondary elements, apply 1-2 tools. For tertiary elements, apply none — they should be visually quiet.

  1. Design in three tiers: primary, secondary, tertiary. Every element on the page belongs to exactly one tier:

Stripe's pricing page demonstrates this clearly:

  1. Validate hierarchy with the squint test and blur test. These are non-negotiable quality checks:
  1. Understand F-pattern and Z-pattern scanning. Eye-tracking research shows consistent scanning patterns:
  1. Use contrast ratios as a hierarchy system. Beyond accessibility, contrast is a precision tool for establishing reading priority:

Apple uses this exact system: primary labels at ~17:1, secondary at ~7:1, tertiary at ~4.5:1, and disabled/placeholder at ~2.5:1.

Details

Visual Weight Formula

Visual weight is not a single property but a composite. An element's weight is roughly:

weight = size_factor + contrast_factor + saturation_factor + isolation_factor + position_factor

Where each factor is 0-3:

A primary element should score 10-15. A secondary element should score 5-9. A tertiary element should score 0-4. If two elements score within 2 points of each other, they will compete for attention.

Hierarchy Across Component States

Within a single component, hierarchy applies to states:

Material Design's state layers demonstrate this: hover adds 8% opacity overlay, focus adds 12%, pressed adds 12%, dragged adds 16%.

Anti-Patterns

  1. Competing focal points. Two elements of equal visual weight fight for attention — a large image AND a large headline at the same size, color, and contrast. The viewer oscillates between them. Fix: make one clearly dominant. Stripe never lets an image compete with a headline — images are always muted, desaturated, or smaller than the text.
  1. Flat hierarchy. Everything the same size, weight, and color. Common in engineering-driven layouts where every piece of data feels equally important. The result: nothing stands out, so the user must read everything sequentially. Fix: force-rank every element into primary/secondary/tertiary before placing it.
  1. Decoration over content. Ornamental backgrounds, gradient borders, animated patterns, or decorative icons that carry more visual weight than the actual content. The eye goes to the decoration first. Fix: the squint test — if decorative elements are more visible than content elements, reduce their weight (lower opacity, desaturate, shrink).
  1. Motion abuse. Animations and transitions that are so prominent they override all static hierarchy. A subtle entrance animation is secondary; a looping animation is primary. If a background animation draws more attention than the headline, it is competing with — not supporting — the hierarchy. Vercel uses motion sparingly: a gradient shift on hover, never a persistent loop.

Real-World Examples

Stripe Homepage (3-Tier Hierarchy):

Apple Product Comparison Page:

Vercel Dashboard:

Source

Process

  1. Rank every element on the page into primary (1-2), secondary (3-5), or tertiary (remaining) before touching any visual properties
  2. Assign visual weight using the seven hierarchy tools: stack 3-4 tools on primary, 1-2 on secondary, none on tertiary
  3. Validate with the squint test and blur test — verify that the intended hierarchy matches the perceived hierarchy

Harness Integration

This is a knowledge skill. When activated, its content is injected into the system prompt to guide layout and emphasis decisions. It does not execute code or modify files. Use alongside design-typographic-hierarchy for text-specific hierarchy, design-contrast-ratio for contrast-based emphasis, and design-whitespace for isolation-based emphasis.

Success Criteria

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.