Foreground colors

Meant for generic content

Foreground colors are used for generic content such as text or icons. They are only used in combination with the surface backgrounds. Surface backgrounds are more neutral in color tones and can support more text colors than other types of background colors such as contextual or categorical backgrounds.

Foreground colors may only be used with the following properties:

iOS (Swift)

textColor, tintColor

Web (SCSS)

color, fill

Android (XML)

android:textColor, android:tint

Android (Kotlin)

setTextColor(), setTintColor()

 

Usage

Foreground colors are carefully selected to ensure readability and accessibility of textual or graphic content within your UI, which is always placed on top of a background (thus the “foreground” naming). These colors are meant to be used for textual content (e.g. headings, body text, labels, links) and icons.

Foreground colors are organized in a hierarchy based on their importance and usage:

  1. foreground/default is for important texts like headings, titles and main body text.
  2. foreground/support is used for less prominent text, like labels and secondary text.
  3. foreground/brand is used for non-interactive but brand expressive content.
Usage

 

Foregrounds also consist of colors that express contextual information such as:

  • foreground/info
  • foreground/success
  • foreground/warning
  • foreground/danger
Contextual

 

Resources

Below, you can find additional documentation and resources to help you navigate the world of design tokens. The documentation includes guides for engineers and designers, as well as high-level information about our design tokens at Backbase.

 

Semantic tokens

Discover all foundational concepts to get you started with our new semantic tokens architecture.

 

Migration

Learn more about how to migrate to the latest version of our design tokens (semantic tokens).