Skip to content

Grids & spacing ​

Grids and spacing organize content and actions for any layout

Overview · Grids · Spacing · Density

  • Spacing helps group content, direct attention, and shape the personality of a product
  • A denser layout can feel more serious and focused, while a more spacious layout can feel calm and open
  • Material’s spacing system can adapt to breakpoints and density settings. More on the spacing system

2 screens: 1 mobile with tight spacing, 1 desktop with wider spacing.

Desktop layouts can use more generous spacing than mobile layouts

Spacing to group content ​

Grouping connects related elements that share context, such as an image and its caption. Use spacing to visually tie elements together and establish boundaries between unrelated items.

Photo of dumplings with a caption reading “restaurants in the area”.

Placing a caption under an image creates an implicit group

Explicit grouping uses visual boundaries like outlines, dividers, and shadows to group related elements in an enclosed area.

It can also indicate that an item is interactive, such as:

  • List items between dividers
  • A card displaying an image and its caption

A contact grouped in an outlined card with a photo and caption.

Outlines define clear boundaries to explicitly group elements

Implicit grouping uses close proximity and open space (rather than lines and shadows) to group related items.

For example, the items in a carousel are placed close together, with space around the composition to separate them from other content.

Carousel of food-related photos.

Close spacing implicitly groups carousel images

Spacing to direct attention ​

Use rhythm, similarity, and other grouping principles to distinguish and highlight important elements.

Rhythm ​

Consistent spacing between related elements or groups makes them easier to navigate with the eye.

4 art courses in a row of cards with consistent horizontal spacing and different heights.

Cards should maintain consistent horizontal spacing to establish a strong rhythm when their height varies

Similarity ​

Similar elements should have the same spacing and sizing in a layout to show they’re related.

Leading elements like thumbnails, avatars, or icons should always be aligned.

3 shopping basket list items with the same thumbnail sizes and text styles.

Thumbnails in a shopping basket should use identical sizes and styles to signal that each one represents a product, even if the original photos have different aspect ratios

Proximity ​

Place components near each other to create cohesive groups. This helps people understand the relationships between information and actions.

For example, buttons should be close to the content they’re affecting.

Email message with Reply and Reply all buttons positioned close together.

Placing two buttons as a group near content implies they’ll both affect it in similar ways

Continuity ​

Place related elements in a container, row, or column to establish a clear group or relationship.

Clothing product page with a horizontal row of size chips, with 6 selected.

Use a row of chips to signal a single, unified control

Spacing as expression ​

Give the most important content, tasks, or actions visual prominence with generous spacing and the brightest surfaces.

Focal points ​

Consistent placement of key actions and information helps build recognizable focal points across a product.

2 mobile screens showing carousels with identical layouts and title placement.

Carousel images, categories, and titles should appear in a consistent location across pages

Negative space ​

Allow negative space to give form and meaning to elements on screen. Framing important actions or content with generous spacing creates emphasis.

A mobile screen shows generous negative space around carousel images.

Negative space gives shape and emphasis to the course header

Unofficial offline mirror. Content © Google, licensed under CC BY 4.0.