Skip to content

Colors

Guidance around color usage is essential to ensure consistent and engaging user interfaces throughout the Emplifi Platform.

Soul uses the gray color palette as a dominant color in the default mode, using subtle shifts in value to organize content into distinct zones.

The core blue family is the primary action color across all Emplifi products and experiences. Additional colors beyond these families are used sparingly and purposefully.

Neutral gray

Interactive and Feedback

The purpose of using color has to be precise and clear. Each color needs to support a message, status, or action that needs to be easily identifiable by users.

Purpose x2

Each use of color is purposely bound to a specific meaning. For instance, red signifies dangerous situations, such as critical errors, green represents success messages, and purple draws attention to news and offers.

ℹ️ Info: Using color as decoration is exclusive to illustrations.

Soul offers consistent color palettes for each color role. This means that each color is assigned a specific relationship within the overall palette.

These relationships ensure that color contrasts remain consistent across every application of color and that proper legibility and understanding are achieved when combining texts with color and interactive shapes with various backgrounds.

Accessibility x2

Colors are meant to be easily understood and read by all users. Sufficient contrast makes things easier to find, identify, and interact with.

Modes serve as an organizational framework for color in Soul, with each mode based on a specific appearance. And they get their names from their appearance. Soul defines two modes: light and dark.

The light mode is based on the Gray 10 background, and the dark mode uses the Gray 110 background. Within each mode, the values for the color variables use the primary background color as the base of its layering model.

The light mode in Soul primarily uses the color range of Gray 10 to Gray 40 with White 100 for background layers, and text and icons use the color range between Gray 110 and Gray 60.

Each color is represented by a specific variable named by the purpose.

Modes - Light preview

Values from @sbks/ds-design-library@10.3.0
NameTokenLightDark
0Default page and dialog background--color-layer-level-0Gray 20Gray 120
1Default container background color on layer 0--color-layer-level-1White 100Gray 110
2Container background color on layer 1--color-layer-level-2Gray 20Gray 100
3Container background color on layer 2--color-layer-level-3Gray 30Gray 90
Values from @sbks/ds-design-library@10.3.0
NameTokenLightDark
PrimaryPrimary color for text layers or icons on top of Layer--color-on-layer-primaryGray 110Gray 10
SecondarySecondary color for text layers or icons on top of Layer--color-on-layer-secondaryGray 90Gray 50
TertiaryColor for tertiary text layers or icons used mostly as a placeholders--color-on-layer-tertiaryGray 60Gray 80
InverseColor on high contrast moments (e.g. tooltips)--color-on-layer-inverseGray 10Gray 10
InteractiveColor represents interactive elements on top of Layer--color-on-layer-interactiveBlue 70Blue 40
WarningColor for text layers or icons on top of Layer represents warning state--color-on-layer-warningYellow 70Yellow 30
DangerColor for text layers or icons on top of Layer represents danger or error state--color-on-layer-dangerRed 60Red 40
SuccessColor for text layers or icons on top of Layer represents success state--color-on-layer-successGreen 70Green 30
RecentColor for text layers or icons on top of Layer represents recent state--color-on-layer-recentViolet 70Violet 30

Dark mode in Soul primarily uses the color range of Gray 120 to Gray 90 for background layers and for text and icons, use Gray 10, Gray 70, and Gray 80 colors.

Each color is represented by a specific variable named by the purpose.

Modes - Dark preview

The tables under Light mode show the dark value of each variable as well.

Colors in the neutral gray palette are layered on each other to create depth and spatial associations. The layering defines the logic of how colors stack on top of each other in a UI.

The layering differs between the light and dark modes.

In the light mode, layers alternate between grays and white with each added layer.

In the dark mode, layers become one step lighter with each added layer.