Contribution

Understand how to contribute to the design system, from proposal to announcement.

Contributing Design Tokens

Contributions are welcome across the system, but token updates need special care, as they are the foundation of our design system.

  • The single source of truth for tokens is the design-tokens repository.
  • On the design side, tokens live in our Figma library as Variables and Styles.

To keep design and code aligned, we use Tokens Studio, a third-party Figma plugin that lets us edit tokens and push changes to the repository through an automated PR flow.

 


Before you start

  • Review the Design Tokens Overview to understand structure and naming.
  • Search existing tokens to avoid duplicates.
  • Coordinate foundational changes with the committee before updating anything.

 


Setting up Tokens Studio

When you open the plugin, you'll see that the tokens are organized into several sets. Some of these sets are related.

To make sure your changes apply correctly, you have to select the theme you're working on and the reference sets it depends on before editing or exporting tokens.

Themes can be referenced to each other

Themes can be referenced to each other

  1. With nothing selected in the canvas, open Tokens Studio in the MDS Tokens 2.0 file.
  2. Create a branch for your contribution.
  3. Select the theme you want to edit (e.g., B2B Light, B2B Dark, GX Light, GX Dark).
  4. Select the reference sets that the theme depends on (see table below).
    These sets must stay selected when editing or exporting.

Theme

Reference sets

Foundations

-

B2B Light

Foundations, Palette Light, Legacy Light

B2B Dark

Foundations, Palette Dark, Legacy Dark

GX Light

Foundations, Palette Light, Legacy Light

GX Dark

Foundations, Palette Dark, Legacy Dark

Ensure all relevant themes are selected, both in the sidebar and Theme dropdown

Ensure all relevant themes are selected, both in the sidebar and Theme dropdown

 


Editing or adding tokens

Whether you are editing or adding a token, the workflow is the same.

Editing:

  • Right-click the token.
  • Choose Edit token.
  • Update its name, value, or description and save.
Edit token

Adding:

  • Click Add a new token (+) in the correct group.
  • Select reference token from Palette Light, Palette Dark, or Foundations.
  • Name it according to naming conventions.
Add new token on the relevant group.

Add new token on the relevant group.

Select a reference token from relevant sets. Never add raw values.

Select a reference token from relevant sets. Never add raw values.

 


Exporting changes to Figma

In Tokens Studio, export changes one theme at a time:

  1. Go to Styles and Variables → Export Styles & Variables to Figma.
  2. Select relevant update areas (variable types, styles).
  3. Select the main theme and relevant reference sets to ensure changes are applied correctly.
  4. Confirm your updates appear correctly in the Variables and/or Styles panels.
  5. Repeat the process for the other themes, always selecting the main theme + reference sets.
For better results, export changes theme by theme (B2B Light, B2B Dark, GX Light, GX Dark)

For better results, export changes theme by theme (B2B Light, B2B Dark, GX Light, GX Dark)

To delete a token, follow the same process and enable the Remove styles and variables without connection to a token option.

 


Pushing changes to GitHub

When everything looks correct in Figma:

  1. Click Push to GitHub in Tokens Studio.
  2. Add a clear commit message describing your change.
  3. Click Push Changes.
  4. Contact engineering to review, merge, and deploy the update.
Export to GitHub