Zazz Design Framework
baseUtilities

Sizing

Width, height, size shorthands, and min/max dimension constraints using logical properties.

Sizing utilities use logical properties (inline-size, block-size) to match document writing mode.

Width & height

Loading components…
ClassWidth / height value
w-0 / h-00
w-px / h-px1px
w-auto / h-autoauto
w-full / h-full100%
w-xs / h-xsvar(--step-8)
w-sm / h-smvar(--step-24)
w-md / h-mdvar(--step-56)
w-lg / h-lgvar(--step-72)
w-xl / h-xlvar(--step-96)
w-screen100vi
h-screen100svh
w-screen-xs to w-screen-xlvar(--breakpoint-xs) to var(--breakpoint-xl)
h-screen-xs to h-screen-xlvar(--breakpoint-xs) to var(--breakpoint-xl)

Square size shorthand

Loading components…

size-* sets inline-size and block-size simultaneously:

ClassValue (both axes)
size-00
size-autoauto
size-full100%
size-xsvar(--gap-xs)
size-smvar(--gap-sm)
size-mdvar(--gap-md)
size-lgvar(--gap-lg)
size-xlvar(--gap-xl)
size-screen100vi x 100svh
size-screen-xs to size-screen-xlvar(--breakpoint-*) both axes

Min and max constraints

Max widthMax heightMin widthMin height
max-w-0max-h-0min-w-0min-h-0
max-w-automax-h-automin-w-automin-h-auto
max-w-fullmax-h-fullmin-w-fullmin-h-full
max-w-xs to max-w-xlmax-h-xs to max-h-xlNoneNone
max-w-screenmax-h-screenmin-w-screenmin-h-screen
max-w-screen-xs to xlmax-h-screen-xs to xlmin-w-screen-xs to xlmin-h-screen-xs to xl
<article class="w-full max-w-screen-sm mx-auto">
  Fluid width constrained to sm breakpoint and centered.
</article>

On this page