Skip to main content

Colors

The mobile apps design system coloring logic is built using System Colors and Design Tokens

Design Tokens​

Design Tokens are contextual colors based on the system colors.
The design token name structure is "$[property]-[semantic]-[weight]". (e.g $backgroundPrimaryHeavy, $textSuccessLight)

Token
Light Mode
Dark Mode
$backgroundDefault
$backgroundElevated
$backgroundElevatedLight
$backgroundNeutralHeavy
$backgroundNeutralIdle
$backgroundNeutralMedium
$backgroundNeutral
$backgroundNeutralLight
$backgroundPrimaryHeavy
$backgroundPrimaryMedium
$backgroundPrimaryLight
$backgroundGeneralHeavy
$backgroundGeneralMedium
$backgroundGeneralLight
$backgroundSuccessHeavy
$backgroundSuccessLight
$backgroundWarningHeavy
$backgroundWarningLight
$backgroundMajorLight
$backgroundMajorHeavy
$backgroundDangerHeavy
$backgroundDangerLight
$backgroundDisabled
$backgroundDark
$backgroundDarkElevated
$backgroundDarkActive
$backgroundInverted
$backgroundPremiumHeavy
$backgroundPremiumLight
$backgroundDineLight
$backgroundFitLight
$backgroundDineHeavy
$backgroundFitHeavy
$backgroundBrandedHeavy
  • Property - The property we use this token for. The properties are:

    • background
    • text
    • icon
    • outline
  • Semantic - the meaning of the color, what is the message that we want to pass using this color. The semantics are:

    • neutral
    • primary - the primary color of the app, means, blue for Spaces app and green for Fit app.
    • general
    • success
    • warning
    • danger
    • premium
    • dine
    • fit
    • disabled
    • inverted
    • default
  • Weight - the weight of the color (optional). The weights are:

    • light
    • medium
    • heavy

So, for example, a valid token can be: $backgroundPrimaryHeavy or $textSuccess.