law-of-proximity
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseLaw of Proximity
接近法则(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.
你将运用Law of Proximity,通过间距创建清晰的视觉分组,让用户无需标签或边框就能理解元素之间的关系。
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
常见应用场景
| Pattern | Proximity Rule |
|---|---|
| Form fields | Label tighter to its input than to the next field |
| Card content | Title, body, and metadata tighter together; card separated from adjacent cards |
| Section headers | Less space below header (to its content) than above it (from previous section) |
| Button groups | Related actions tight; destructive action separated |
| Data rows | Row padding tighter than row gap |
| Icon + label | Icon 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
- 共同区域法则(Law of Common Region): 接近法则与区域包含法则相辅相成;可选用其中一种,无需同时使用
- 视觉层级: 接近法则传达结构的优先级高于颜色或字体粗细
- 格式塔相似性原则(Gestalt similarity): 外观相似且间距较近的元素会形成最强的分组
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
- 使用统一的间距尺度(4px、8px、16px、24px、32px…)来定义间距,让接近关系更具系统性
- 永远不要用边框来替代间距的作用
- 通过眯眼观察布局来检查分组是否合理——无需阅读内容就能识别分组
- 首先检查用户容易误解结构的页面;接近法则应用不当通常是问题根源