# Spacing URL: /foundations/spacing Source: https://github.com/daangn/seed-design/blob/dev/docs/content/foundations/spacing.mdx Spacing expresses the distance between components or content. In design, spacing is an important element that improves visual balance and user experience. This guide provides guidance for building a consistent and effective spacing system. ## Purpose - **Maintaining Consistency**: Use the same scale across all layouts and components to provide design unity. - **Modularity**: Systematically manage spacing through predefined scale values (e.g., dimension-x1, dimension-x2, etc.). - **Improved Readability and User Experience**: Enhance distinction between content and visual flow through appropriate whitespace. ## Horizontal Spacing Horizontal spacing refers to the space applied when elements are arranged side by side. This approach allows designers and developers to easily apply consistent horizontal spacing, and effectively maintain overall layout and balance between elements. ### Nav to title `nav-to-title` defines the spacing between a title positioned below the navigation bar and the navigation. ### Component default `component-default` is a token that defines the default spacing of components in the design system. It is used as the spacing between buttons, cards, forms, and various other components' internal elements or as the default spacing between components, helping maintain design consistency. ## Vertical Spacing Vertical spacing refers to the space applied when elements are arranged vertically. This is an important element that determines the vertical structure and rhythm of a layout. ### Global Gutter `global-gutter` is the core spacing that maintains consistent distance between screen edges and content across all services, ensuring design consistency and improving user experience. This enables responsive design and balanced spacing adjustments between various UI components. On screens with safe areas, spacing is applied from the safe area boundary rather than the screen edge. For detailed placement guidelines, refer to [Safe Area](/patterns/safe-area). ## Spacing Tokens | Token | default | | --- | --- | | $dimension.x0_5 | 2px | | $dimension.x1 | 4px | | $dimension.x1_5 | 6px | | $dimension.x2 | 8px | | $dimension.x2_5 | 10px | | $dimension.x3 | 12px | | $dimension.x3_5 | 14px | | $dimension.x4 | 16px | | $dimension.x4_5 | 18px | | $dimension.x5 | 20px | | $dimension.x6 | 24px | | $dimension.x7 | 28px | | $dimension.x8 | 32px | | $dimension.x9 | 36px | | $dimension.x10 | 40px | | $dimension.x12 | 48px | | $dimension.x13 | 52px | | $dimension.x14 | 56px | | $dimension.x16 | 64px | | $dimension.spacing-x.between-chips | $dimension.x2 | | $dimension.spacing-x.global-gutter | $dimension.x4 | | $dimension.spacing-y.component-default | $dimension.x3 | | $dimension.spacing-y.nav-to-title | $dimension.x5 | | $dimension.spacing-y.screen-bottom | $dimension.x14 | | $dimension.spacing-y.between-text | $dimension.x1_5 |