law-of-proximity

Applies the Gestalt Law of Proximity to group UI elements through spacing.

2.5k|358|Updated Mar 7, 2026
One-click install
npx skills add https://github.com/Owl-Listener/designer-skills --skill law-of-proximity
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: law-of-proximity
Source: https://github.com/Owl-Listener/designer-skills/tree/main/ui-design/skills/law-of-proximity
Command: npx skills add https://github.com/Owl-Listener/designer-skills --skill law-of-proximity

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Interfaces often confuse users because related elements are not visually grouped, forcing reliance on borders, labels, or guesswork. This Skill applies the Gestalt Law of Proximity so spacing alone communicates which elements belong together.

Core Features & Use Cases

  • Spacing-Based Grouping: Establishes within-group and between-group spacing ratios so relationships are legible without borders or labels.
  • Pattern Guidance: Provides concrete proximity rules for forms, cards, section headers, button groups, data rows, and icon-label pairs.
  • Use Case: When auditing a settings page where users misread which label belongs to which input, apply tighter label-to-input spacing than field-to-field spacing so each pair reads as a unit.

Quick Start

Review this form layout and adjust the spacing so each label is clearly grouped with its input field using the Law of Proximity.

Frequently Asked Questions about law-of-proximity

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I group UI elements using spacing instead of borders?

Place related elements closer together than unrelated ones, using a consistent spacing scale such as 4px, 8px, 16px, 24px, and 32px. The ratio between within-group and between-group spacing creates the grouping, so no fixed pixel value is required.

What is the Law of Proximity in UI design?

The Law of Proximity is a Gestalt principle stating that elements close together are perceived as belonging to a group. In layouts, tight spacing implies relationship while whitespace signals separation, making it the most fundamental grouping tool.

Law of Proximity vs Law of Common Region: which should I use?

Use proximity when spacing alone must carry the grouping, and common region when a visible container or boundary is appropriate. The two reinforce each other, but you generally do not need both for the same group.

How much space should go between a label and its input field?

The label should sit tighter to its own input than to the next field, so each label-input pair reads as a unit. Use your spacing scale consistently rather than a fixed value, since the ratio between gaps is what creates the grouping.

Why do users misread the structure of my page layout?

Misread structure is usually caused by inconsistent proximity, where unrelated elements sit too close or related ones too far apart. Squint at the layout: if groups are not legible without reading content, adjust the spacing ratios first.