In print, space was never a number of its own. It was measured in ems, the size of the type being set. The spaces between words were fractions of it. Change the type size, and the space changed with it.
On screen we lost that. Designs arrived as pixel comps, so we wrote pixels: 16px body, 24px gap, 32px heading. Then screens multiplied, and every value got a table per breakpoint:
type : { sizes : { mobile : { base : '16px' , l : '22px' } , desktop : { base : '18px' , l : '32px' } , } , }
Enter fullscreen mode
Exit fullscreen mode
Nothing in that table says the heading is a step above the body, or that a gap belongs to the text it separates. On mobile l is 1.375 times base ; on desktop it's 1.78 times. Nobody decided that. It's just what the numbers happen to be.
Version 4.0 of my design system package, @pindakaasman/design-system , replaces those tables with one relation.
One scale
Every font size and every spacing step is a step on one modular scale.…