Border radius

We use border radius in our designs to give elements or components rounded corners.

Border radius tokens are used to give sharp edges a more subtle, rounded effect. This makes the edges of cards or buttons easier to see. They use rem units so they scale with the base font size. The pixel values displayed are based on a 16px font size (1rem).

Guidelines

Elements and components in the design system have the correct border radius applied. If you are building something new, this table shows what each radius should be used for:

Example
Token
rem (build)
px (design)
Usage
radius-2
0.125
2

For very small elements that require a radius

radius-4
0.25
4

DEFAULT.
Atoms and small components such as Buttons, Inputs, Compact messages

radius-8
0.5
8

Molecules or containers that could have Atoms inside of them such as Cards, Content blocks and Comfortable messages

radius-12
0.75
12

Larger components and containers that will likely have multiple nested elements, such as Journey summary, Search widget and Modals

Nested radius

Elements with a radius that are nested within another element with a radius must be distant at least 2x times of their own radius.

For example, an element with a radius of 8, must be at least 16px away from the edge of its parent.