# Utilities — Sizing

> Width, height, square size, and min/max dimension utilities.

- Compact index: [utilities.compact.md](https://next.0build.dev/docs/utilities.compact.md)
- Full reference: [utilities.md](https://next.0build.dev/docs/utilities.md)
- JSON: [utilities/sizing.json](https://next.0build.dev/registry/utilities/sizing.json)

## Height

> responsive (`sm:`–`2xl:`) · sources: `src/css/value-driven/height.css`, `src/css/constants/height.css`

### Value-driven

| Selector | Style | Variables | Flags |
| --- | --- | --- | --- |
| `.h` | `height: calc(var(--spacing) * var(--h))` | `--h` | scaled |
| `.[h]` | `height: var(--h)` | `--h` | — |

### Constants

| Selector | Style | Layer |
| --- | --- | --- |
| `.h-auto` | `height: auto` | `utilities` |
| `.h-full` | `height: 100%` | `utilities` |
| `.h-screen` | `height: 100vh` | `utilities` |
| `.h-dvh` | `height: 100dvh` | `utilities` |
| `.h-dvw` | `height: 100dvw` | `utilities` |
| `.h-lvh` | `height: 100lvh` | `utilities` |
| `.h-lvw` | `height: 100lvw` | `utilities` |
| `.h-svh` | `height: 100svh` | `utilities` |
| `.h-svw` | `height: 100svw` | `utilities` |
| `.h-min` | `height: min-content` | `utilities` |
| `.h-max` | `height: max-content` | `utilities` |
| `.h-fit` | `height: fit-content` | `utilities` |
| `.h-lh` | `height: 1lh` | `utilities` |

## Max Height

> responsive (`sm:`–`2xl:`) · sources: `src/css/value-driven/max-height.css`, `src/css/constants/max-height.css`

### Value-driven

| Selector | Style | Variables | Flags |
| --- | --- | --- | --- |
| `.max-h` | `max-height: calc(var(--spacing) * var(--max-h))` | `--max-h` | scaled |
| `.[max-h]` | `max-height: var(--max-h)` | `--max-h` | — |

### Constants

| Selector | Style | Layer |
| --- | --- | --- |
| `.max-h-none` | `max-height: none` | `utilities` |
| `.max-h-full` | `max-height: 100%` | `utilities` |
| `.max-h-screen` | `max-height: 100vh` | `utilities` |
| `.max-h-dvh` | `max-height: 100dvh` | `utilities` |
| `.max-h-dvw` | `max-height: 100dvw` | `utilities` |
| `.max-h-lvh` | `max-height: 100lvh` | `utilities` |
| `.max-h-lvw` | `max-height: 100lvw` | `utilities` |
| `.max-h-svh` | `max-height: 100svh` | `utilities` |
| `.max-h-svw` | `max-height: 100svw` | `utilities` |
| `.max-h-min` | `max-height: min-content` | `utilities` |
| `.max-h-max` | `max-height: max-content` | `utilities` |
| `.max-h-fit` | `max-height: fit-content` | `utilities` |
| `.max-h-lh` | `max-height: 1lh` | `utilities` |

## Max Width

> responsive (`sm:`–`2xl:`) · sources: `src/css/value-driven/max-width.css`, `src/css/constants/max-width.css`, `src/css/core-components/max-width.css`

### Value-driven

| Selector | Style | Variables | Flags |
| --- | --- | --- | --- |
| `.max-w` | `max-width: calc(var(--spacing) * var(--max-w))` | `--max-w` | scaled |
| `.[max-w]` | `max-width: var(--max-w)` | `--max-w` | — |

### Constants

| Selector | Style | Layer |
| --- | --- | --- |
| `.max-w-full` | `max-width: 100%` | `utilities` |
| `.max-w-screen` | `max-width: 100vw` | `utilities` |
| `.max-w-dvw` | `max-width: 100dvw` | `utilities` |
| `.max-w-dvh` | `max-width: 100dvh` | `utilities` |
| `.max-w-lvw` | `max-width: 100lvw` | `utilities` |
| `.max-w-lvh` | `max-width: 100lvh` | `utilities` |
| `.max-w-svw` | `max-width: 100svw` | `utilities` |
| `.max-w-svh` | `max-width: 100svh` | `utilities` |
| `.max-w-min` | `max-width: min-content` | `utilities` |
| `.max-w-max` | `max-width: max-content` | `utilities` |
| `.max-w-fit` | `max-width: fit-content` | `utilities` |
| `.max-w-none` | `max-width: none` | `utilities` |
| `.max-w-3xs` | `max-width: var(--container-3xs)` | `components` |
| `.max-w-2xs` | `max-width: var(--container-2xs)` | `components` |
| `.max-w-xs` | `max-width: var(--container-xs)` | `components` |
| `.max-w-sm` | `max-width: var(--container-sm)` | `components` |
| `.max-w-md` | `max-width: var(--container-md)` | `components` |
| `.max-w-lg` | `max-width: var(--container-lg)` | `components` |
| `.max-w-xl` | `max-width: var(--container-xl)` | `components` |
| `.max-w-2xl` | `max-width: var(--container-2xl)` | `components` |
| `.max-w-3xl` | `max-width: var(--container-3xl)` | `components` |
| `.max-w-4xl` | `max-width: var(--container-4xl)` | `components` |
| `.max-w-5xl` | `max-width: var(--container-5xl)` | `components` |
| `.max-w-6xl` | `max-width: var(--container-6xl)` | `components` |
| `.max-w-7xl` | `max-width: var(--container-7xl)` | `components` |

## Min Height

> responsive (`sm:`–`2xl:`) · sources: `src/css/value-driven/min-height.css`, `src/css/constants/min-height.css`

### Value-driven

| Selector | Style | Variables | Flags |
| --- | --- | --- | --- |
| `.min-h` | `min-height: calc(var(--spacing) * var(--min-h))` | `--min-h` | scaled |
| `.[min-h]` | `min-height: var(--min-h)` | `--min-h` | — |

### Constants

| Selector | Style | Layer |
| --- | --- | --- |
| `.min-h-auto` | `min-height: auto` | `utilities` |
| `.min-h-full` | `min-height: 100%` | `utilities` |
| `.min-h-screen` | `min-height: 100vh` | `utilities` |
| `.min-h-dvh` | `min-height: 100dvh` | `utilities` |
| `.min-h-dvw` | `min-height: 100dvw` | `utilities` |
| `.min-h-lvh` | `min-height: 100lvh` | `utilities` |
| `.min-h-lvw` | `min-height: 100lvw` | `utilities` |
| `.min-h-svh` | `min-height: 100svh` | `utilities` |
| `.min-h-svw` | `min-height: 100svw` | `utilities` |
| `.min-h-min` | `min-height: min-content` | `utilities` |
| `.min-h-max` | `min-height: max-content` | `utilities` |
| `.min-h-fit` | `min-height: fit-content` | `utilities` |
| `.min-h-lh` | `min-height: 1lh` | `utilities` |

## Min Width

> responsive (`sm:`–`2xl:`) · sources: `src/css/value-driven/min-width.css`, `src/css/constants/min-width.css`, `src/css/core-components/min-width.css`

### Value-driven

| Selector | Style | Variables | Flags |
| --- | --- | --- | --- |
| `.min-w` | `min-width: calc(var(--spacing) * var(--min-w))` | `--min-w` | scaled |
| `.[min-w]` | `min-width: var(--min-w)` | `--min-w` | — |

### Constants

| Selector | Style | Layer |
| --- | --- | --- |
| `.min-w-auto` | `min-width: auto` | `utilities` |
| `.min-w-full` | `min-width: 100%` | `utilities` |
| `.min-w-screen` | `min-width: 100vw` | `utilities` |
| `.min-w-dvw` | `min-width: 100dvw` | `utilities` |
| `.min-w-dvh` | `min-width: 100dvh` | `utilities` |
| `.min-w-lvw` | `min-width: 100lvw` | `utilities` |
| `.min-w-lvh` | `min-width: 100lvh` | `utilities` |
| `.min-w-svw` | `min-width: 100svw` | `utilities` |
| `.min-w-svh` | `min-width: 100svh` | `utilities` |
| `.min-w-min` | `min-width: min-content` | `utilities` |
| `.min-w-max` | `min-width: max-content` | `utilities` |
| `.min-w-fit` | `min-width: fit-content` | `utilities` |
| `.min-w-3xs` | `min-width: var(--container-3xs)` | `components` |
| `.min-w-2xs` | `min-width: var(--container-2xs)` | `components` |
| `.min-w-xs` | `min-width: var(--container-xs)` | `components` |
| `.min-w-sm` | `min-width: var(--container-sm)` | `components` |
| `.min-w-md` | `min-width: var(--container-md)` | `components` |
| `.min-w-lg` | `min-width: var(--container-lg)` | `components` |
| `.min-w-xl` | `min-width: var(--container-xl)` | `components` |
| `.min-w-2xl` | `min-width: var(--container-2xl)` | `components` |
| `.min-w-3xl` | `min-width: var(--container-3xl)` | `components` |
| `.min-w-4xl` | `min-width: var(--container-4xl)` | `components` |
| `.min-w-5xl` | `min-width: var(--container-5xl)` | `components` |
| `.min-w-6xl` | `min-width: var(--container-6xl)` | `components` |
| `.min-w-7xl` | `min-width: var(--container-7xl)` | `components` |

## Size

> responsive (`sm:`–`2xl:`) · sources: `src/css/value-driven/size.css`, `src/css/constants/size.css`

- `.size` multiplies `--size` by `var(--spacing)` for both width and height; `.[size]` accepts raw values.

### Value-driven

| Selector | Style | Variables | Flags |
| --- | --- | --- | --- |
| `.size` | `width: calc(var(--spacing) * var(--size))`, `height: calc(var(--spacing) * var(--size))` | `--size` | scaled |
| `.[size]` | `width: var(--size)`, `height: var(--size)` | `--size` | — |

### Constants

| Selector | Style | Layer |
| --- | --- | --- |
| `.size-auto` | `width: auto`, `height: auto` | `utilities` |
| `.size-full` | `width: 100%`, `height: 100%` | `utilities` |
| `.size-dvw` | `width: 100dvw`, `height: 100dvw` | `utilities` |
| `.size-dvh` | `width: 100dvh`, `height: 100dvh` | `utilities` |
| `.size-lvw` | `width: 100lvw`, `height: 100lvw` | `utilities` |
| `.size-lvh` | `width: 100lvh`, `height: 100lvh` | `utilities` |
| `.size-svw` | `width: 100svw`, `height: 100svw` | `utilities` |
| `.size-svh` | `width: 100svh`, `height: 100svh` | `utilities` |
| `.size-min` | `width: min-content`, `height: min-content` | `utilities` |
| `.size-max` | `width: max-content`, `height: max-content` | `utilities` |
| `.size-fit` | `width: fit-content`, `height: fit-content` | `utilities` |

## Width

> responsive (`sm:`–`2xl:`) · sources: `src/css/value-driven/width.css`, `src/css/constants/width.css`, `src/css/core-components/width.css`

### Value-driven

| Selector | Style | Variables | Flags |
| --- | --- | --- | --- |
| `.w` | `width: calc(var(--spacing) * var(--w))` | `--w` | scaled |
| `.[w]` | `width: var(--w)` | `--w` | — |

### Constants

| Selector | Style | Layer |
| --- | --- | --- |
| `.w-auto` | `width: auto` | `utilities` |
| `.w-full` | `width: 100%` | `utilities` |
| `.w-screen` | `width: 100vw` | `utilities` |
| `.w-dvw` | `width: 100dvw` | `utilities` |
| `.w-dvh` | `width: 100dvh` | `utilities` |
| `.w-lvw` | `width: 100lvw` | `utilities` |
| `.w-lvh` | `width: 100lvh` | `utilities` |
| `.w-svw` | `width: 100svw` | `utilities` |
| `.w-svh` | `width: 100svh` | `utilities` |
| `.w-min` | `width: min-content` | `utilities` |
| `.w-max` | `width: max-content` | `utilities` |
| `.w-fit` | `width: fit-content` | `utilities` |
| `.w-3xs` | `width: var(--container-3xs)` | `components` |
| `.w-2xs` | `width: var(--container-2xs)` | `components` |
| `.w-xs` | `width: var(--container-xs)` | `components` |
| `.w-sm` | `width: var(--container-sm)` | `components` |
| `.w-md` | `width: var(--container-md)` | `components` |
| `.w-lg` | `width: var(--container-lg)` | `components` |
| `.w-xl` | `width: var(--container-xl)` | `components` |
| `.w-2xl` | `width: var(--container-2xl)` | `components` |
| `.w-3xl` | `width: var(--container-3xl)` | `components` |
| `.w-4xl` | `width: var(--container-4xl)` | `components` |
| `.w-5xl` | `width: var(--container-5xl)` | `components` |
| `.w-6xl` | `width: var(--container-6xl)` | `components` |
| `.w-7xl` | `width: var(--container-7xl)` | `components` |
