How to import Figma variables into Framer as color and text styles

By Jake Marsh · Updated

To import Figma variables into Framer, open the Variables panel in Figma, right-click the collection and choose Export modes. In Framer, open Tokenmend with Cmd+K (Ctrl+K on Windows), drop the exported ZIP or its .tokens.json files on the Import tab, set each mode to Light colours, Dark colours or a type breakpoint, read the preview and click Apply N changes. Each color variable becomes one Framer color style with its light and dark value.

How Figma modes map to Framer

FigmaFramer
A color variable with Light and Dark modesOne color style with a light value and a dark value
An alias (a variable pointing at another)The resolved color, followed separately in each mode
Groups in the variable name (brand/primary)Folders in the style name
Typography variables with Desktop, Tablet and Phone modesOne text style with a size per breakpoint
Number variables for spacing or radiusListed as left out: Framer styles hold color and type

Steps

  1. In Figma, open the Variables panel, right-click the collection and choose Export modes. Do the same for a second collection (such as typography) if you have one.
  2. In Framer, press Cmd+K and open Tokenmend.
  3. On Import, pick the files: the ZIP, or the .tokens.json files together.
  4. Check Modes. Tokenmend guesses each mode's role from its name: "Light" as Light colours, "Dark" as Dark colours, "Mobile" as Phone type. A name it doesn't recognize is treated as light, so fix any it guessed wrong, or set a mode you don't need to ignore.
  5. Set Folder to something like Tokens, so the styles sit together in Framer's Assets.
  6. Set Drop leading groups to 1 if every name starts with the collection name (Primitives/blue/500) and you'd rather have blue/500.
  7. Read the Preview. New styles are tagged New, changed ones Change, with the color swatches for light and dark.
  8. Click Apply N changes. If any existing style changes, click again to confirm.

When the variables change

Export the collection again and drop the new files in. The preview shows only what changed: a new brand color, an adjusted dark value. Apply, and the styles update in place, so every layer using them updates too. To also remove styles for variables you deleted in Figma, tick Remove styles in the folder that the files no longer have; it only works inside the folder you set.

Variables that need a person

  • A text style that needs a font you uploaded to Framer is listed and skipped, because plugins can't set uploaded fonts.
  • A text style can hold at most 4 sizes.
  • Notes about anything else that didn't map are under the preview.

What it costs

Reading files and the preview are free. The trial is 10 runs over 7 days, each changing up to 40 styles, with no card. After that Tokenmend is $12 a month, $89 a year or $119 once per seat. See the Tokenmend page for all plans.

Tokenmend

Turn design tokens into Framer color and text styles, keep them in sync, audit and clean up styles, and export them to CSS, Tailwind and JSON $12 a month or $89 a year per seat, or $119 once.


Questions

Do I need to connect my Figma account?

No. Tokenmend reads the files Figma exports. Nothing is uploaded, and the only network call is the license check.

Can I import Figma color styles, not variables?

Tokenmend reads token files. Figma's export covers variables, so styles you want in Framer should be variables in Figma first.

What if my modes are called something else, like Brand A and Brand B?

Set each one by hand in Modes. Only one mode can be the light value and one the dark value of a Framer color style.

Does it work with Figma variables exported by a plugin?

If the plugin writes W3C design tokens or Tokens Studio JSON, yes. Those are both formats Tokenmend reads.


More Tokenmend guides


More Framer guides