Layout
Gutters
The space between columns and rows. Default is 24px. The number × 4px, the same scale as spacing and gap.
Use g-* for both directions (responsive: md:g-8), or gx-* / gy-* for one. They work on .row, .grid and .grid-auto.
| Class | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 8 | 10 | 12 |
|---|---|---|---|---|---|---|---|---|---|---|
| Size | 0 | 4px | 8px | 12px | 16px | 20px | 24px | 32px | 40px | 48px |
g-2
g-2
g-2
<div class="row g-2 lg:g-8">…</div>
/* Change the default everywhere */
:root { --mo-gutter: 1rem; }
No gutters
Columns touch — for image strips and joined panels.
g-0
g-0
g-0
<div class="row g-0">
<div class="col"><div class="cell rounded-0">g-0</div></div>
<div class="col"><div class="cell rounded-0">g-0</div></div>
<div class="col"><div class="cell rounded-0">g-0</div></div>
</div>
Different across and down
Narrow gaps between columns, wider gaps between rows.
gx-2
gy-8
…
…
…
…
<div class="row gx-2 gy-8 row-cols-3">
<div><div class="cell">gx-2</div></div>
<div><div class="cell">gy-8</div></div>
<div><div class="cell">…</div></div>
<div><div class="cell">…</div></div>
<div><div class="cell">…</div></div>
<div><div class="cell">…</div></div>
</div>
On CSS grid too
g-1
g-1
g-1
g-1
g-1
<div class="grid-auto grid-min-24 g-1">
<div class="cell">g-1</div>
<div class="cell">g-1</div>
<div class="cell">g-1</div>
<div class="cell">g-1</div>
<div class="cell">g-1</div>
</div>