Skip to main content

Spacing

Clear layouts allow users to understand and navigate content quickly and easily. Use these guidelines to create intuitive web layouts.

Overview

Forge uses a 4px system for its layout structure. This means that content and components can be divided by 4 and all fall on a balanced grid. For example, spacing between elements in a layout is typically set to 24px, with more dense pages using 16px.

These are used for spacing inside of elements (padding) as well as spacing around elements (margin).

The spacing system: 8, 16, 24, 32, 48, 56ox

Example spacing inside and between elements

SpacingPaddingExample Usage
8pxDefault spacing between chips
16pxDefault padding for cards, dialogsDense spacing between related elements
24pxRoomy padding for cards, dialogsDefault spacing between related elements
32pxn/aDefault spacing between sections
48pxn/aDefault spacing between sections
56pxn/aApp Bar height, Toolbar height, roomy spacing between sections