About
Giant outlined type revealed by a liquid glass cursor. The pointer paints a trail that drifts like liquid, smearing the light and splitting it into colour at the edges, and shows in colour only inside the letters. At rest a slow gradient sweeps the words between outline and fill.
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Fluid Type to your project and fits it to your theme.
Code
How Fluid Type is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
"use client";
import type { ReactNode } from "react";
import { FluidType } from "@/components/ui/fluid-type";
const settings = {
aberration: 50,
spill: 0.16,
linger: 1,
swirl: 1
};
/* The demo's Google Fonts. In a Next.js app, use next/font/google instead. */
if (typeof document !== "undefined" && !document.getElementById("fluid-type-fonts")) {
const style = document.createElement("style");
style.id = "fluid-type-fonts";
style.textContent = "@import url('https://fonts.googleapis.com/css2?family=Host+Grotesk:wght@300..800&display=swap'); .rh-host-grotesk { font-family: 'Host Grotesk', sans-serif; }";
document.head.appendChild(style);
}
const sans = { className: "rh-host-grotesk", style: { fontFamily: "'Host Grotesk', sans-serif" } };
const markCorners = "M-1.3 -45.5H9.4V-17.2A8.5 8.5 0 0 0 17.9 -8.7H46V2H11.7A13 13 0 0 1 -1.3 -11ZM1.3 45.5H-9.4V17.2A8.5 8.5 0 0 0 -17.9 8.7H-46V-2H-11.7A13 13 0 0 1 1.3 11Z";
const markDiagonal = "M-34.96 -42.04L42.04 34.96L34.96 42.04L-42.04 -34.96Z";
/** A gentle entrance: rises and fades in, a beat after `delay` seconds. */
function Rise({ children, delay = 0, className = "" }: { children: ReactNode; delay?: number; className?: string }) {
return (
<div className={className} style={{ animation: `rh-rise 1.1s cubic-bezier(0.22, 1, 0.36, 1) ${delay}s both` }}>
<style>{`@keyframes rh-rise { from { opacity: 0; transform: translateY(28px); } } @media (prefers-reduced-motion: reduce) { @keyframes rh-rise { from { opacity: 0; } } }`}</style>
{children}
</div>
);
}
function DemoContent(props: Partial<typeof settings> = {}) {
const v = { ...settings, ...props };
return (
<main className={`${sans.className} relative h-svh overflow-hidden bg-black text-white`}>
<FluidType
lines={["ReactHive"]}
mark={{ paths: [markDiagonal], cut: markCorners }}
aberration={Number(v.aberration)}
spill={Number(v.spill)}
linger={Number(v.linger)}
swirl={Number(v.swirl)}
className="font-bold tracking-[-0.04em]"
/>
<div className="pointer-events-none absolute inset-x-0 bottom-[7svh] text-center">
<Rise delay={0.4}>
<p className="text-[15px] text-white/60">Move through the letters.</p>
</Rise>
</div>
</main>
);
}
/** The demo in its own colours, filling the frame. */
export default function Demo(props: Partial<typeof settings> = {}) {
return (
<div className="min-h-svh w-full" style={{ background: "#000000" }}>
<DemoContent {...props} />
</div>
);
}
















