MDS Assistant is an experiment.
Hi, I'm the MDS Assistant and can help you with information from our guidelines and components.

I do not provide code and development guidance. For coding assistance, please check out our experimental MCP server.

Corner radius

Corner radius refers to the curvature of the corners on elements like cards, buttons, notifications etc.

Our visual design language is defined and built around the Maersk symbol, more specifically it is the language of the round corners of the container. Making the curvature of borders an important part of our design language, contributing to the overall brand recognition and ensuring a consistent look and feel across all our components.

Nested components

For components that contain other components, it is important to ensure that the outer component has a larger corner radius than the nested component. This approach creates a visually appealing and balanced spacing between the two elements.

All components come with a default border radius applied and are designed to work harmoniously in most situations. However, there may be special cases where you need to manually adjust the border radius of a nested component. In the table below, you can view all the available values.

Values

NameValue
radius-xs2px
radius-sm4px
radius-md6px
radius-lg8px
radius-xl12px
radius-2xl16px
radius-full9999px

2xl radius (16px)

Used for elements such as large images, dialogs, or modals.

 2xl radius example.
2xl radius example.

xl radius (12px)

Used for components such as cards, which frequently contain nested components.

xl radius example.
xl radius example.

lg radius (8px)

Used for components such as notifications, toasts, popovers, and tables.

lg radius example.
lg radius example.

md radius (6px)

Elements such as buttons and input fields.

md radius example.
md radius example.

sm radius (4px)

Smaller components, such as checkboxes.

sm radius example.
sm radius example.

xs radius (2px)

Small components that are typically nested inside other components.

xs radius example.
xs radius example.