Figma Support Forum

Support for relative font size units (vw, vh &c)?

Is there a plan for Figma to support relative font size units, such as vw, vh, vmin, vmax, etc.? The design system I’m working at is trying to add fluid font size calculations to bigger title sizes, and Figma’s native support for these units would be extremely helpful.

I’m also working separately on a plugin that converts inputed relative units to px values, but it seems Figma’s API won’t support background-running plugins that observes text layer changes. Any thoughts on making the plugin more useful?

1 Like

There is no way to do that, so feel free to change your topic to a feature suggestion and move it into #product-ideas or just create a new topic there.

Seems like the plugin linked below is your solution.

  • Text Resizer helps you update your designs quickly and flexibly with respect to the base font size defined for 1rem …

Hmmm, wait a moment, maybe you mean fluid resizing font relative to the container size. I haven’s seen support for this in html/css either, so doubt it will be possible in Figma. I may be wrong.

The vw, vh, vmin, vmax units define font sizes in relation to their viewport sizes. For example, if the viewport width is 1600px, 1vw equals 1600/100 = 16px.