Why does spacing adhere to a 7px grid. What is the logic? #971
-
Hi, I'm evaluating PrimeNG (and Figma UI kit) for a web app we are developing. It's the front runner at the moment. One hurdle for me is that the grid scale seems to be based on 7px? I'm assuming this is a direct reflection of the code? Can anyone offer any insight as to why this is the case? it seem utterly wrong to not adhere to a standard 8px/4px standard. And what is the logic of having 17.5 as a standard padding as opposed to 16? What am I missing? |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 1 reply
-
Okay, my bad. PrimeNG uses 14px font baseline by default. However, primeflex (and I think primeblocks) uses 16px in its examples. Would be useful for these to be aligned. |
Beta Was this translation helpful? Give feedback.
-
For years, we've used 14 as the base font size in our UI libraries and have followed the same approach in every design we made in Figma. However, based on recent feedback, we have decided to transition to the 16 px system in our Figma designs. This will be a beneficial change for everyone, especially given that Figma rounds up fractions. Thank you for your feedback. |
Beta Was this translation helpful? Give feedback.
-
Thanks for the quick response and history. I changed to 16 in token studio and all the padding values changed to ones that didn’t freak me out. |
Beta Was this translation helpful? Give feedback.
-
We use 14px in our websites, you can use any value, Prime UI libraries do not enforce something. Components use rem values so they scale according to root value. New UI Kit update will use 16px by default though. |
Beta Was this translation helpful? Give feedback.
-
@cagataycivici Can you give us some more info about this new UI Kit update? |
Beta Was this translation helpful? Give feedback.
For years, we've used 14 as the base font size in our UI libraries and have followed the same approach in every design we made in Figma.
However, based on recent feedback, we have decided to transition to the 16 px system in our Figma designs. This will be a beneficial change for everyone, especially given that Figma rounds up fractions.
Thank you for your feedback.