Docs/Dither Prism Hero

Dither Prism Hero

A breathtaking WebGL hero background featuring advanced dithering, prismatic refraction, and holographic iridescence rendered in real-time with GLSL.

Installation

$pnpm dlx shadcn@latest add @componentry/dither-prism-hero

Usage

API Reference

PropTypeDefault
title1First line of the main metallic headline.
string—
title2Second line of the main metallic headline.
string—
color1Primary color (deep/dark) for the gradient base.
string"#0f0f23"
color2Secondary color (mid-tone) for gradient transitions.
string"#6366f1"
color3Tertiary color (bright/accent) for gradient highlights.
string"#ec4899"
speedAnimation speed multiplier for all shader effects.
number1
ditherIntensityIntensity of the dithering effect (0-1). Higher values create a more pronounced retro/grainy look.
number0.15
prismIntensityIntensity of the prismatic rainbow refraction (0-1).
number0.5
showParticlesWhether to show floating particles layer.
booleantrue
particleCountNumber of floating particles (performance consideration).
number50
particleColorColor of the floating particles.
string"#ffffff"
childrenCustom content to render on top of the background (e.g., buttons, forms).
ReactNode—
classNameAdditional CSS classes for the container.
string—

Click on the icon in the top right of the example preview to view the source code for specific variants.

Keep in mind

This component is inspired by various open-source projects and patterns. Please verify licenses and implementation details before using in production.

Have any questions?
Contact on@harshjdhv

Experience

The Future

import { DitherPrismHero } from "@/components/ui/dither-prism-hero"

<DitherPrismHero 
    title1="Experience" 
    title2="The Future"
/>