Modes

In progress

Modes enable the color palette to change from light to dark, providing the flexibility to choose an option that best fits a preference or need. Choosing a suitable mode can improve accessibility, reduce eye strain in low-light conditions and increase reading speed.

The following example demonstrates the two available modes. Each mode shares the same components and design tokens, with just colors changing depending on the chosen mood.

Example of light and dark modes

Light mode works well when users are likely to visit your application content semi-regularly. It appears more open, familiar and friendly, but may cause eyestrain when viewed for lengthy periods.

Consider applying a dark mode if you're designing an interface that will be used continuously for long periods. It may be easier on the eyes in certain environments, but it could increase eye strain when reading long text passages.

Each mode includes two background options: primary and secondary. The two backgrounds allow for color layering, which you can use to separate regions or blocks of content and help establish a visual hierarchy.

Example of primary and secondary backgrounds for each mode
TokenFigmaLight modeDark mode
--salt-container-primary-backgroundContainer/Primary/Backgroundcolor-whitecolor-gray-800
--salt-container-secondary-backgroundContainer/Secondary/Backgroundcolor-gray-20color-gray-600

Aim to balance the use of color by following the 60-30-10 ration. This simple rule helps create a well-balanced design by adhering to the following guidelines:

  • 60% primary (or dominant) color—the neutral primary background color, forming the base color of a design
  • 30% secondary color—defines areas of focus, for instance, a summary panel, a set of high-level metrics, a toolbar or the navigation
  • 10% accent color—draws the eyes to specific and important elements, such as a call-to-action, a prominent heading, image or data visualization.
Example of primary and secondary backgrounds for each mode
AnnotationPercentageUsage
160%Primary background color
230%Highlighted region
310%Navigation accent bar and call-to-action

We appreciate your thoughts and feedback on any content in the Salt foundations. Please contact us if you have any comments or questions.