You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So the question is why p-1 is padding: 0.25rem instead of padding: 1rem ?
Because I have to computed rem values with base font size, which in turn rem values are needed to know from TW classes so I either have to memorize or hover the class.
Also, having p-1 same as padding: 1rem can make users who use 62.5% root font size just 10x the class value to get the real pixel value.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
So the question is why p-1 is
padding: 0.25rem
instead ofpadding: 1rem
?Because I have to computed rem values with base font size, which in turn rem values are needed to know from TW classes so I either have to memorize or hover the class.
Also, having p-1 same as
padding: 1rem
can make users who use62.5%
root font size just 10x the class value to get the real pixel value.Thanks.
Beta Was this translation helpful? Give feedback.
All reactions