rem vs px spacing is one of the most common decision points we see. Here is the honest breakdown.
The short version#
Root-relative vs absolute units.
Point by point#
| Aspect | Analysis |
|---|---|
| Accessibility | rem scales with user font size; px does not |
| Consistency | The Nakshora scale is rem-based for this reason |
| Exceptions | Hairlines (1px) stay px |
| Rule | Spacing/typography in rem; borders/shadows in px |
Bottom line#
Pick based on your constraint, not ideology — and remember the comparison pages link to hands-on recipes so you can verify the claim in your own project within minutes.
Related comparisons#
comparisons/index|All comparisons
