How to set Framer text style breakpoints from type tokens
By Jake Marsh · Updated
To set Framer text style breakpoints from type tokens, open Tokenmend, pick your type token files on Import and set each mode under Modes to Desktop type (1200+), Tablet type (810+) or Phone type. Tokenmend makes one Framer text style per type token, with a font size for each breakpoint, plus its font, weight, line height, letter spacing, case and HTML tag. Read the preview, click Apply N changes, and headings shrink on smaller screens without a separate style per device.
What a type token becomes
| Token value | Text style setting |
|---|---|
| Font family and weight | Font, from Framer's font list |
| Size per mode | A size at each breakpoint |
| Line height | Line height, in px, em or % |
| Letter spacing | Letter spacing |
| Text case | Transform |
A heading level in the name (h2, Heading 2, Display) | The HTML tag (H2, H2, H1); other names get a paragraph tag |
| A color it refers to | A link to that color style |
Sizes in rem are converted to pixels.
Steps
- Get your type tokens with one mode per screen size. In Figma, a typography collection with Desktop, Tablet and Mobile modes, exported with Export modes. In Tokens Studio, sets for each size.
- Open Tokenmend (Cmd+K or Ctrl+K) and pick the files on Import.
- Set Modes: the largest to Desktop type (1200+), the middle to Tablet type (810+), the smallest to Phone type.
- Untick Color styles if you only want type this time; leave Text styles ticked.
- Set a Folder, such as
Type. - Read the Preview. Each text style lists its sizes per breakpoint and what changed.
- Click Apply N changes, then check one heading on the canvas at each breakpoint.
An example
A token heading/h1 with 64 px on Desktop, 48 px on Tablet and 36 px on Phone, in Inter at weight 700 with a 110% line height, becomes one text style Type/heading/h1 tagged H1, with those three sizes. Any text layer using that style changes size at Framer's breakpoints.
Limits
- A text style holds at most 4 sizes, which is Framer's limit.
- Fonts you uploaded to Framer can't be set by a plugin. Those text styles are listed and skipped; set the font by hand.
- Paragraph spacing comes across if the token has it. Spacing between blocks, padding and radius aren't text style settings.
What it costs
The preview is free. Applying is one of the trial's 10 runs over 7 days (up to 40 styles each, no card). After that Tokenmend is $12 a month, $89 a year or $119 once per seat, as shown on the Tokenmend page.
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
Can I change a type scale later?
Yes. Import the updated tokens; matching text styles get the new sizes, and the preview shows old and new values first.
What if my tokens only have one size?
Then each text style gets one size. Set the mode to Desktop type (1200+).
Does it set the HTML tag?
Yes, from the token's name: h1 to h6, "Heading 3" or "Title 2" set that level, "Display", "Hero" and "Headline" become H1, and everything else is a paragraph. The tag only changes the markup, not the look.
Can I use breakpoints other than 1200 and 810?
The roles follow Framer's default breakpoints. Check the result on your own breakpoints after applying.
More Tokenmend guides
- How to find unused, duplicate and hand-typed colors in a Framer project
- How to import Figma variables into Framer as color and text styles