A display headline projected onto the ground plane. Letters read wide at the cap line and taper to the baseline, fanning out from a vanishing point below — painted-on-the-road lettering, in plain CSS transforms.
Install
Add it to your project
Run this in a project set up for shadcn/ui. It writes the files and installs the npm packages.
First time: connect the Infinity UI registry
- Create a personal token on your Tokens page.
- Put it in
.env.localasINFINITYUI_TOKEN. - Add the registry to
components.json:
{
"registries": {
"@infinityui": {
"url": "https://infinityui.io/r/{name}.json",
"headers": {
"Authorization": "Bearer ${INFINITYUI_TOKEN}"
}
}
}
}Using Claude Code, Codex, Cursor, Lovable or v0? See CLI & MCP for a setup prompt.
Code
import { PerspectiveText } from "@/registry/ruixenui/perspective-text";
export default function PerspectiveTextDemo() {
return (
<div className="flex w-full items-center justify-center overflow-hidden px-6 py-24">
<PerspectiveText
as="h2"
className="text-[clamp(2rem,9vw,6rem)] text-foreground"
text="FOLLOWERS"
/>
</div>
);
}
































