Skip to main content
Solved

(Bug) Applying variables to stroke sizes


Mateusz_Przytula

I recently switched to using Variables in my design system and now applying new variables to components is a tedious process, especially when it comes to specifying the border (stroke) widths using variables. The variables icon appears only if one selects a custom set of strokes for an element and only after applying the same variable to each stroke position (top, left, right, bottom) the main stroke width input magically supports variables.
Screenshot 2024-05-09 at 15.47.59

Best answer by Junko3

Hi @Mateusz_Przytula, Thank you for pointing that out! I completely understand how helpful it would be to be able to apply a variable to all sides of a stroke simultaneously.

Could you please try right-clicking on that field and selecting “apply variable…”?
Screenshot 2024-05-13 at 11.01.09

I initially had the same thoughts as you when I saw your post, but then I found this: Variables for stroke width? Feel free to check out the last two comments of this post 😉

I hope this helps. Please let us if there’s anything I’ve misunderstood.

Thanks,

View original

6 replies

  • Figmate
  • 1843 replies
  • Answer
  • May 13, 2024

Hi @Mateusz_Przytula, Thank you for pointing that out! I completely understand how helpful it would be to be able to apply a variable to all sides of a stroke simultaneously.

Could you please try right-clicking on that field and selecting “apply variable…”?
Screenshot 2024-05-13 at 11.01.09

I initially had the same thoughts as you when I saw your post, but then I found this: Variables for stroke width? Feel free to check out the last two comments of this post 😉

I hope this helps. Please let us if there’s anything I’ve misunderstood.

Thanks,


Mateusz_Przytula

Tricky! Didn’t notice that, thanks for sharing. It solved the issue for me but I would like to see it as a minor update to Figma’s UI to increase the width of the stroke width input to accommodate for new variable icon. Thanks again! 😍


Joshua_Curtis

That happened to me too! Thanks for the hack to apply the variable for now.


Mel_Bosch
  • New Participant
  • 10 replies
  • August 29, 2024

Thankssss helped a lot 🥰


Orange_Toolz

image
I think the UX can be improved by putting the icon on the hover variable like other inputs on the page.


y_toku
Figmate
  • Community Support
  • 2320 replies
  • October 16, 2024

Thanks for the feedback! It’s definitely easy to understand. We’ll share it internally.


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings