/harness-claude:design-whitespacefrom harness-claude
Guides whitespace decisions for UI layouts: macro vs micro spacing, Gestalt proximity grouping, and building 4px/8px spacing scales for design systems.
Claude never picks this skill on its own
Its frontmatter has no description. Without a description, Claude Code leaves it out of the list Claude chooses from. Typing /harness-claude:design-whitespace still runs it.
What the skill costs in Claude's context, stage by stage
No description Claude Code can read, so Claude's list leaves it out: only you can start it.
SKILL.md joins the conversation and stays.
Space as a design element — macro vs. micro whitespace, breathing room, density control, and whitespace as a signal of quality and luxury
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.
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."
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.
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.
Differentiate active and passive whitespace. Active whitespace is an intentional design decision. Passive whitespace is leftover space that nobody planned:
width: 300px, leaving 47px of unexplained space at the bottom. Nobody designed that space — it just happened.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:
| 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 |
To evaluate an existing design's whitespace:
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.
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.
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.
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.
Apple Product Pages:
Stripe Dashboard vs. Stripe Marketing:
Vercel Homepage:
Spotify Desktop App:
Whitespace must scale with viewport — but not linearly. A 96px section padding on desktop should not shrink proportionally to 24px on mobile. Instead:
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.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
whitespace, spacing, layout-design, design-system, ui-density
npx claudepluginhub intense-visions/harness-engineering --plugin harness-claudeRead when SKILL.md points to them.
793 skills in this plugin
/a11y-aria-patternsARIA Patterns> Apply ARIA roles, states, and properties correctly to enhance assistive technology support for custom widgets/a11y-color-contrastColor Contrast and Color Independence> Ensure sufficient color contrast ratios and never use color as the sole means of conveying information/a11y-form-patternsAccessible Form Patterns> Build accessible forms with proper labeling, grouped controls, inline validation, and clear error communicationOther plugins' skills for the same job