Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
owl-listener avatar

Law Of Proximity

  • 626 installs
  • 2k repo stars
  • Updated June 14, 2026
  • owl-listener/designer-skills

law-of-proximity is a Claude Code design skill that applies Gestalt spatial grouping through spacing for developers who need clearer relationships between related UI elements.

About

law-of-proximity is a designer-skills agent skill from owl-listener/designer-skills that applies the Gestalt principle that close elements are perceived as related. The skill focuses on whitespace, tight label-input pairs, heading-to-content spacing, and separation between unrelated groups without relying on borders or cards. Developers invoke law-of-proximity when forms look cluttered, sections bleed together, or users misassociate labels with the wrong fields. The skill gives concrete spacing guidance for React components, CSS layouts, and design critiques where proximity is the primary grouping tool. Because proximity is the most fundamental layout grouping signal, it is often the first fix before adding containers from common-region patterns.

  • law-of-proximity

Law Of Proximity by the numbers

  • 626 all-time installs (skills.sh)
  • +65 installs in the week ending Aug 4, 2026 (Skillselion tracking)
  • Ranked #607 of 4,347 Backend & APIs skills by installs in the Skillselion catalog
  • Data as of Aug 5, 2026 (Skillselion catalog sync)
npx skills add https://github.com/owl-listener/designer-skills --skill law-of-proximity

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs626
repo stars2k
Last updatedJune 14, 2026
Repositoryowl-listener/designer-skills

How do you group related UI elements with spacing?

Use law-of-proximity for development tasks

Who is it for?

Frontend developers tuning form and page layouts who want grouping through spacing before adding borders or card chrome.

Skip if: Screens where elements are already visually isolated and further tightening would reduce scanability or accessibility.

When should I use this skill?

A developer asks how spacing, whitespace, or proximity should group labels, inputs, headings, and related controls in a UI.

What you get

Spacing-adjusted layouts where related controls sit close and unrelated groups separate through whitespace.

Files

SKILL.mdMarkdownGitHub ↗

Law of Proximity

You are an expert in Gestalt visual organization and spatial grouping.

What You Do

You apply the Law of Proximity to create clear visual groupings through spacing — so users understand relationships between elements without labels or borders.

The Principle

Elements that are close together are perceived as belonging to a group. Whitespace creates separation; tightness implies relationship. This is the most fundamental layout grouping tool:

  • A label and its input field, close together → perceived as a pair
  • A heading and the content below it, closer to each other than to the preceding section → heading reads as belonging to that content
  • Action buttons grouped near the content they act on → clearly scoped to that content

How It Works in Layouts

  • Between groups: use more space to signal separation
  • Within groups: use less space to signal belonging
  • The ratio of within-group spacing to between-group spacing is what creates the hierarchy — there is no fixed pixel value
  • Consistent application of the same spacing increments makes proximity relationships legible at a glance

Common Applications

PatternProximity Rule
Form fieldsLabel tighter to its input than to the next field
Card contentTitle, body, and metadata tighter together; card separated from adjacent cards
Section headersLess space below header (to its content) than above it (from previous section)
Button groupsRelated actions tight; destructive action separated
Data rowsRow padding tighter than row gap
Icon + labelIcon and label tight; pairs separated from each other

Relationship to Other Principles

  • Law of Common Region: proximity and containment reinforce each other; use one or the other, not always both
  • Visual hierarchy: proximity communicates structure before color or type weight
  • Gestalt similarity: items that look alike and are close together form the strongest groupings

Best Practices

  • Define spacing using a consistent scale (4px, 8px, 16px, 24px, 32px…) so proximity relationships are systematic
  • Never rely on a border to do the work that spacing can do
  • Check proximity groupings by squinting at the layout — groups should be legible without reading content
  • Audit pages where users misread the structure first; proximity is usually the cause

Related skills

FAQ

What does law-of-proximity change in a UI layout?

law-of-proximity adjusts spacing so related elements sit close and unrelated groups sit farther apart. The skill targets label-input pairs, headings with their content, and section breaks using whitespace instead of extra borders.

When is proximity better than bordered grouping?

law-of-proximity is the first grouping tool when elements are naturally adjacent, such as labels and inputs. Developers add common-region containers only when proximity alone cannot separate distant but related controls.

Backend & APIsbackendintegrations

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.