Colours

Choose the right colour role for the job, and learn how to read the colour tokens.

Secondary is our secondary UI colour. In the Maersk theme it represents UI elements that require a strong brand colour, for example a large search button on a landing page. Use it sparingly, on one key element. Because it works best when it is rare, it should not become the colour of everyday actions.

In components, Secondary is the secondary appearance. This is a colour, not an action level. A button’s action level, such as primary or secondary action, does not decide its colour, so even a primary action can use the secondary appearance when it is the one key element. See Button for how the filled button uses it.

Secondary colour role example showing a large search button.

When to use

  • One element needs to stand out more than the rest of the view, for example a large search button.
  • The element needs a strong brand colour, for example in a hero or on a landing page.

When not to use

  • The action is part of a normal task, such as saving or submitting. Use Primary or Neutral instead.
  • Several elements in the same view would use it. Pick the one that matters most, so the colour keeps its pull.
  • The colour needs to say that something succeeded, failed or needs attention. Use a status colour instead.
  • If you are not using an MDS component, use the tokens below, not copied colour values. The values change with the brand and the theme.

Colour tokens

These are the Secondary tokens, with their values for the Maersk brand in the light and dark themes.

UseLightDark
Weak border
brand_appearance_secondary_weak_border-color
--mds_brand_appearance_secondary_weak_border-color
rgb(158,215,234)
#9ED7EA
rgba(23,69,84)
#174554
Border
brand_appearance_secondary_default_border-color
--mds_brand_appearance_secondary_default_border-color
rgb(66,176,213)
#42B0D5
rgb(66,176,213)
#42B0D5
Weak background
brand_appearance_secondary_weak_background-color
--mds_brand_appearance_secondary_weak_background-color
rgb(226,243,249)
#E2F3F9
rgb(12,36,44)
#0C242C
Background
brand_appearance_secondary_default_background-color
--mds_brand_appearance_secondary_default_background-color
rgb(66,176,213)
#42B0D5
rgb(66,176,213)
#42B0D5
Weak on background
brand_appearance_secondary_weak_on-background-color
--mds_brand_appearance_secondary_weak_on-background-color
rgb(20,20,20)
#141414
rgb(158,215,234)
#9ED7EA
On background
brand_appearance_secondary_default_on-background-color
--mds_brand_appearance_secondary_default_on-background-color
rgb(20,20,20)
#141414
rgb(20,20,20)
#141414
Text
brand_appearance_secondary_default_text-color
--mds_brand_appearance_secondary_default_text-color
rgb(0, 119, 178)
#0077B2
rgb(66,176,213)
#42B0D5

To understand what terms such as border, background, on-background, text, weak and strong mean in a token name, see Reading the colour tokens .

See also