How are the spacing numbers calculated? #7898
Replies: 1 comment
-
Hey! Not totally sure what you're asking that isn't explained in that screenshot but I'll say it again in case it's helpful. Browsers have a default root font size of 16px, so by default (that is unless you override the font size on the In Tailwind's spacing scale,
Hope that helps. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
How are these values calculated? Specifically these ones:

I'm writing an app that will help our designers and developers stay in sync and this often involves discussing available design tokens and the names and their values. Figuring out the exact formula for this would be great, so I'm not hard coding lists of numbers...
Is this the correct formula? https://stackoverflow.com/questions/11352783/how-to-calculate-rem-for-type
Beta Was this translation helpful? Give feedback.
All reactions