Skip to main content
vdekkernl
Active Member
Dec 9, 2022 3:07 PM UTC

Use percentages for heights, widths, paddings, gutters in auto layout

This makes it easier to use components in designs for different screen sizes. And then you don’t have to calculate every time what 40% or 60% of the width is.

This also makes it easier to design scalable applications that grow with the width of the screen.

106 replies

Mark_Chitty
New Member
Apr 3, 2026 4:56 PM UTC

Workaround for % based scalable bar-charts (and other scenarios)

Here’s a workaround component for this problem which uses Figma’s grid layout in 10 variants with stepped widths from 100% down to 10%. (It also uses Figma’s new Slot property, but it would work fine with a traditional ‘slot’ component as well). This has worked for me in creating scalable + reusable bar chart components.

My version is limited to 10% increment steps, so you can’t do more fine-grained widths than that, but the principle could be extended for 75:25, 33:66 or any other ratio, or heights instead of widths. You could also have more than 1 slot property so it could work for multi column layouts, etc.

 

Poliklot
New Member
Jul 10, 2026 10:21 AM UTC

I strongly support percentage values for Auto Layout dimensions, padding, and gutters.

I would also add support for calculated mixed units. In responsive web UI, we often need rules such as:

calc(50% - 32px)

Percentages alone and “Fill container” do not cover this when the rule belongs to one specific layer and must remain reusable across component instances.

Detailed use case and proposed behavior:
link to my detailed comment

Would love to hear whether this is on the Auto Layout / Design Systems roadmap.

UI_Designer2
New Member
Oct 3, 2026 6:03 AM UTC

 

Christopher_Gibson
New Participant
Nov 2, 2026 6:37 PM UTC

Hard to believe this request is three plus years old and we still don’t have the ability to use percentages for widths.

Anumod Ajith
New Member
Nov 12, 2026 5:41 AM UTC

Can we get some priority on this please.

tlemaitre
New Member
Nov 25, 2026 10:26 PM UTC

It would also help if i want to set the first item to fill completely the container and have the other elements to fill up the remaining space under it!

----------------

------- --------