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
  • Base font size setting
  • In the plugin
  • Change the base font size setting
  • Importing Variables
  • Limitations and known issues
  • Resources

Was this helpful?

Edit on GitHub
Export as PDF
PreviousPlugin SettingsNextToken Format - W3C DTCG vs Legacy

Last updated 5 months ago

Was this helpful?

Base font size setting

The Base Font Size provides the value for 1rem in the plugin.

This feature not only supports responsive design decisions but also ensures the adaptability of the design, similar to how engineers work in code.

When you assign a Token's value in rem units, the property is related to the Base Font Size, which the user of your product or website can adjust.

  • For example, if the user increases the font size or uses a zoom feature, all design properties defined in rem units will respond accordingly.

In contrast, design elements defined in pixels will remain the same regardless of the user settings.

Figma does not support rem units in Design Mode, but it will show a loose conversion of rem units in Dev Mode, always assuming 1rem = 16px.

In the plugin

When working with the Tokens Studio plugin for Figma, it automatically converts rem units to pixels for you.

The value of the Base Font Size is 16px by default, but it can be changed.

  • The plugin supports the value of the Base Font Size token to reference another token if desired.

  • This could be helpful for sophisticated token structures, where a different Base Font Size is defined for each brand or theme.

View the current base font size setting

Navigate to the Settings Page in the plugin.

  • Scroll down to the Base Font Size section.

You will see:

  • The current value of 1rem unit

Change the base font size setting

Navigate to the Settings Page in the plugin.

  • Scroll down to the Base Font Size section.

  • Select the Change Button to the left of the current value being displayed.

  • The Change Base Font Size Modal will open

  • Enter a new value in the form field:

    • Hard-coded value in pixels

      • For example: 18px

    • Reference a token by typing it's name in curly brackets or selecting the dropdown button

      • For example: {rem-base}

      • The compatible token types you will see are number, dimension and fontSize

  • Select the Confirm Button to save your changes.

  • The new value for 1rem will appear in the Base Font Size settings.

Importing Variables

ADD A BLURB HERE OF HOW IT WORKS


Limitations and known issues

When working with the plugin's Base Font Size setting, there are a couple of things to be aware of.

The setting follows you across Figma files

The Base Font Size setting in the plugin is related to your Tokens Studio user account.

  • This means the setting is not specific to your Figma file or sync provider.

  • Changes made to this setting will apply to every Figma file.

If you work on many projects with different values for this setting, it is a good practice to check the Base Font Size value each time you open a new Figma file.

THERE IS AN ISSUE OPEN TO FIX THIS WITH THE MIGRATION ASSISTANT PROJECT

If the plugin can not find the token referenced in the setting, you will see a Broken Token icon next to the value as a reminder to change it.

Values to watch for

There is a known issue with the form field, where it accepts some values that it should not. Until the issue is fixed, you'll want to avoid:

  • Values with rem units

    • The plugin will drop the unit and assume the number is the value in pixels.

    • For example, 1rem will be 1px as the value

  • Empty value

    • The plugin will assume 16px when the input is empty.

  • Typos in the value

    • Incomplete references can be saved but will appear as broken on the settings page.

    • For example, {base-token is missing the closing curly bracket }


Resources

CSS resources:

Community resources:

  • None yet!

Known issues and bugs

Requests, roadmap and changelog

  • None yet!

MDN Web Docs -

Tokens Studio Plugin GitHub -

Import from Figma Guide
CSS Values and Units
Open issues for Settings Base Rem Value

💡 Something to share?

🐞 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

Submit it here!
community Slack
submit it on our feedback tool

→ Read the Token Values with References guide for more details

Token Values with References

💌 Visit to contribute or subscribe to updates.

https://feedback.tokens.studio/