Skip to main content
Solved

How do I match a same font size pixel value in figma and in code?

  • February 3, 2021
  • 2 replies
  • 3971 views

Joao_Doria_de_Souza

Hi,

I get this result for a 17px type on the browser (left) and 17px on Figma (right). The same goes for general measurements when, for example, I draw a box.

Why is that and where could I start fixing it?

Many thanks,
João

Best answer by Joao_Doria_de_Souza

Hi @Gleb ! Thanks for the quick response. Turns out I learned there is some meta viewport dark arts at play in our product. Closing this.

View original
This topic has been closed for comments

2 replies

Gleb
  • Power Member
  • 4706 replies
  • February 3, 2021

You probably have non-100% zoom either in Figma or on your website. Make sure that you don’t have it in your browser:

image

And in Figma: https://help.figma.com/hc/en-us/articles/360049549913-Adjust-the-scale-of-the-Figma-Desktop-App-interface


Joao_Doria_de_Souza

Hi @Gleb ! Thanks for the quick response. Turns out I learned there is some meta viewport dark arts at play in our product. Closing this.


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