---
title: "Isobar Chart Background"
description: "Weather pressure rings around drifting H and L marks; the hand is a storm."
url: https://gelatinui.com/components/isobar-chart-background
markdown_url: https://gelatinui.com/components/isobar-chart-background.md
access: free
install: "npx shadcn@latest add @gelatin-ui/isobar-chart-background"
registry_item: https://gelatinui.com/r/isobar-chart-background.json
version: "2026-11-24"
index: https://gelatinui.com/llms.txt
docs_index: https://gelatinui.com/docs/llms.txt
---

# Isobar Chart Background

> Weather pressure rings around drifting H and L marks; the hand is a storm.

Page: https://gelatinui.com/components/isobar-chart-background

## When to use it

Best for: A weather or climate hero: pressure lines around drifting H and L marks.

- Use `cellSize` and `wander` for the size of each weather system and how far it drifts.
- Use `markSize` for the H and L marks; 0 hides them.
- Use `mask` (`top`, `bottom`, `edges`, or `radial`) to fade an edge into the page, and `maskSoftness` for the width of the fade.

## When not to use it

- For a 3D range of contour lines, use [Contour Range Background](https://gelatinui.com/components/contour-range-background.md).
- For electric field lines, use [Field Lines Background](https://gelatinui.com/components/field-lines-background.md).

## Notes for agents

- `pointer` is on by default: the hand is a storm that pulls a new low through the chart. `lift` sets its depth, and `reach` its width.
- Children sit on top of the moving picture. The root is `relative isolate overflow-hidden`: give it a height, or let a flex parent size it.
- `palette` takes CSS colors: the ground, the second ground, then the look colors. The default palette has its own light and dark values.
- It stops off screen and in a hidden tab. `paused` holds the frame, and `speed={0}` shows a still frame.
- With no WebGL2 the box stays empty. Set `fallback` to show a CSS gradient of the palette there, on the server, and before the first frame.

## Anatomy

```text
IsobarChartBackground
```

## API reference

### IsobarChartBackground

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `palette` | `readonly string[]` | PALETTE | Any CSS colors (`var(--token)` too): the ground, the second ground, then the look colors. |
| `speed` | `number` |  | The time scale: 1 (default) is the designed speed, 0 a still frame. |
| `paused` | `boolean` |  | True holds the current frame. Default false. |
| `trigger` | `BackgroundTrigger` |  | When it moves: `loop` (default) or `hover`. It draws its first frame either way. |
| `seed` | `number` |  | Another seed gives another field of the same look. Default 0. |
| `press` | `boolean` |  | True: a press on the box sends a ripple through the field where it lands; a press on a button or a link inside does not. Default false. |
| `pointer` | `boolean` | true | True: the field leans toward a mouse or pen over the box. Default false. |
| `fps` | `number` |  | The most frames a second. Default: the display rate. |
| `resolution` | `number` |  | A last scale on the canvas pixels, after the caps (0.5 draws a quarter of them). Default 1. |
| `mask` | `"bottom" \| "edges" \| "none" \| "radial" \| "top"` |  | Fades an edge into the page: `radial`, `edges`, `top`, or `bottom`. Default `none`. |
| `vignette` | `number` |  | Darkens toward the corners, 0 to 1. Default 0. |
| `fallback` | `boolean` |  | True: a CSS gradient of the palette shows on the server, until the first WebGL frame, and with no WebGL. Default false: the box stays empty and the live picture fades in, because the gradient looks unlike the real effect and the swap reads as a glitch. |
| `cellSize` | `number` | 0.3 | The size of each weather system, as a share of the box height. From 0.12 to 0.6. Default 0.3. |
| `wander` | `number` | 0.12 | How far each weather system drifts from its home. From 0 to 0.4. Default 0.12. |
| `roughness` | `number` | 0.12 | The small bends in the lines between the systems. From 0 to 0.4. Default 0.12. |
| `isobars` | `number` | 13 | How many pressure lines one unit of pressure holds. From 4 to 40. Default 13. |
| `lineWidth` | `number` | 0.9 | The width of a pressure line, in CSS px. From 0.4 to 3. Default 0.9. |
| `indexWidth` | `number` | 1.8 | The width of a heavy pressure line, in CSS px. From 0.5 to 4. Default 1.8. |
| `indexEvery` | `number` | 4 | Which pressure lines draw heavy: every fourth at 4. A whole number from 2 to 8. Default 4. |
| `markSize` | `number` | 11 | The half height of the H and L marks, in CSS px. 0 hides them. From 0 to 28. Default 11. |
| `lift` | `number` | 0.75 | How deep the storm under the hand is. Needs the pointer on. From 0 to 1.5. Default 0.75. |
| `reach` | `number` | 0.2 | How wide the storm under the hand is, as a share of the box height. From 0.05 to 0.5. Default 0.2. |
| `maskSoftness` | `number` | 0.25 | The share of the box the mask fade takes, from 0.05 to 0.6. Default 0.25. |

## Styling

| Part | Slot | States | CSS variables | Tokens |
| --- | --- | --- | --- | --- |
| IsobarChartBackground | `isobar-chart-background` |  | `--isobar-chart-bg`, `--isobar-chart-bg-2`, `--isobar-chart-color-1`, `--isobar-chart-color-2`, `--isobar-chart-color-3` |  |

## Usage

Put the hero content inside as children: they sit on top of the moving picture. Give the root a height.

The sample also uses `button`, which this add does not write. One command adds them with this item:

```bash
npx shadcn@latest add @gelatin-ui/isobar-chart-background @gelatin-ui/button
```

```tsx title="isobar-chart-hero.tsx"
import { IsobarChartBackground } from "@/components/backgrounds/isobar-chart-background";
import { Button } from "@/components/ui/button";

export function IsobarChartHero() {
  return (
    <IsobarChartBackground
      markSize={13}
      className="flex h-[560px] flex-col items-center justify-center gap-6 px-6 text-center"
    >
      <p className="text-sm text-muted-foreground">Skyward Forecast</p>
      <h1 className="max-w-2xl text-5xl font-light tracking-tight">
        Know the weather a week ahead
      </h1>
      <p className="max-w-md text-muted-foreground">
        Hour-by-hour forecasts from 40,000 stations.
      </p>
      <Button size="lg">Get the app</Button>
    </IsobarChartBackground>
  );
}
```

## Compose

Rules:

- Compose the parts (`compose-parts`): Build each item from its named parts as children, and pass your text and icons in as parts.
- Every state is designed (`every-state`): Give each view of data its loading, empty, and error states: a skeleton in the final layout, an `Empty` with an illustration and one next action, and an error that says what failed and how to retry.

## Add it

```bash
npx shadcn@latest add @gelatin-ui/isobar-chart-background
```

It adds 51 registry items: 51 files, 7898 lines, and the npm packages `@base-ui/react`, `@mantine/hooks`, `clsx`, `motion`, `tailwind-merge`.

## For AI agents

- Every item, one file: https://gelatinui.com/llms.txt
- MCP server (`search_items`, `get_item`, `get_install_plan`): https://gelatinui.com/mcp

## Related

- [Contour Range Background](https://gelatinui.com/components/contour-range-background.md)
- [Tide Map Background](https://gelatinui.com/components/tide-map-background.md)
- [Field Lines Background](https://gelatinui.com/components/field-lines-background.md)

## Motion

| Part | Motion |
| --- | --- |
| Show | chart · 600ms · ease-panel · the picture fades in after its first drawn frame |
| Loop | progress · the picture moves on its own clock at one speed; `speed` scales it, and 0 shows a still frame |
