Black Friday: 30% off Pro

Get 30% off

Updated

Column Gradient

Pro

Preview

Customize

Color
Columns10
Angle0°
Shift0.35
See-through0.15
Cloud0.30
Scale1.00
Lens0.30
Edge0.40
Dispersion0.40
Frost0.60
Light1.00
Gloss0.45
Shadow0.50
Depth40px
Grain0.120
Grain size1.0px
Speed1.0
Seed0
Drag1.00
Bounce0.50
Reach140px

Installation

Pro

Column Gradient is a Pro component

Sign in to see the source, or install it with a license key. The live preview and props above are free to explore.

Install with a key

  1. Add the Pro registry to components.json:
    components.json
    {
      "registries": {
        "@uibrik-pro": {
          "url": "https://uibrik.com/r/pro/{name}.json",
          "headers": { "Authorization": "Bearer ${UIBRIK_LICENSE}" }
        }
      }
    }
  2. Put your key in .env.local and add that file to .gitignore:
    .env.local
    UIBRIK_LICENSE=your-license-key
  3. Install it:
    Terminal
    npx shadcn@latest add @uibrik-pro/column-gradient

Usage

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>

Where to use Column Gradient

  • 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

  • Portfolio and studio sites

    Columns that slide under the pointer give a quiet page something tactile to play with.

Props

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