ASCII Fluid
A WebGL fluid background — mouse trails leave ink that swirls and quantizes to a clean ASCII brightness ramp.
Pointer trails dump ink into a fluid sim; density maps onto a full letter/symbol brightness ramp. Theme-aware. No text input — just a background. Press d to toggle theme.
#18181B
#FAFAFA
12
1
0.05
0.55
Soft ambient swirl when idle
Installation
pnpm dlx shadcn@latest add @23rd/ascii-fluidOr install straight from the public GitHub source registry:
pnpm dlx shadcn@latest add radiumcoders/23rd.dev/ascii-fluidUsage
Place it behind content in a relatively positioned container.
"use client"
import { AsciiFluid } from "@/components/ui/ascii-fluid"
export function Hero() {
return (
<div className="relative h-svh overflow-hidden bg-background">
<AsciiFluid />
<div className="relative z-10 p-10">Your content</div>
</div>
)
}Props
| Prop | Type | Default |
|---|---|---|
charset | string | full letter/symbol brightness ramp |
cellSize | number | 12 |
color | string | theme ink |
backgroundColor | string | theme paper |
force | number | 1 |
dissipation | number | 0.05 |
brush | number | 0.55 |
animate | boolean | true |
interactive | boolean | true |
theme | "light" | "dark" | "auto" | auto |
className | string | — |