Loading…
← All components

Typography · Crystal

Volumetric Chroma Text

Your title extruded in refractive liquid crystal: spectral dispersion along the bevels, a light that follows the pointer, colored caustics on the floor.

<VolumetricChromaText />Live

Customize

Light#a78bfa

Installation

Use it in your project

Or skip the copy-paste

One command: writes the file and installs the dependencies.

$ npx deepui-cli add volumetric-chroma-text

Pro component: run npx deepui-cli login first with a token from your library.

01

Install

The 3D packages this component is built on.

$ npm install three @react-three/fiber @react-three/drei && npm install -D @types/three
02

Add the component

One self-contained file: create components/VolumetricChromaText.tsx and paste it in.

03

Drop it in a page

Updated live with the settings above.

app/page.tsx
1import VolumetricChromaText from "@/components/VolumetricChromaText";
2
3export default function Section() {
4 return (
5 // The component fills this box: give it a position and a height
6 <div style={{ position: "relative", width: "100%", height: "100vh" }}>
7 <VolumetricChromaText
8 text="DEEP UI"
9 extrusionDepth={0.4}
10 bevelSize={0.035}
11 chromaticShift={0.5}
12 fontSize={1}
13 emissiveColor="#a78bfa"
14 lightFollowCursor
15 />
16 </div>
17 );
18}
Next componentVenom Symbiote Button→