Skip to main content
Question

Typography variables kills performance

  • September 11, 2024
  • 1 reply
  • 51 views

Askenback

We have a rather big Design system UI kit where we recently switched from Font styles to a local variable setup for Typography (skipping styles all together). And now the performance went really bad, as in a state where you can’t work with it. 😔

We’ve nailed the issue down to Font-family variables, which uses String. If we remove these (as in don’t use any variables for Font-family), everything is back to normal and the file is performant again.

Potentially Font-weight was also a factor, but we’ve moved from String to Number variables here and it seem to work fine.

Did any one else have issues with this and how did you approach/solve it?

1 reply

Mel-Ich
  • 2 replies
  • November 25, 2024

Yes we (also quite big DS) are facing the same issues. Large projects using our components now facing issues with memory running low and quite laggy performance.


Reply


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