Utilities
Layout, spacing and alignment helpers on the golden-ratio scale.
Source: src/stylus/base/helpers.styl, src/stylus/elements/padding.styl
Flex
.flex makes a row; .flex-column, .flex-wrap, .flex-middle (align), .flex-between and .flex-center (justify) adjust it.
Left Right
Left
Right
Gap
.gap-xs through .gap-xxl space the children of a flex or grid container, on the same golden-ratio scale as padding and margin: .382, .618, 1, 1.618, 2.618 and 4.236rem. .gap-x-* and .gap-y-* set one axis; .gap-0 removes it.
xsxs
mdmd
xlxl
xsxs
mdmd
xlxl
Padding and margin
.padding-*, .px-*, .py-*, .pt-*, .pb-* and the matching .margin-*, .mt-*, .mb-* use the same six steps. .p-0 and .m-0 reset.
padding-sm
padding-lg
padding-sm
padding-lg