Bedrock Design System

Spacing and Layout

OverviewPermalink to: Overview

The spacing tokens were named with their pixel values to ease the handover process from the designers to the frontend engineers. This was a mistake.

StatusPermalink to: Status

The utilization is sparse, due to the nonsensical nature of writing var(--spacing-16) instead of 16px in a CSS file.


Spacing tokensPermalink to: Spacing tokens

Spacing tokenremPixel value (Figma)Description
--spacing-040.25rem4pxUsed to space icons, badges and text inside buttons, controls etc. Width/height of active-indicator depending on orientation
--spacing-080.5rem8pxInner margins in list items around icons.
--spacing-161rem16pxInner margins in list items around text.
--spacing-241.5rem24pxStandard margin inside slidey-panel.
--spacing-322rem32pxSpace between sections on overviews.
--spacing-483rem48pxSpace between dense sections on admin pages.
--spacing-644rem64pxOnly found in mobile spec files.

GridPermalink to: Grid

Centered contentPermalink to: Centered content

928 dpPermalink to: 928 dp

This is the standard width of our spec files, as it used to allow the old collapsed left nav to be visible on a landscape standard iPad. It makes much less sense now, but it does divide by 8.

Status: It’s only being used on very few pages, despite being decided in 2019.

1140 dp (Future)Permalink to: 1140 dp (Future)

Once we have deployed the 928 grid, we can start developing a larger one for large screens

No left navPermalink to: No left nav

Used on shared dashboard, access to single comment/conversation from email link (only available if personal dashboard is turned off).

StretchPermalink to: Stretch

With content navigationPermalink to: With content navigation

Content navigation refers to the left side menu inside the content area, used on attributes, employees and access control. Only used in administration pages, where the user will benefit from full width content because of complex table data.

HeatmapPermalink to: Heatmap

The only page that uses full width on the manager dashboard. Currently, the Impact chart is also stretched to full width, but it shouldn’t be.

Our breakpointsPermalink to: Our breakpoints

Very chaotic, as everything was developed for desktop browsers first, and as feature by feature was developed, arbitrary breakpoints were used.