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 從公開儲存庫中收錄這些內容。

檢舉或申請下架