Skip to content

πŸ“ Spaces

The spaces foundation provides bottom margins to manage vertical rhythm across components.
Each spacing variation is defined through a mixin and compiled into a foundation class that follows the naming convention:

.f--sp-{variation}

In HTML

<div class="f--sp-a">Spacing A</div>
<div class="f--sp-c">Spacing C</div>

In SCSS

  1. Extending the generated foundation class β€” preferred method:
.c--component-a {
@extend .f--sp-b;
}
  1. Using the mixin directly β€” only if strictly necessary:
.c--component-a {
@include make-sp-b();
}