Skip to content

Container Tokens

Why?

Group a set of layers together to ensure consistent and safe usage.

The container token brings together everything that we've seen so far into just three tokens that can control almost every colour aspect of your components.

Container Tokens
Name
Card
Primary Control
Sentiment Control
Container
Active
Background
Layer/Background/Panel
Layer/Background/Primary
Layer/Background/Sentiment
Foreground
Layer/Foreground/Panel
Layer/Foreground/Primary
Layer/Foreground/Sentiment
Border
Layer/Border/Panel
Layer/Border/Primary
Layer/Border/Sentiment

And there we go - only three variables, only one of which is available any one scope.

Simply apply the Container/Background variable to your component background, and you'll be able to switch between sentiments and interaction states.

This is only the start though - there is yet more information we can include in this.