尺寸 Sizing
间距尺寸
实现在 CSS 一节的间距。
实现仿 Bootstrap 的 4 的整数倍的好处是因为 4 + 8 = 12,可以通过加法得到相同的长度。但是这里我不选 4 的整数倍。
如果不想用5的倍数又不想踩坑可参考 Github Primer Design System
https://primer.style/foundations/css-utilities/margin
Custom Property | Unit |
---|
--0 | 0 |
--1 | 5px |
--2 | 10px |
--3 | 15px |
--4 | 20px |
--5 | 25px |
--6 | 30px |
--7 | 40px |
--8 | 50px |