Local CSS spacing token generator
Xây dựng thang đo khoảng cách CSS nhất quán
Đặt đơn vị cơ sở và tỷ lệ để tạo mã thông báo khoảng cách trực quan, xem trước nhịp điệu của chúng và sao chép các biến CSS.
Không có dữ liệu nào được tải lên. Xử lý diễn ra trong tab trình duyệt này.
Why use a spacing scale?
A small set of related values makes padding, gaps, and margins easier to review across a product.
A linear ratio keeps steps predictable while leaving room between compact and spacious layouts.
Use the preview to judge rhythm, then use the custom properties with var(--space-3) in your CSS.
Spacing scale questions
What ratio should I start with?1.25 creates gentle steps, while 1.5 creates stronger separation for larger layouts.
When should I use rem?Use rem when spacing should follow the document's root font size; use px when the design calls for fixed values.
Are these design tokens?Yes. The output is a small CSS custom property set that can act as a shared spacing vocabulary.