Tokens Studio for Figma
  • Getting Started
    • Tokens Studio Plugin for Figma
    • Install the Figma Plugin
    • Pro Licence for the Figma Plugin
    • Join the Slack Community
    • Feature Requests - Featurebase
    • Changelog - Featurebase
  • Design Token Fundamentals
    • Intro to Design Tokens
      • Token Anatomy - Type
      • Token Anatomy - Value
      • Token Anatomy - Description
      • Token Anatomy - Name
  • Token Management
    • Token Types
      • Asset
      • Boolean
      • Border - Composite
      • Box Shadow - Composite
      • Color
        • Modified Colors (pro)
        • Gradient Colors
      • Dimension
        • Border Radius
        • Border Width
        • Sizing
        • Spacing
      • Number
      • Opacity
      • Other
      • Text (string)
      • Typography - Composite
        • Font Family
        • Font Weight
        • Font Fallbacks
        • Font Size
        • Line Height
        • Letter Spacing
        • Paragraph Indent
        • Paragraph Spacing
        • Text Case
        • Text Decoration
      • Composition (legacy)
    • Token Values
      • Token Values with References
      • Using Math in Token Values
    • Token Names
      • Token Name Technical Specs
      • Token Groups
      • Edit Token Names
    • Token Description
    • Token Sets
      • JSON View
  • Themes management
    • Themes (pro)
    • Themes that switch
  • Working in Figma
    • Variables and Tokens Studio
    • Styles and Tokens Studio
    • Export to Figma Guide
      • Export Options
      • Export Using Themes (pro)
      • Export Using Token Sets
      • Variables Skipped on Export
      • Styles with Variable References
    • Import from Figma Guide
      • Import Styles from Figma
      • Import Variables from Figma
        • Connect Themes to Imported Variables
        • Imported Variable Types and Token Types
    • Non-local Variables and Styles (pro)
    • Remove Tokens from Figma elements
    • Dev Mode in Figma
  • Settings Management
    • Plugin Settings
    • Base Font Size Setting
    • Token Format - W3C DTCG vs Legacy
  • Token Storage and Sync Integrations
    • Local Document - Figma File Token Storage
    • Remote Token Storage Integrations
      • GitHub - Git Sync Provider
      • GitLab - Git Sync Provider
      • Bitbucket - Git Sync Provider
      • Azure DevOps - Git Sync Provider
      • JSONBin - Cloud Sync Provider
      • Supernova - Cloud Sync Provider
      • Tokens Studio Platform - Cloud Sync Provider
      • URL - Server Sync Provider
      • Generic Versioned Storage - Server Sync Provider
    • Multi-file Sync to Remote Storage (pro)
    • Manage Sync Providers
      • Edit Sync Provider
      • Change Active Sync Provider
      • Remove Sync Provider
    • Sync Changes to Remote Storage - Push and Pull
    • Branch Switching (pro) - Version Control
  • Inspect and Debug Tokens
    • Inspect Tokens
    • Remap Tokens
  • Transform Tokens for Development
    • Style Dictionary + SD Transforms
    • Official docs for Style Dictionary
  • Style Dictionary Playground
  • Troubleshooting
    • Reset Tokens from Dev Console
    • Tokens Studio Status
  • Open Source
    • Contribute
    • Shared Plugin Data
Powered by GitBook
On this page
  • Branch switching (pro)
  • Default branch settings
  • Branch indicator
  • View available branches
  • Limitations of branch switching
  • Resources

Was this helpful?

Edit on GitHub
Export as PDF
PreviousSync Changes to Remote Storage - Push and PullNextInspect Tokens

Last updated 23 days ago

Was this helpful?

Branch switching (pro)

If you are working with one of these Git sync providers and have a Pro Licence for Tokens Studio, you can use the plugin native integration to take advantage of branch workflows to version control changes to your Tokens:

In this guide we will show a GitHub sync provider, but the steps are similar for all other Git sync providers.

Default branch settings

By default, Tokens Studio will connect to the branch you identified in your sync provider settings. You can adjust your Default Branch at anytime from the Settings page of the Plugin.

→

The image below shows an example of a Github sync provider with the setting for branch set to main (number 4).

To support proper version control of your Token Changes, you can create a new branch or switch branches using the plugin.

Branch indicator

When you are connected to Sync Provider that supports branching, the Sync Actions at the bottom of the plugin will be visible.

The Branch Button is on the left, displaying the current branch you are working on.

For example, in the image below, the main branch is active.

View available branches

Selecting the branch name from the Sync Actions at the bottom of the plugin will open the Branch menu which displays:

  1. An option to Create a new branch.

  2. Available branches from your sync provider.

The branches visible in the plugin come from your sync provider.

The plugin can't remove any branches from the list; you have to log into your sync provider to delete branches.

1. Create a new branch

Select the branch name from the Sync Actions at the bottom of the plugin to open the Branch menu.

  • Select the Create a new branch from option.

  • You'll see a list of current branches from your Sync provider.

  • Select the branch you want to make your new branch from.

    • Choosing an existing branch (like main) will:

      • Ignore any local changes you have made to your Tokens in the plugin.

      • Pull in the Tokens from the branch you selected as the starting place for your new branch.

    • Choosing Current changes will:

      • Take the Tokens exactly as you have them in the plugin as the starting place for your new branch.

  • Follow the prompts in the plugin to finish creating your new branch.

    • If you have unsaved changes in the plugin (blue push notification is visible), you will be prompted to push your changes to the Sync Provider before creating the new branch so they aren't lost.

  • Once the new branch is created, the plugin will open the Push Modal to sync your Tokens to your new branch.

2. Switch branches

Select the branch name from the Sync Actions at the bottom of the plugin to see the available branches you can switch between.

  • Select a new branch name to switch to that branch.

  • The plugin will open the Pull modal to see if you want to replace your existing tokens with the Tokens in the new branch you've selected.

Limitations of branch switching

Sometimes, when you open the plugin, it reverts to the default branch in your Sync Provider configuration, for example, main.

Other times, new branches created in a local file are automatically applied in all files sharing the same sync provider, which is not always desired.

it's important to double-check which branch you are working on each time you open the plugin.

  • The name of the branch you are working on appears at the bottom of the plugin for easy reference.

  • You can switch branches by following the steps above at any time.


Resources

Community resources:

  • None yet!

Known issues and bugs

    • Currently no error is shown when you try to push changes to a branch where you don't have permissions for.

  • Branch switching conflicts over multiple files https://github.com/tokens-studio/figma-plugin/issues/2476

    • Branch settings in the plugin follow you across Figma files.

Requests, roadmap and changelog

  • None yet

→

→

Tokens Studio Plugin GitHub -

Add error when TS plugin is not able to push changes

Open issues for Sync Brancing
#2487
Read the guide on editing sync providers here
Read the Keep Your Tokens in Sync guide for more details on the Push modal.
Read the Keep Your Tokens in Sync guide for more details on the Pull modal.
Page cover image

🐞 If you are experiencing an issue not listed here, please reach out to us on the Troubleshooting channel of our , , or send us an email support@tokens.studio

community Slack
submit it on our feedback tool

💡 Something to share?

Submit it here!

💌 Visit to contribute or subscribe to updates.

https://feedback.tokens.studio/

The Multi-file sync to remote storage feature requires a for Tokens Studio. Read the guide for more details.

Pro Licence
Cover

Azure DevOps

Cover

Bitbucket

Cover

GitHub

Cover

Gitlab