Theming Sizing | Width and Height Utilities

Theming Sizing

Sizing utilities provide tokenized width/height control for responsive compositions and reusable component layouts.

This demo visualizes different width, height, min/max-width, and min/max-height classes.

Width Classes

Boxes showing widths in % or viewport units.

25%
50%
75%
100%
25vw
50vw
75vw
100vw
auto
fit-content
min-content
max-content

Height Classes (Percentage)

Parent container height is 200px. Boxes demonstrate percentage heights relative to the parent.

25%
50%
75%
100%

Height Classes (Viewport Units)

Boxes showing height in viewport units (vh).

25vh
50vh
75vh
100vh

Min & Max Height (Percentage)

Boxes constrained by min-height or max-height percentages relative to the parent container (200px).

min-height 50%
max-height 50%