Is there a way to constrain proportions of variants, so when instantiated you can set them to Fill the parent container without loosing the original aspect ratio?

Hello Figma world,
I’m making a video player component in Figma with a few variants for aspect ratios. I want users to be able to “Fill” their parent layout both Horizontally and vertically while preserving the proportions of the variant they have selected. In other words I want to lock the proportions of my variants.

I’m finding that it’s easy using contraints on basic frames but that both the “lock aspect ratio” and “Constraints” features are unavailable when working with instances and variants. So what can I do as a workaround?

Thank you kindly for any help with this.

Update: I guess another way to solve this would be to have a FIT property in the H and V dropdown.

Hey @Ludwig_T I’ve been trying out a few things on this but at the moment I don’t think this is possible. I know a true aspect ratio lock is something that users have asked for in the past, and I’m happy to pass this idea along too.


Thnk you kindly Josh that would be great! :smile: Should I create a feature suggestion as well in the community?

1 Like

There’s this one here: "Constrain proportions" should actually constrain proportions

Feel free to add your vote and any additional comments/context there. :slight_smile:

1 Like

Voting for it now, thank you @Josh