Consistent spacing comes from a limited scale (1, 2, 3, 4, 6…) mapped to rem values. Avoid random 13px unless design tokens demand it.
Going deeper
In production utility-first CSS work, Spacing scale matters when documents, stylesheets, or apps must stay maintainable across teams and releases—not only in isolated demos.
Common pitfalls
Watch for copy-paste configs, skipping validation or tests, and mixing concerns (structure vs presentation vs behavior) in one layer.
Practice
- Apply one technique from this lesson in the playground.
- Write one interview-style sentence explaining when you would use spacing scale on a real project.
Challenge
Compare spacing steps
- Add a fourth box with
tu-p-6in the stylesheet. - Apply it in markup and compare against
tu-p-4.
Done when: preview shows four distinct padding sizes.