Skip to main content
OG_Can
Active Member
Jun 27, 2023 10:27 PM UTC

Use percentage for size variables

Hello. I was wondering if it is possible to have percentage values in variables, like setting percentage value for frame widths or shape sizes (etc.) that have variable modes applied to them? Percentage values could respond better to content that varies within a frame or frames within frames.

    79 replies

    Mike Hnr
    New Member
    Feb 7, 2026 6:00 AM UTC

    Hi ​@OG_Can ,
     

    Yes, you can use percentage-based values in variables, depending on the design tool you're using. Many tools support relative sizing—like setting width or shape size to a percentage of the parent frame—which works great for responsive layouts. If your tool supports expressions or constraints, or if you just need to quickly calculate values manually, this Percentage  Calculator is a super handy tool to have on hand.

    Let us know what software you're using for more specific tips!

    When you base text sizing on a variable, you’re basically creating a single source of truth for your scale. A common approach is setting a root value like --base-size and building headings and spacing with calc() or clamp() so everything grows proportionally. It keeps layouts consistent and easier to tweak later.

     

    Kyle_Johnson
    New Participant
    Feb 12, 2026 10:55 PM UTC

    +1 agree this is needed.

    Alexander_Hahn1
    New Participant
    Feb 23, 2026 12:04 PM UTC

    up!

    Jason TM
    New Member
    Mar 5, 2026 4:19 PM UTC

    Relative values are needed for tracking and line-height

    Alyssa_Maac2
    New Member
    Mar 29, 2026 11:36 AM UTC

    We really need this. It’s very basic stuff.

    Julien Caussade
    New Member
    Mar 30, 2026 7:47 AM UTC

    + 1

    Pierre14
    New Member
    Apr 29, 2026 1:55 PM UTC

    +1

    mnorooz
    New Member
    May 16, 2026 2:36 AM UTC

    I can’t believe this thread started years ago and Figma still hasn’t delivered this. These are basic features needed for a proper design-to-code translation, especially for Figma Make if you don’t want to get AI slop. I’m not sure why critical UI capabilities like this are not being prioritized.

    Craig_Garner
    New Participant
    Jun 22, 2026 3:26 AM UTC

    Utterly baffling why Figma continues to ignore basic functionality like this. Absolutely pathetic.