Arbitrary spacing shims
Most unidirectional spacing relationships are best represented as listings, and more complex relationships as grids or tiles. However, sometimes we need a way to apply space that can’t reasonably be encapsulated in a discrete layout object; this pattern is a spacing shim.
To implement a spacing shim, the base object should provide no styles of its own. Use modifiers for different amounts of space and provide breakpoint modifiers for further flexibility in complex responsive layouts.
When applying a spacing shim, we should resist the temptation to apply it directly to an element that already opts into another object — it might easily be overridden by another margin rule with higher specificity. Instead, compose it around another element, or add it as a single element in the document flow.
<!-- Use an empty spacing shim between elements: -->Example ContentAnd a bit more example content.
<!-- Alternatively, wrap an element in a spacing shim: -->Example ContentAnd a bit more example content.