Design whitespace

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

Design whitespace is an AI agent skill from the GitHub repository Intense-Visions/harness-engineering. > Space as a design element — macro vs. micro whitespace, breathing room, density control, and whitespace as a signal of quality and luxury

How to use this skill

Skill file

Whitespace

Space as a design element — macro vs. micro whitespace, breathing room, density control, and whitespace as a signal of quality and luxury

When to Use

Instructions

  1. Distinguish macro and micro whitespace. These are fundamentally different design decisions:

You can have generous macro whitespace with tight micro whitespace (Stripe's dashboard: spacious sections, dense data tables) or vice versa. They are independent variables.

  1. Use whitespace as a grouping mechanism (Gestalt proximity). Elements with less space between them are perceived as related. Elements with more space are perceived as separate. This is the most powerful layout tool you have — no borders, lines, or boxes needed:

Decision procedure: If two elements are related, the space between them should be less than the space between either element and the next unrelated element. Airbnb's listing cards use 16px internal padding but 24px between cards — the tighter internal space signals "these items belong together."

  1. Build a spacing scale. Never use arbitrary spacing values. Define a scale based on a base unit and use only values from that scale:

Stripe's entire marketing site uses an 8px scale. Section padding is 96px (12x base). Card padding is 32px (4x base). Inline element gaps are 8px (1x base). Every value is a multiple — no exceptions. This consistency is why Stripe's layouts feel effortless despite being complex.

  1. Understand whitespace as a luxury signal. Space is the most expensive resource in design — it costs content area. Premium brands spend it generously:

Decision procedure: Where does your product sit on the utility-to-luxury spectrum? Dashboards and tools should use tighter spacing (high utility). Marketing and brand pages should use generous spacing (high luxury). The same product can use different densities for different pages.

  1. Differentiate active and passive whitespace. Active whitespace is an intentional design decision. Passive whitespace is leftover space that nobody planned:
  1. Apply the spacing paradox. Adding whitespace often makes a layout feel more organized even though it contains less content per viewport. This is counterintuitive but consistently true:

Details

Spacing Scale Reference

| Context | Tight (Dashboard) | Standard (App) | Generous (Marketing) |

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

| Section padding | 32-48px | 48-80px | 80-128px |

| Card internal padding | 12-16px | 16-24px | 24-32px |

| Between form fields | 12-16px | 16-24px | 20-32px |

| Between list items | 4-8px | 8-12px | 12-16px |

| Button padding (v/h) | 6/12px | 8/16px | 12/24px |

| Icon-to-label gap | 4-6px | 8px | 8-12px |

| Page margin (mobile) | 12-16px | 16-20px | 20-24px |

| Page margin (desktop) | 24-40px | 40-80px | 80-120px |

Whitespace Audit Procedure

To evaluate an existing design's whitespace:

  1. List every unique spacing value. If there are more than 8-10 distinct values, the system lacks a scale.
  2. Check that each value is a multiple of the base unit. Values like 13px, 17px, or 23px indicate ad-hoc spacing.
  3. Verify proximity grouping. Related elements should have less space between them than unrelated elements. If a label is 16px from its input but also 16px from the next form group, the grouping signal is ambiguous.
  4. Check for passive whitespace. Look for large empty areas that serve no grouping or rhythm purpose. These usually appear at the bottom of sidebars, between a short page and its footer, or inside oversized containers.
  5. Measure the luxury-utility ratio. Compare total whitespace area to total content area. Marketing pages: 40-60% whitespace. Dashboards: 15-30% whitespace. If a dashboard is 50% whitespace, it is wasting screen real estate.

Anti-Patterns

  1. Horror vacui (fear of empty space). Filling every available pixel with content, decoration, borders, or background patterns. The result is overwhelming — the eye has no resting point and cannot establish hierarchy. Diagnosis: if removing an element would improve the design, horror vacui is present.
  1. Inconsistent spacing. Using 8px here, 13px there, 20px somewhere else — values chosen per-element rather than from a scale. This creates a subliminal sense of disorder that users feel but cannot articulate. Even non-designers perceive inconsistent spacing as "unprofessional." Fix: audit all spacing values and round each to the nearest scale value.
  1. Equal spacing everywhere. Uniform 16px gaps between all elements regardless of their relationship. This eliminates the grouping signal that whitespace provides — a label is the same distance from its input as it is from an unrelated heading. The fix is not more space, but differential space: tighter within groups, looser between groups.
  1. Decorative fillers. Using background patterns, gradient dividers, ornamental lines, or clip-art to fill space that "feels too empty." These are symptoms of horror vacui. The space was doing its job — the filler undermines it. Stripe uses only two dividers on its entire homepage: a subtle border-top on the footer and a color-shift between sections.

Real-World Examples

Apple Product Pages:

Stripe Dashboard vs. Stripe Marketing:

Vercel Homepage:

Spotify Desktop App:

Responsive Whitespace Adaptation

Whitespace must scale with viewport — but not linearly. A 96px section padding on desktop should not shrink proportionally to 24px on mobile. Instead:

Source

Process

  1. Define a spacing scale based on a 4px or 8px base unit before placing any elements
  2. Apply spacing using the Gestalt proximity principle: tighter within groups, looser between groups
  3. Audit by listing all unique spacing values and verifying each is from the defined scale

Harness Integration

This is a knowledge skill. When activated, its content is injected into the system prompt to guide spacing and layout decisions. It does not execute code or modify files. Use alongside design-grid-systems for structural layout, design-content-density for density calibration, and design-visual-hierarchy for attention management.

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.