Layout and spacing

Last updated on January 14, 2025

Understand how to lay out and space B.C. Design System components.

On this page:


Layout principles

If needed, use the Bootstrap v5.x grid system and breakpoints as a reference.

The B.C. Design System does not use a hard grid. It provides a set of standardized spacing and sizing measures to help users structure layouts consistently. You can access and use these measures using design tokens.

Sizing and spacing is modelled on an 8-point grid, to:

  • Help ensure a harmonious relationship between user interface elements
  • Make it easy to assemble layouts that work well across common screen sizes and layouts 

The design system currently defines 't-shirt size' options for:

  • Margins
  • Padding
  • Border radius
  • Border width
  • Icon sizing

Sizing and spacing measures

This list of tokens is provided as a reference. To use tokens, you need to install the package as a dependency and use the appropriate variables for your tech stack.

Most sizing and spacing measures are defined in relative (rem) units. Pixel values assuming a root font size of 16px (the default for most browser user agents) are shown in brackets for reference.


Accessibility

Refer to the simplified WCAG guidance to help you ensure your product is accessible: