Updated
Silk Vortex
Customize
Colors
Intensity1.60
Frequency0.55
Flow1.0
Twist0.60
Warp1.00
Width0.15
Lobes1.00
Length2.40
Softness0.50
Gloss0.80
Shine0.25
Refraction0.45
Chroma0.20
Vignette0.00
Angle-15°
Speed1.0
Grain0.030
Seed0
Lean0.50
Follow0.80
Installation
npx shadcn@latest add https://uibrik.com/r/silk-vortex.jsonAdd the cn helper
Imports
cnfrom@/lib/utils, whichshadcn initcreates. Add it by hand without shadcn.Copy the source into your project
components/uibrik/silk-vortex/silk-vortex.tsx"use client"; import { ShaderSurface, type ShaderBackgroundProps } from "../_shader-background/ShaderSurface"; // Liquid glass streaming outward from a dark, lens-shaped void. Built like a motion-graphics stack: // warp - 6 or 7 strips nested around a tilted oval, each wider than the one inside it; // they stream outward // twist - the dark arms leaving the oval's ends curl, like a vortex // wave warp - a very slow, broad sway of the whole shape // masks - the dark oval, darkness leaking along its axis, light on its two sides // colorama - the brightness is mapped through the colour list, blended in OKLCH // and then lit as glass: the folds are a height field whose slopes give a surface normal, so the // crests catch sharp wet highlights, steep sides get a Fresnel rim, and the colour shifts along the // slopes as if refracted, split a little per channel. const SHADER = /* glsl */ ` uniform float u_intensity; // brightness before the colour mapping uniform float u_frequency; // how many folds uniform float u_flow; // how fast the folds stream outward uniform float u_twist; // how much the dark arms curl as they leave the oval uniform float u_warp; // slow, broad sway of the whole shape uniform float u_hole; // half-width of the dark oval uniform float u_lobes; // how strongly the light gathers into two opposite lobes uniform float u_stretch; // how many times longer the oval is than wide uniform float u_softness; // rounds the folds
Adds the files to
components/uibrik/silk-vortex. With the @uibrik namespace set up: npx shadcn@latest add @uibrik/silk-vortex.Too large to paste whole, so Copy prompt gives a short prompt that installs it with the CLI. Download the full prompt to attach it instead.
Usage
import { SilkVortex } from "@/components/uibrik/silk-vortex/silk-vortex";const colors = ["#000000", "#0d00aa", "#301fe9", "#b166fe", "#ffecff"];<SilkVortex colors={colors} intensity={1.6} frequency={0.55} flow={1} twist={0.6} warp={1} hole={0.15} lobes={1} stretch={2.4} softness={0.5} gloss={0.8} shine={0.25} refraction={0.45} chroma={0.2} vignette={0} angle={-15} speed={1} grain={0.03} seed={0} animate interactive lean={0.5} follow={0.8}> …</SilkVortex>Where to use Silk Vortex
AI and tech heroes
Liquid glass streaming from a dark void gives a striking focal point.
Dark premium pages
Glossy folds mapped through a gradient suit high-end dark themes.
Music and events
The vortex fits album launches and event teasers.
Props
SilkVortex- colors
- Type string[]
- ["#000000","#0d00aa","#301fe9","#b166fe","#ffecff"]
- The gradient light is mapped through, dark to bright, blended in OKLCH; 2 to 6 colours.
- intensity
- Type number
- 1.6
- Brightness before the colour mapping.
- frequency
- Type number
- 0.55
- How many folds.
- flow
- Type number
- 1
- How fast the folds stream outward; negative flows inward.
- twist
- Type number
- 0.6
- How much the dark arms curl as they leave the oval, like a vortex.
- warp
- Type number
- 1
- Slow, broad sway of the whole shape.
- hole
- Type number
- 0.15
- Width of the dark oval.
- lobes
- Type number
- 1
- How strongly the light gathers on the two sides, leaving the oval's ends dark; 0 lights all round.
- stretch
- Type number
- 2.4
- How many times longer the dark oval is than wide.
- softness
- Type number
- 0.5
- Rounds the folds; lower pinches them into ridges.
- gloss
- Type number
- 0.8
- Strength of the glossy highlights and rim.
- shine
- Type number
- 0.25
- Size of the highlights: 0 is broad, 1 is pin-sharp.
- refraction
- Type number
- 0.45
- How much the colour shifts along the slopes, as if refracted.
- chroma
- Type number
- 0.2
- Colour split at the edges.
- vignette
- Type number
- 0
- Darkening toward the corners; 0 keeps the liquid right to the edges.
- angle
- Type number
- -15
- Tilt.
- speed
- Type number
- 1
- Animation speed; 1 is the designed pace.
- grain
- Type number
- 0.03
- Film grain strength.
- seed
- Type number
- 0
- Shifts the composition, so two backgrounds with the same settings still differ.
- animate
- Type boolean
- true
- Move on its own. Off draws one still frame.
- interactive
- Type boolean
- true
- React to the pointer.
- lean
- Type number
- 0.5
- How far the void drifts toward the pointer.
- follow
- Type number
- 0.8
- How lazily it follows the pointer, 0 (locked) to 1 (drifts after it).
- children
- Type ReactNode
- –
- Content shown on top of the background.
- className
- Type string
- –
- Classes for the box; it fills whatever size you give it.