OPUS/UI

Navigation

Text Pressure

hot

Each letter’s variable-font weight responds to pointer proximity — a typographic lens. Static fonts still get the stretch.

pointervariable-font2 files · 99 locdeps: clsx, tailwind-merge

Installation

With the shadcn CLI, pointing at this platform’s registry:

npx shadcn@latest add https://opusui.131199999.xyz/r/text-pressure.json

Or offline, straight from your opus55 checkout (copies every file it needs):

node ../tailwind_component/opus55/scripts/add.mjs text-pressure

Usage

import { TextPressure } from "@/components/opus/text/text-pressure";

<TextPressure text="PRESSURE" className="text-8xl" />

API

PropTypeDefaultDescription
minWeight / maxWeightnumber200 / 900wght axis range.
radiusnumber160Influence radius (px).
stretchnumber0.25Extra scaleY under the pointer.

Notes

  • Works best with a variable font (Geist, Inter, Roboto Flex). Text stays one accessible label.

Command palette