I need this! Also seems to be related to these threads about %:
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.
Firstly great job Figma Font variables are here!!!
[Figma tutorial: Variables for typography]
The only thing missing is the use of percentages in the line-height property.
You can not use a percentage in the line-height as it only accepts variables that are a number type.
Although the variables for line-height caters for pixel (absolute) line-heights (10,12,14)- it does not accommodate relative line heights.
In other words you can’t use percentage variables for line heights that …
Yes, this would be helpful. Would be even better if this aligns to the layout grid. You can set a layout grid within Figma, but when setting up containers with auto-layout, it is not possible to align them on the grid. Except for manually, but that’s not responsive.
2 Likes