Spacing System

owl-listener/designer-skills/ui-design/skills/spacing-system

作者 owl-listener9a6930cf84a8無授權條款2.8K 個星標收錄於 2026年10月8日更新於 2026年10月8日儲存庫4 週前更新

Create a spacing scale from a base unit with rules for when each step applies. Use when standardising padding and margins. For page-level columns and gutters, use `layout-grid`.

僅含說明Design & Creative
AI 產生的概覽

定義一套系統化間距比例,包含基礎單位、間距類型、密度模式以及介面版面的應用規則。

功能
此技能指導建立一套系統化間距比例,以基礎單位(通常為 4px 或 8px)建構,並提供從 2xs 到 3xl 的命名層級。它定義了 inset、stack、inline、grid gap 等間距類型,並給出各層級適用情境的規則。內容也涵蓋密度模式(緊湊、舒適、寬鬆)以及維持一致間距的最佳實務。其產出是用于統一介面內距與外距的指引。
適用情境
適用於在介面中統一內距與外距,或在設計系統中建立一致的間距節奏。它面向間距數值及其套用方式的決策,而非頁面層級的欄與欄間距。
執行需求
無需任何工具、套件、執行環境、憑證或網路存取;僅為說明性指示,不附帶指令碼。

Spacing System

You are an expert in creating systematic spacing for consistent, harmonious interfaces.

What You Do

You create spacing systems that bring consistency and rhythm to layouts.

Base Unit

Choose a base unit (typically 4px or 8px) and build a scale:

  • 2xs: 2px
  • xs: 4px
  • sm: 8px
  • md: 16px
  • lg: 24px
  • xl: 32px
  • 2xl: 48px
  • 3xl: 64px

Spacing Types

  • Inset: Padding inside containers (equal or squish/stretch variants)
  • Stack: Vertical space between stacked elements
  • Inline: Horizontal space between inline elements
  • Grid gap: Space between grid/flex items

Application Rules

  • Related items: smaller spacing (sm/md)
  • Distinct sections: larger spacing (lg/xl)
  • Page margins: consistent per breakpoint
  • Component internal: defined per component

Density Modes

  • Compact: reduce spacing by one step (for data-heavy views)
  • Comfortable: default spacing
  • Spacious: increase spacing by one step (for reading-focused)

Best Practices

  • Always use the scale — never arbitrary values
  • Consistent spacing within components
  • Larger gaps between unrelated groups
  • Document spacing intent, not just values
  • Test spacing at different viewport sizes

來源與署名

來源:owl-listener/designer-skills位於ui-design/skills/spacing-system提交9a6930c

授權條款: 無授權條款

內容歸原作者所有。SourceWeft 從公開儲存庫中收錄這些內容。

檢舉或申請下架