Overflow-safe dynamic sizes, input-proportional sizes, and floating overlay sizes — supplementing Tailwind's width / height utilities.
Dynamic width / height capped at 100% so the element never overflows its parent.
Fixed w-safe-96:
Fixed-in-length w-safe-[40rem]:
Narrow parent — capped at 100%:
h-safe-48:
h-safe-[4rem]:
size-safe-24:
size-safe-[20rem]:
Dimensions derived from the default input metrics (--default-width-input / --default-height-input), capped at 100%.
w-input (default input width):
w-input-2 (2x):
w-input-3 (3x):
h-input:
h-input-2:
Floating layer dimensions relative to the parent, keeping safe gaps.
Click a button to apply a size class to the child box. The current computed size is displayed below. In a narrow parent, any overflow is capped at 100%.