Design
Spacing & Grid Calculator
Generate spacing scales and grid systems with CSS custom property output.
10
--space-05px / 0.328rem
--space-17px / 0.41rem
--space-28px / 0.512rem
--space-310px / 0.64rem
--space-413px / 0.8rem
--space-516px / 1rem
--space-620px / 1.25rem
--space-725px / 1.563rem
--space-831px / 1.953rem
--space-939px / 2.441rem
About this tool
Spacing scale mode generates a modular scale using musical ratios — the same system used by Tailwind, Material Design, and most modern design systems. Grid mode calculates column widths based on your container, gutter, and margin values and outputs ready-to-use CSS.