Law Of Proximity

owl-listener/designer-skills/ui-design/skills/law-of-proximity

作者 owl-listener9a6930cf84a8无许可证2.8K 个星标收录于 2026年10月8日更新于 2026年10月8日仓库4周前更新

Apply the Law of Proximity — spatial closeness groups elements more strongly than any other cue. Use when spacing alone must carry grouping. For grouping via containers use `law-of-common-region`; via shared appearance use `law-of-similarity`.

仅含说明Design & Creative
AI 生成的概览

指导如何仅通过间距运用格式塔接近律来对界面元素进行分组。

功能
该技能提供关于格式塔视觉组织的专业指导,说明空间上的靠近比其他线索更能有效地将元素归为一组。内容涵盖接近律原理本身、它在布局中的体现(组内间距与组间间距的对比)、常见界面模式对照表(如表单字段、卡片、区块标题、按钮组、数据行以及图标与标签组合),以及使用一致间距尺度的最佳实践。它产出的是设计建议,而不是文件或代码。
适用场景
当必须仅靠间距来传达视觉分组时使用,例如在没有标签或边框的情况下排布表单、卡片、标题或操作按钮。它也适合用于排查用户误读页面结构的问题。
运行要求
无需任何工具、软件包、运行时、凭据或网络访问;它仅为说明性指令,不附带脚本。

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

来源与署名

来源:owl-listener/designer-skills位于ui-design/skills/law-of-proximity提交9a6930c

许可证: 无许可证

内容归原作者所有。SourceWeft 从公开仓库中收录这些内容。

举报或申请下架