{"course":{"slug":"design-foundations","title":"Design, before Any Software","url":"https://addaly.com/learn/design-foundations","level":"beginner","track":"create"},"lesson":{"slug":"a-spacing-scale","title":"Every gap comes from a list","url":"https://addaly.com/learn/design-foundations/a-spacing-scale","position":14,"of":74,"minutes":8,"answer":"Every gap in a design should be a member of one multiplicative scale with a meaning attached to each step, so that spacing becomes a statement about relationships rather than a series of independent guesses.","keyIdea":"Every gap in a design should be a member of one multiplicative scale with a meaning attached to each step, so that spacing becomes a statement about relationships rather than a series of independent guesses."},"body":{"format":"markdown","text":"## The fault you can find in ten seconds\n\nOpen any layout made without a system and measure the gaps. You will find something like 6, 9, 10, 14, 15, 18, 22, 25, 30 pixels, with no two the same and no reason behind any of them. Each was set by dragging something until it looked right, in a moment, against whatever was next to it at the time.\n\nThis is the most reliable cause of work that looks amateur without looking obviously wrong. No single gap is a mistake. The absence of a pattern is the mistake, because the reader is constantly asked to decide whether a 14px gap and a 15px gap mean different things, and the answer keeps being no.\n\n## The scale\n\nPick a base unit and build a ramp on it. Four pixels is the usual base, for a practical reason: it divides cleanly at the device pixel ratios real phones use, so nothing lands on a half pixel and blurs.\n\n```\n4   8   12   16   24   32   48   64   96\n```\n\nNine values, which is more than most designs need. Notice the shape: small steps at the bottom, doubling at the top. That is deliberate, and it follows from the threshold lesson in the first block: a difference registers in proportion to what it is compared with, so a constant 4px step would become invisible by the time you reach 40 and 44.\n\nSome systems use a strict 8px base with a 4px half-step, which is where the widely used 8-point grid comes from. Others use a modular ratio. The specific ramp matters far less than the fact that there is one.\n\n## Assign meanings, not just numbers\n\nA scale becomes useful when each step owns a job:\n\n- **4**: space between a glyph and its label, inside a badge.\n- **8**: inside a group: label to input, icon to text.\n- **16**: between related items in a list; page gutter on a phone.\n- **24**: between groups within a section.\n- **32 / 48**: between sections.\n- **64 / 96**: between major regions, or above a section on a large screen.\n\nWith meanings attached, the question when you are laying something out stops being how big should this gap be and becomes what is the relationship here, which has an answer you can defend to someone else.\n\n## Implementing it for free\n\nIn CSS, custom properties make the scale the only source of spacing values:\n\n```css\n:root {\n  --space-1: 0.25rem;  /*  4px */\n  --space-2: 0.5rem;   /*  8px */\n  --space-3: 1rem;     /* 16px */\n  --space-4: 1.5rem;   /* 24px */\n  --space-5: 2rem;     /* 32px */\n  --space-6: 3rem;     /* 48px */\n}\n.field { margin-bottom: var(--space-4); }\n.field label { margin-bottom: var(--space-2); }\n```\n\nUsing `rem` rather than `px` means the whole scale grows when a reader increases their base font size, which is the behaviour you want and which a pixel scale silently refuses to give them.\n\nIn drawing tools, set the document grid to the base unit and enable snapping. Inkscape: File > Document Properties > Grids, with Snap to grid on. Krita and GIMP both offer a configurable grid under View. Figma's free tier has layout grids and an 8px nudge setting. None of this requires a paid tool.\n\n## The audit\n\nList every distinct gap value in a finished design and count them. More than about six on a single page means you have gaps that were never decided. Map each stray onto the nearest scale value and delete it. Almost always the design improves immediately, because several accidental near-differences collapse into either a real difference or none.\n\nIn a browser, developer tools give you this for free: inspect an element and the box model diagram shows the computed margin and padding, which is what shipped rather than what you meant.\n\n## Where to break it\n\nThe scale governs relationships between objects. It does not govern optical corrections, which are the subject of a later lesson in this block. If a 16px gap between an icon and its label looks like 18px because the icon's artwork has built-in padding, you fix that with a 14px value and a note explaining why.\n\nThe distinction is worth stating precisely, because it is the difference between a system and a superstition:\n\n> Structural spacing comes from the scale. Optical corrections are exceptions, they are small, and each one has a written reason.\n\nA design with three documented exceptions is a system. A design with thirty undocumented ones is where you started.\n\n## What it does not buy you\n\nA spacing scale makes a layout consistent. It does not make it well grouped: you can apply the scale perfectly and still put 24px inside a group and 16px around it, which is the error from the previous lesson expressed in tidier numbers. The scale is a vocabulary. Grouping is what you say with it."},"check":{"question":"A team adopts a spacing scale of 4, 8, 12, 16, 20, 24, 28, 32, 36, 40 and finds the layout still looks arbitrary. What is the most likely reason?","options":[{"text":"A scale needs to be built on multiples of the body font size rather than on a fixed pixel base, so the values should be derived from 16px.","correct":false,"tempting":"Raises a reasonable convention that would produce a nearly identical list and leave the underlying problem untouched."},{"text":"Ten evenly spaced steps offer almost no distinguishable gap sizes at the top, so choices there remain effectively arbitrary.","correct":true},{"text":"The base unit is too small, and rebuilding the same additive scale on an 8px base would give the design the structure it lacks.","correct":false,"tempting":"Changes the base while keeping the additive shape that caused the problem, so the top of the scale stays undifferentiated."},{"text":"Pixel values cannot produce a consistent rhythm on screens with different device pixel ratios, so the scale must be expressed in relative units before it will read as deliberate.","correct":false,"tempting":"Names a real accessibility benefit of relative units and misattributes an appearance problem to the unit rather than to the shape of the ramp."}]},"prev":{"slug":"when-grouping-cues-conflict","title":"When two grouping cues disagree","url":"https://addaly.com/learn/design-foundations/when-grouping-cues-conflict"},"next":{"slug":"whitespace-is-not-empty","title":"Space is content you have not been billed for","url":"https://addaly.com/learn/design-foundations/whitespace-is-not-empty"},"authorship":"Founder and series editor: Dr Mustafa Mun. Written by AI models to a written standard. Source and assessment review continues. Academic review invited.","review":{"status":"Draft, open for academic review"},"cite":"Addaly (2026) 'Every gap comes from a list', in Design, before Any Software. Edited by M. Mun. Addaly. Available at: https://addaly.com/learn/design-foundations/a-spacing-scale (Accessed: 29 November 2026).","licence":{"name":"CC BY-NC-SA 4.0","url":"https://creativecommons.org/licenses/by-nc-sa/4.0/"},"reader":{"schema":1,"title":"Every gap comes from a list","courseTitle":"Design, before Any Software","module":{"index":2,"slug":"space-grouping-and-the-grid","title":"Space, grouping and the grid"},"answer":null,"keyIdea":"Every gap in a design should be a member of one multiplicative scale with a meaning attached to each step, so that spacing becomes a statement about relationships rather than a series of independent guesses.","hero":{"kind":"plate","image":null,"alt":null,"caption":null},"blocks":[{"t":"h2","id":"the-fault-you-can-find-in-ten-seconds","runs":[{"text":"The fault you can find in ten seconds"}]},{"t":"p","runs":[{"text":"Open any layout made without a system and measure the gaps. You will find something like 6, 9, 10, 14, 15, 18, 22, 25, 30 pixels, with no two the same and no reason behind any of them. Each was set by dragging something until it looked right, in a moment, against whatever was next to it at the time."}]},{"t":"p","runs":[{"text":"This is the most reliable cause of work that looks amateur without looking obviously wrong. No single gap is a mistake. The absence of a pattern is the mistake, because the reader is constantly asked to decide whether a 14px gap and a 15px gap mean different things, and the answer keeps being no."}]},{"t":"h2","id":"the-scale","runs":[{"text":"The scale"}]},{"t":"p","runs":[{"text":"Pick a base unit and build a ramp on it. Four pixels is the usual base, for a practical reason: it divides cleanly at the device pixel ratios real phones use, so nothing lands on a half pixel and blurs."}]},{"t":"code","lang":"","label":"Text","text":"4   8   12   16   24   32   48   64   96"},{"t":"p","runs":[{"text":"Nine values, which is more than most designs need. Notice the shape: small steps at the bottom, doubling at the top. That is deliberate, and it follows from the threshold lesson in the first block: a difference registers in proportion to what it is compared with, so a constant 4px step would become invisible by the time you reach 40 and 44."}]},{"t":"p","runs":[{"text":"Some systems use a strict 8px base with a 4px half-step, which is where the widely used 8-point grid comes from. Others use a modular ratio. The specific ramp matters far less than the fact that there is one."}]},{"t":"h2","id":"assign-meanings-not-just-numbers","runs":[{"text":"Assign meanings, not just numbers"}]},{"t":"p","runs":[{"text":"A scale becomes useful when each step owns a job:"}]},{"t":"ul","items":[[{"text":"4","b":true},{"text":": space between a glyph and its label, inside a badge."}],[{"text":"8","b":true},{"text":": inside a group: label to input, icon to text."}],[{"text":"16","b":true},{"text":": between related items in a list; page gutter on a phone."}],[{"text":"24","b":true},{"text":": between groups within a section."}],[{"text":"32 / 48","b":true},{"text":": between sections."}],[{"text":"64 / 96","b":true},{"text":": between major regions, or above a section on a large screen."}]]},{"t":"p","runs":[{"text":"With meanings attached, the question when you are laying something out stops being how big should this gap be and becomes what is the relationship here, which has an answer you can defend to someone else."}]},{"t":"h2","id":"implementing-it-for-free","runs":[{"text":"Implementing it for free"}]},{"t":"p","runs":[{"text":"In CSS, custom properties make the scale the only source of spacing values:"}]},{"t":"code","lang":"css","label":"CSS","text":":root {\n  --space-1: 0.25rem;  /*  4px */\n  --space-2: 0.5rem;   /*  8px */\n  --space-3: 1rem;     /* 16px */\n  --space-4: 1.5rem;   /* 24px */\n  --space-5: 2rem;     /* 32px */\n  --space-6: 3rem;     /* 48px */\n}\n.field { margin-bottom: var(--space-4); }\n.field label { margin-bottom: var(--space-2); }"},{"t":"p","runs":[{"text":"Using "},{"text":"rem","code":true},{"text":" rather than "},{"text":"px","code":true},{"text":" means the whole scale grows when a reader increases their base font size, which is the behaviour you want and which a pixel scale silently refuses to give them."}]},{"t":"p","runs":[{"text":"In drawing tools, set the document grid to the base unit and enable snapping. Inkscape: File > Document Properties > Grids, with Snap to grid on. Krita and GIMP both offer a configurable grid under View. Figma’s free tier has layout grids and an 8px nudge setting. None of this requires a paid tool."}]},{"t":"h2","id":"the-audit","runs":[{"text":"The audit"}]},{"t":"p","runs":[{"text":"List every distinct gap value in a finished design and count them. More than about six on a single page means you have gaps that were never decided. Map each stray onto the nearest scale value and delete it. Almost always the design improves immediately, because several accidental near-differences collapse into either a real difference or none."}]},{"t":"p","runs":[{"text":"In a browser, developer tools give you this for free: inspect an element and the box model diagram shows the computed margin and padding, which is what shipped rather than what you meant."}]},{"t":"h2","id":"where-to-break-it","runs":[{"text":"Where to break it"}]},{"t":"p","runs":[{"text":"The scale governs relationships between objects. It does not govern optical corrections, which are the subject of a later lesson in this block. If a 16px gap between an icon and its label looks like 18px because the icon’s artwork has built-in padding, you fix that with a 14px value and a note explaining why."}]},{"t":"p","runs":[{"text":"The distinction is worth stating precisely, because it is the difference between a system and a superstition:"}]},{"t":"quote","runs":[{"text":"Structural spacing comes from the scale. Optical corrections are exceptions, they are small, and each one has a written reason."}]},{"t":"p","runs":[{"text":"A design with three documented exceptions is a system. A design with thirty undocumented ones is where you started."}]},{"t":"h2","id":"what-it-does-not-buy-you","runs":[{"text":"What it does not buy you"}]},{"t":"p","runs":[{"text":"A spacing scale makes a layout consistent. It does not make it well grouped: you can apply the scale perfectly and still put 24px inside a group and 16px around it, which is the error from the previous lesson expressed in tidier numbers. The scale is a vocabulary. Grouping is what you say with it."}]}],"check":{"question":[{"text":"A team adopts a spacing scale of 4, 8, 12, 16, 20, 24, 28, 32, 36, 40 and finds the layout still looks arbitrary. What is the most likely reason?"}],"options":[{"text":[{"text":"A scale needs to be built on multiples of the body font size rather than on a fixed pixel base, so the values should be derived from 16px."}],"correct":false,"tempting":[{"text":"Raises a reasonable convention that would produce a nearly identical list and leave the underlying problem untouched."}]},{"text":[{"text":"Ten evenly spaced steps offer almost no distinguishable gap sizes at the top, so choices there remain effectively arbitrary."}],"correct":true,"tempting":null},{"text":[{"text":"The base unit is too small, and rebuilding the same additive scale on an 8px base would give the design the structure it lacks."}],"correct":false,"tempting":[{"text":"Changes the base while keeping the additive shape that caused the problem, so the top of the scale stays undifferentiated."}]},{"text":[{"text":"Pixel values cannot produce a consistent rhythm on screens with different device pixel ratios, so the scale must be expressed in relative units before it will read as deliberate."}],"correct":false,"tempting":[{"text":"Names a real accessibility benefit of relative units and misattributes an appearance problem to the unit rather than to the shape of the ramp."}]}],"order":[0,1,3,2],"why":null},"prev":{"slug":"when-grouping-cues-conflict","title":"When two grouping cues disagree","minutes":9},"next":{"slug":"whitespace-is-not-empty","title":"Space is content you have not been billed for","minutes":8}}}