This is a preview of our new spacing scale

Expect frequent changes as we iterate over the coming months. For early access and release updates for Atlassian employees, see details.

The consistent and intentional use of a spacing system creates a more harmonious experience for the end user. A spacing system also lays a foundation for responsive design and customisable UI density in the future, which will enhance the overall quality and accessibility of our products.

Spacing base unit

Our spacing system is built around a base unit of 8 pixels. This base unit determines the spacing scale and ensures visual consistency across products.


Building on the 8px base unit, the main foundation of our spacing system is the spacing scale. This scale is a limited set of spacing values that is used to lay out UI elements in a consistent way.

Each spacing value is a multiple of the base unit and ranges from 0px to 80px to allow for flexibility while still maintaining consistency across different layouts.

Spacing tokens are not yet available for use

The spacing tokens listed below are not yet available for use. They have been included for demonstrative purposes only, and are subject to change.

TokenBase unit multiplierREMPixelsVisual representation

Spacing usage

Different use cases require different ranges of spacing units to achieve the best outcomes. Our spacing scale can be broken into three different size ranges:

Small values

Use values (0 to 8px) for small and compact pieces of UI.

  • Gap between small icons and text

  • Container padding of small components (ie badges, icon buttons, table cells)

  • Gap between repeating elements (ie button groups)

  • Padding within input components

  • Vertical spacing between elements in a card (ie a title and description, a description and actions)

  • Gap between the trigger and elevated element (ie between dropdown button & menu)

Medium values

Use values (12 to 24px) for larger and less dense pieces of UI.

  • Container padding of larger components (ie buttons)

  • Space between avatar/large icon and content (ie section messages)

  • Vertical spacing between elements in cards

  • Spacing between items in less densely packed or larger components

Large values

Use values (32 to 80px) for the largest pieces of UI and for layout elements.

  • The space between content on the page (ie spacing between top of page and header)

  • Alignment within larger pieces of content (ie alignment of content in Flag)

Spacing principles

A layout is composed of UI elements and components as well as the space between them. The following design principles can be applied to help customers quickly understand the relationship between elements, allowing them to scan and digest page content with ease.

Group by similarity

Users expect elements to be grouped semantically, or grouped in such a way that it provides greater context around the information provided.

Using consistent spacing around elements lends them a visual similarity that helps the user understand their semantic relationship. For example, a table or list of items should be spaced consistently to create the sense of a cohesive unit or collection.


Group similar items together using similar spacing.


Group similar items differently.

Group by proximity

The distance between elements creates semantic meaning, elements that are placed close to one another are assumed to be related. Use this principle to create meaning by placing more related objects closer together, and less related objects further apart. For example, place elements that are part of the same flow or user action closer together so users can understand their relation.


Group related items close together so that users can scan the content more easily.


Group related items far apart.

Create order and hierarchy

Users look for order in visual information to reduce the mental effort required to scan and process data. Therefore, the ordering of elements on a page can be used to encourage users to follow a certain flow or journey.Users look for order in visual information to reduce the mental effort required to scan and process data. Therefore, the ordering of elements on a page can be used to encourage users to follow a certain flow or journey.

Hierarchy is used to rank elements and influence the order in which users view them. The sizing of different elements lends more importance to larger elements by drawing focus, and less to smaller-sized elements. Similarly, varying the amount of whitespace around an element can be used to group elements together or separate them to impart greater importance.


Use scale and whitespace to rank elements


Give every element the same visual importance

Introduce visual rhythm

Patterns of alternating elements and white space create visual rhythm, which influences way users scan a page and focus their attention.

Using a pattern of similar spacing between elements (such as in a table or list) creates a predictable rhythm for the user to follow. This consistent rhythm reinforces the similarity in importance of each of these elements.

Varying the spacing between and sizing of objects creates a more organic flow and guides the user through a page or experience naturally. Variation creates points of attention and contrast between objects on the page and improves scannability.

Optical adjustment

While using a spacing system improves consistency, the visual harmony of a page may not be perfect the first time. The visual weight of an element affects the size and spacing that may be required to create balance on the page, and may deviate from standard spacing patterns. Optical adjustments should be used to correct these imbalances and maintain the page’s flow.

Optical adjustments require using the spacing scale units and visual intuition to make minor changes to the spacing between objects in order to create visual harmony.


Adjust spacing to create visual balance


Use standard spacing without considering its alignment with other elements

Was this page helpful?

We use this feedback to improve our documentation.