Page Loading

Using modifiers

Modifiers help us customise the look and layout of individual panels and containers, by adjusting things like padding, colours background or alignment. Modifiers bring lots of flexibility but can also bring complexity and inconsistency.

How do modifiers and panel settings work?

Modifiers and panel settings help you customise each panel to fix spacing issues or achieve different styles and layouts. The modifiers you can use are:

  • Background theme – the background colour of the panel or container
  • Direction – this dictates whether content should stack vertically or sit horizontally
  • Span – this controls the width of the page that a panel covers  
  • Alignment – this controls whether the content is left, centre or right aligned
  • Margins – this controls the spacing around the outside of a panel or container
  • Padding – this controls the spacing between the outside of a panel or container and the content inside it  

Some settings are device specific, so remember to select the individual device you’d like to modifier to apply to, or select ‘all’ if the modifiers should apply to all devices. 

Using panels and containers

Modifiers are applied at the panel level and container level, rather than to each individual component. Panels and containers are new to the design system, and might take some getting used to.

Adding components to panels allows you to control the look and feel of each section of the page by adding different backgrounds or changing the spacing between elements. If some content within a panel needs to behave differently, you can put it in a container and adjust the modifiers for the container.

For example, a 50:50 panel is made up of a panel and two containers. At the panel level, the direction is set to horizontal as this will make sure the two containers sit side by side. At the container level, the direction is set to vertical so that the content inside each container stacks vertically.