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


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,

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


And in Figma:

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.