Utilities reference

Numeric values are pixels; named values resolve through tokens. Below is each utility family and the property it emits.

Spacing

UtilityPropertyExample
p-* px-* py-* pt-* pr-* pb-* pl-*paddingpx-16padding-inline:16px
m-* mx-* my-* mt-* mr-* mb-* ml-*marginm-automargin:auto
gap-* gap-x-* gap-y-*gapgap-4gap:4px

Sizing

UtilityPropertyExample
w-* min-w-* max-w-*widthw-fullwidth:100%
h-* min-h-* max-h-*heighth-screenheight:100vh

Special values: full = 100%, screen = 100vw/100vh, auto = auto.

Colors

UtilityPropertyExample
bg-*backgroundbg-surface
text-* (token)colortext-accent
border-* (token)border-colorborder-line

text-* handles both color and font-size: size tokens are checked first, then numeric → font-size, then color. Color algebra (+12, -20, /22) is covered in Writing styles.

Typography

UtilityOutput
text-16font-size:16px
font-* (token)font-family:var(--font-*)
font-bold/semibold/medium/normal/lightfont-weight
leading-*line-height
tracking-*letter-spacing
text-left/center/righttext-align
uppercase · no-underline · list-nonetransform / decoration / list-style

Layout

UtilityOutput
flex · grid · block · inline-block · hiddendisplay
direction-row/column · wrap · nowrapflex-direction / flex-wrap
align-center/start/end/stretch/baselinealign-items
justify-center/between/start/end/around/evenlyjustify-content
place-centerplace-items:center
absolute · relative · fixed · stickyposition
overflow-hidden/auto · overflow-x-auto · overflow-y-autooverflow
cursor-pointer · z-*cursor / z-index

Border

UtilityOutput
border · border-2 · border-0border-width (+ solid style)
border-t/b/l/rone-side border
border-solid/dashed/dotted/double/noneborder-style
rounded-*border-radius:var(--radius-*)

Grid

UtilityOutput
cols-3grid-template-columns:repeat(3,1fr)
cols-[200px_1fr]grid-template-columns:200px 1fr
rows-2grid-template-rows:repeat(2,1fr)

Position / inset

top-*, right-*, bottom-*, left-*, inset-*, inset-x-*, inset-y-* - all accept numeric (px), token, or arbitrary values.

Effects

UtilityOutput
scale-105transform:scale(1.05)
opacity-75opacity:0.75
shadow-*box-shadow (arbitrary value)