Skip to main content

Overview

Height utilities cover fixed size steps, fractions, and keyword heights in one suffix system.

Examples

Using the size scale

Use the t-shirt height scale when you want a predictable fixed height for media blocks, panels, and feature shells.

Using a percentage

Use fractional height utilities when height should be relative to a parent container instead of fixed to the t-shirt scale.

Filling the available height

Use height-full when an element should stretch to match the height of a parent that already defines its own height.

Matching the viewport

Use height-screen when a page shell, hero, or empty-state layout should match the viewport height.

Resetting the height

Use height-auto when height should fall back to the content instead of staying fixed or inherited from another rule.

Best Practices

  • Use height-full only when a parent already establishes height.
  • Use height-screen for full-view shells, splash sections, and empty states.
  • Use height-<fraction> when the layout itself defines the parent height.
  • Use height-auto to remove a fixed height and let content determine the block size.

Width

Control element width

Min Height

Use matching minimum-height helpers