Define margins on the fly with these utility classes that use our space variables.
None
, Xs
, Sm
, Md
, Lg
Right
, Left
, Top
, Bottom
Ends
: Applies margins to the top and bottomSides
: Applies margins to the right and left of an elementNone
: Applies zero marginu-space[Size][Position]
u-spaceSidesAuto
(centers element)u-spaceNone
u-spaceXs
u-spaceSm
u-spaceMd
u-spaceLg
u-spaceTopNone
u-spaceTopXs
u-spaceTopSm
u-spaceTopMd
u-spaceTopLg
and so on...
Define padding on the fly with these utility classes that use our space variables.
None
, Xs
, Sm
, Md
, Lg
Right
, Left
, Top
, Bottom
Ends
: Applies padding to the top and bottomSides
: Applies padding to the right and left of an elementNone
: Applies zero marginu-pad[Size][Position]
u-padNone
u-padXs
u-padSm
u-padMd
u-padLg
u-padTopNone
u-padTopXs
u-padTopSm
u-padTopMd
u-padTopLg
and so on...
Use breakpoints to specifiy min screen widths for margin and padding properties.
Breakpoints: xs
, sm
, md
and lg
eg: u-xs-spaceTop
, u-sm-padBottomNone
, u-lg-spaceMd