Utilities

Built-in fluid utilities and the CSS properties they set.

Use fluid-<utility>-<min>/<max>. Numbers use the configured base unit (px by default). You can also write fluid-<utility> fluid-<utility>-min-32 fluid-<utility>-max-64.

Custom properties follow --{prefix}{utility} and --{prefix}{utility}-{var} (for example --fluid-pt-min).

Typography and spacing

UtilityExampleCSS properties
textfluid-text-32/64font-size
leadingfluid-leading-20/32line-height
trackingfluid-tracking-0/4letter-spacing
indentfluid-indent-8/24text-indent
mfluid-m-32/64margin
mt / mr / mb / mlfluid-mt-32/64margin-*
mx / myfluid-mx-32/64margin-left + margin-right / margin-top + margin-bottom
pfluid-p-32/64padding
pt / pr / pb / plfluid-pt-32/64padding-*
px / pyfluid-px-32/64padding-left + padding-right / padding-top + padding-bottom

Size

UtilityExampleCSS properties
w / hfluid-w-100/200width / height
sizefluid-size-48/96width + height
min-w / min-hfluid-min-w-32/64min-width / min-height
max-w / max-hfluid-max-w-32/64max-width / max-height
min-size / max-sizefluid-min-size-32/64min-width + min-height / max-width + max-height
basisfluid-basis-80/160flex-basis

Position

UtilityExampleCSS properties
top / right / bottom / leftfluid-top-8/24matching inset property
t / r / b / lfluid-t-8/24aliases of top / right / bottom / left
insetfluid-inset-8/24top right bottom left
inset-x / inset-yfluid-inset-x-8/24left + right / top + bottom

Gap

UtilityExampleCSS properties
gap / flex-gapfluid-gap-16/32gap
gap-x / flex-gap-xfluid-gap-x-16/32column-gap
gap-y / flex-gap-yfluid-gap-y-16/32row-gap
column-gapfluid-column-gap-16/32column-gap

Borders, rings, outlines

UtilityExampleCSS properties
roundedfluid-rounded-4/12border-radius
borderfluid-border-1/4border-width
border-x / border-yfluid-border-x-1/4left+right / top+bottom widths
border-t / r / b / lfluid-border-t-1/4matching side
outlinefluid-outline-1/4outline-width
outline-offsetfluid-outline-offset-2/8outline-offset
ringfluid-ring-2/8--un-ring-width
ring-offsetfluid-ring-offset-2/8--un-ring-offset-width

Shadow, blur, translate

UtilityExampleCSS properties
shadowfluid-shadow-4/16box-shadow
blurfluid-blur-4/16--un-blur
backdrop-blurfluid-backdrop-blur-4/16--un-backdrop-blur
translatefluid-translate-4/16--un-translate-x and --un-translate-y
translate-x / y / zfluid-translate-x-4/16matching --un-translate-*

Apply Wind4 transform when you use the translate utilities.

Scroll

UtilityExampleCSS properties
scroll-p / scroll-mfluid-scroll-p-8/24scroll-padding / scroll-margin
scroll-px / py / pt / pr / pb / plfluid-scroll-px-8/24matching scroll-padding-*
scroll-mx / my / mt / mr / mb / mlfluid-scroll-mx-8/24matching scroll-margin-*

scroll-pr and scroll-mr are included (padding-right / margin-right).