# Responsive

--<utility>--<breakpoint>: a value from that breakpoint up.

Source: https://www.zazz.sh/api/modifiers/responsive/

Append a breakpoint with a double hyphen: `--grid-cols: 1; --grid-cols--md: 2; --grid-cols--xl: 4`. Tiers are mobile-first and read the nearest inline-size container; see [breakpoints](/api/foundations/breakpoints/) for the thresholds and the container rules.

```html
<div
  style="
    --display: flex-col;
    --gap: 2;
    --w: 100%;
  "
>
  <span
    data-ui="text-xs"
    style="
      --font-weight: strong;
      --text: var(--color-muted-foreground);
    "
  >
    --grid-cols: 1; --grid-cols--sm: 2; --grid-cols--md: 3; --grid-cols--lg: 4 — expand to widen the
    container.
  </span>
  <div
    style="
      --display: grid;
      --grid-cols: 1;
      --grid-cols--sm: 2;
      --grid-cols--md: 3;
      --grid-cols--lg: 4;
      --gap: 6;
      --w: 100%;
    "
  >
    <div
      data-ui="text-sm"
      style="
        --p: 4;
        --font-weight: strong;
        --text-align: center;
        --text: var(--color-primary-foreground);
        --bg: var(--color-primary);
        --radius: 2.5;
      "
    >
      1
    </div>
    <div
      data-ui="text-sm"
      style="
        --p: 4;
        --font-weight: strong;
        --text-align: center;
        --text: var(--color-primary-foreground);
        --bg: var(--color-primary);
        --radius: 2.5;
      "
    >
      2
    </div>
    <div
      data-ui="text-sm"
      style="
        --p: 4;
        --font-weight: strong;
        --text-align: center;
        --text: var(--color-primary-foreground);
        --bg: var(--color-primary);
        --radius: 2.5;
      "
    >
      3
    </div>
    <div
      data-ui="text-sm"
      style="
        --p: 4;
        --font-weight: strong;
        --text-align: center;
        --text: var(--color-primary-foreground);
        --bg: var(--color-primary);
        --radius: 2.5;
      "
    >
      4
    </div>
    <div
      data-ui="text-sm"
      style="
        --p: 4;
        --font-weight: strong;
        --text-align: center;
        --text: var(--color-primary-foreground);
        --bg: var(--color-primary);
        --radius: 2.5;
      "
    >
      5
    </div>
    <div
      data-ui="text-sm"
      style="
        --p: 4;
        --font-weight: strong;
        --text-align: center;
        --text: var(--color-primary-foreground);
        --bg: var(--color-primary);
        --radius: 2.5;
      "
    >
      6
    </div>
    <div
      data-ui="text-sm"
      style="
        --p: 4;
        --font-weight: strong;
        --text-align: center;
        --text: var(--color-primary-foreground);
        --bg: var(--color-primary);
        --radius: 2.5;
      "
    >
      7
    </div>
    <div
      data-ui="text-sm"
      style="
        --p: 4;
        --font-weight: strong;
        --text-align: center;
        --text: var(--color-primary-foreground);
        --bg: var(--color-primary);
        --radius: 2.5;
      "
    >
      8
    </div>
  </div>
</div>
```

Families that take breakpoint tiers: flow, grid, spacing, margin, sizing, typography, and color. Most effects (`--shadow`, `--opacity`, `--filter`) take states only, but `--elevation`, the `--ring*` utilities, and `--shadow-angle` take breakpoints too. `--radius` takes both, and the corner utilities (`--radius-t`, `-b`, `-l`, `-r`) take breakpoints. `--isolation`, `--font-family`, `--font-style`, `--border-style`, and `--container-name` take no breakpoints.

```html
<div
  style="
    --display: flex-col;
    --gap: 2;
    --w: 100%;
  "
>
  <span
    data-ui="text-xs"
    style="
      --font-weight: strong;
      --text: var(--color-muted-foreground);
    "
  >
    --display: flex-col; --display--sm: flex-row — stacks on a narrow container, rows out on a wide
    one. Expand to see it.
  </span>
  <div
    style="
      --display: flex-col;
      --display--sm: flex-row;
      --gap: 6;
      --w: 100%;
    "
  >
    <div
      data-ui="text-sm"
      style="
        --flex: 1;
        --p: 6;
        --font-weight: strong;
        --text-align: center;
        --text: var(--color-primary-foreground);
        --bg: var(--color-primary);
        --radius: 2.5;
      "
    >
      Sidebar
    </div>
    <div
      data-ui="text-sm"
      style="
        --flex: 1;
        --p: 6;
        --font-weight: strong;
        --text-align: center;
        --text: var(--color-muted-foreground);
        --bg: var(--color-muted);
        --radius: 2.5;
      "
    >
      Content
    </div>
    <div
      data-ui="text-sm"
      style="
        --flex: 1;
        --p: 6;
        --font-weight: strong;
        --text-align: center;
        --text: var(--color-muted-foreground);
        --bg: var(--color-muted);
        --radius: 2.5;
      "
    >
      Aside
    </div>
  </div>
</div>
```

A single hyphen inside a name is part of the utility (`--bg-alpha`, `--grid-cols`); the double hyphen always introduces a modifier.
