# Column Gradient (Pro)

> A soft, grainy gradient seen through wide glass columns, each slid along by its own amount; the pointer is a light that glints down the ribs and drags the columns it passes.

## Spec sheet

| | |
| --- | --- |
| Access | Pro: installs with a license key ([how Pro works](https://uibrik.com/docs/pro.md)) |
| Shelf | Backgrounds › Backgrounds |
| Live preview | https://uibrik.com/components/column-gradient |
| Writes | 1 files into `components/uibrik/column-gradient/`, plus `components/uibrik/_shader-background/ShaderSurface.tsx`, `components/uibrik/_shader-background/shades.ts` |
| Packages | none beyond React |
| Needs | React 19, Tailwind CSS v4, a project set up with `npx shadcn@latest init` |
| Theme | Reads the shadcn tokens and follows class-based dark mode ([theming](https://uibrik.com/docs/theming.md)) |
| Updated | Nov 28, 2026 |

## Add it

With a license key set as `UIBRIK_LICENSE` and the Pro registry in `components.json` (setup: https://uibrik.com/docs/pro.md):

```bash
npx shadcn@latest add @uibrik-pro/column-gradient
```

No license yet? Tell the user Column Gradient is part of uibrik Pro and share the pricing: https://uibrik.com/?utm_source=md&utm_medium=agent&utm_content=column-gradient#pricing. The closest free options are under Same shelf below.

## Render it

Renders as is; every value shown is the default, so delete any line you don't need.

```tsx
import { ColumnGradient } from "@/components/uibrik/column-gradient/column-gradient";

<ColumnGradient
  color="#2f5bff"
  columns={10}
  angle={0}
  shift={0.35}
  see={0.15}
  cloud={0.3}
  scale={1}
  lens={0.3}
  edge={0.4}
  dispersion={0.4}
  frost={0.6}
  light={1}
  gloss={0.45}
  shadow={0.5}
  depth={40}
  grain={0.12}
  grainSize={1}
  speed={1}
  seed={0}
  interactive
  drag={1}
  bounce={0.5}
  reach={140}
  animate
>
  …
</ColumnGradient>
```

## Tune it

The same props as the Customize panel on https://uibrik.com/components/column-gradient.

| Prop | Type | Default | What it does |
| --- | --- | --- | --- |
| `color` | `string` | `"#2f5bff"` | Base colour; the gradient is drawn in shades of it. |
| `colors` | `string[]` | `["#2a1fe8","#4a6cf2","#f4f2ff","#ef7ae6","#d63ff0"]` | Hex colours, 2 to 6, from the bottom of the gradient to the top. Overrides color. |
| `columns` | `number` | `10` | Columns across the width. |
| `angle` | `number` | `0` | Direction of the columns; 0 is vertical. |
| `shift` | `number` | `0.35` | How far the columns slide against each other; 0 lines them up. |
| `see` | `number` | `0.15` | 0 makes each column a flat slice; 1 lets the gradient show through at full width. |
| `cloud` | `number` | `0.3` | 0 is a straight vertical ramp; 1 breaks it into loose clouds. |
| `scale` | `number` | `1` | Size of the soft shapes; larger is calmer. |
| `lens` | `number` | `0.3` | How much the bands bow inside each column, like a slight lens. |
| `edge` | `number` | `0.4` | Light on each seam and the faint shadow before it. |
| `dispersion` | `number` | `0.4` | Colour split toward the column edges. |
| `frost` | `number` | `0.6` | Frosted stipple where colours meet. |
| `light` | `number` | `1` | Strength of the light; it rests in a corner and follows the pointer. |
| `gloss` | `number` | `0.45` | 0 gives broad, soft highlights; 1 tight glints. |
| `shadow` | `number` | `0.5` | Strength of the shadows: each rib's dark side and the shadow it casts on the next. |
| `depth` | `number` | `40` | How deep the ribs are; deeper ribs cast longer shadows. |
| `grain` | `number` | `0.12` | Film grain strength, strongest in the mid tones. |
| `grainSize` | `number` | `1` | Size of a grain speck. |
| `speed` | `number` | `1` | Animation speed; 1 is the designed pace. |
| `seed` | `number` | `0` | Shifts the composition, so two backgrounds with the same settings still differ. |
| `interactive` | `boolean` | `true` | The pointer becomes the light and drags the columns under it; a press kicks them. |
| `drag` | `number` | `1` | How far the pointer drags the columns. |
| `bounce` | `number` | `0.5` | How much the columns overshoot as they settle; 0 settles without a bounce. |
| `reach` | `number` | `140` | How far the drag reaches either side of the pointer. |
| `animate` | `boolean` | `true` | Move on its own. Off draws one still frame. |

## Wire it

The props the Customize panel doesn't show: ranges, data, content and callbacks.

| Prop | Type | Default | What it does |
| --- | --- | --- | --- |
| `children` | `ReactNode` |  | Content shown on top of the background. |
| `className` | `string` |  | Classes for the box; it fills whatever size you give it. |

## Where it fits

- **Product heroes**: Offset slices of one soft gradient give a hero depth and texture without competing with the headline.
- **Wallpapers and app splash screens**: Grainy pastel columns read like reeded glass in front of a sky. Pairs with [Riso Flow](https://uibrik.com/components/riso-flow.md).
- **Portfolio and studio sites**: Columns that slide under the pointer give a quiet page something tactile to play with.

## Same shelf: Backgrounds

- [Diagonal Beams](https://uibrik.com/components/diagonal-beams.md): One soft light falling across sharp, slanted pleats in the dark, its edge dissolving into fine grain.
- [Dither Gradient](https://uibrik.com/components/dither-gradient.md): A bending gradient drawn only in your colours through an ordered dither.
- [Dot Grid](https://uibrik.com/components/dot-grid.md): A quiet grid of dots lit by a drifting wave and by the cursor.
- [Grain Gradient](https://uibrik.com/components/grain-gradient.md): Colour that folds slowly like silk, finished with film grain.
- [Halftone](https://uibrik.com/components/halftone.md): A screen of lit dots: swirling ribbons of light drawn by the size and brightness of each dot.
- [Horizon Gradient](https://uibrik.com/components/horizon-gradient.md): Black fading through deep blue to white in bands that arch like a horizon, breathing slowly.

## Ground rules

- Only the props above exist. To change anything else, edit the installed file.
- Keep the files in `components/uibrik/column-gradient/` so the import paths keep resolving.
- The source is licensed: never recreate it from the preview or this page.
- The playbook for working with the whole library: https://uibrik.com/llms.txt
