A theme-aware WebGL prism field with liquid checkered motion, electric-blue refraction, and an optional tactile grain layer.
pnpm dlx shadcn@latest add @componentry/prism-gradient
Dependencies: next-themes clsx tailwind-merge
next-themes clsx tailwind-merge
speed
number
Animation speed multiplier. Set to 0 for a still frame.
1
noise
PrismGradientNoise
Optional grain overlay opacity and scale.
radius
string
Border radius applied to the gradient container.
"0px"
className
Additional CSS classes for the gradient container.
style
CSSProperties
Additional inline styles for the gradient container.
Keep in mind
Need a custom component?
I build bespoke UI components & websites tailored to your brand.
import { PrismGradient } from "@/components/ui/prism-gradient" <div className="relative min-h-[480px] overflow-hidden rounded-2xl"> <PrismGradient noise={{ opacity: 0.18, scale: 0.8 }} /> </div>