Why px for spacing and rems for others #8841
kvpasupuleti
started this conversation in
General
Replies: 2 comments 2 replies
-
Hey! We use rem for padding and margin, not pixels. |
Beta Was this translation helpful? Give feedback.
2 replies
-
Im wondering why using rems for spacing - doesn't it make the custom font size feature of the browsers less useful? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have gone through various design systems for deriving the units for our design system.
Why is tailwind using
px
for paddings and margins andrems
for others including other spacings and sizing?Any base for this decision here?
Beta Was this translation helpful? Give feedback.
All reactions