MigsLab UIVue 3 component workshop

Foundations

Spacing

Padding and margin utilities from styles/spacing.css. Combine a property, a side and a size: {p|m}{side}-{size}.

Scale

xs0.25rem
sm0.5rem
md1rem
lg1.5rem
xl2rem
xxl3rem

Sides

Leave the side out (p-md) for all sides on the base classes, or use one of the side letters below.

Side suffixes

NameDescription
aAll sides (pa-md, ma-md).
t / bTop or bottom (pt-sm, mb-lg).
l / rLeft or right (pl-xs, mr-md).
xLeft and right (px-md, mx-sm).
yTop and bottom (py-xs, my-xl).

Example

pa-md outside, px-lg py-xs inside
<div class="pa-md">
  <div class="px-lg py-xs">pa-md outside, px-lg py-xs inside</div>
</div>