Measured entry
ruixen-variable-text
chartunclassifiedmotion on file
A client-side React text treatment that splits a string into animated characters and changes their weight, scale, lift, and opacity according to cursor proximity. It ships as a shadcn registry component, uses Motion for springs and transforms, and relies on a local cn utility plus Tailwind classes.



Measured
Every value below was written by the harness on the run that produced the frames above. None of it is derived from the prose.
| Build | OK |
|---|---|
| Mount | OK |
| Console errors | 0 |
| Uncaught page errors | 0 |
| Horizontal overflow | clean at 375, 768, 1440 |
| Axe critical | 0 |
| Axe serious | 0 |
| Axe moderate | 0 |
| Axe minor | 0 |
| Gzip marginal | 70.6 KB (136.1 KB build, 65.5 KB baseline) |
| Bare mode | FAIL |
| Provider required | NO |
| Demo used | written from the component source API |
What the harness recorded
BARE BUILD
✗ Build failed in 1m 15s error during build: [vite:load-fallback] Could not load <sandbox>/src/lib/utils (imported by src/cut/components/ruixen/variable-text.tsx): ENOENT: no such file or directory, open '<sandbox>/src/lib/utils'
Verdict
A focused choice for short, cursor-led display type, with a clean tested render and no provider requirement. It needs a shadcn-style setup as supplied, and teams should add touch and reduced-motion behavior before treating it as a general-purpose text component.
Use it if
- You want a short headline or display label to react directly to pointer movement.
- Your interface already uses Motion and a variable font that can show smooth weight changes.
- The text is decorative enough that disabling selection is acceptable.
Skip it if
- The copy is long, since every character creates its own animated element and spring.
- The interaction must work equally well for touch, keyboard, or reduced-motion users without further adaptation.
- Users need to select and copy the rendered text.
- You do not want to add Motion for a single decorative effect.
Install
| Declared dependencies | motion, clsx, tailwind-merge |
|---|---|
| Missing on install | none |
| Bare install | fails once the shadcn-style helpers are removed, so it needs that setup |
| Provider | no provider required in the harness |
In a non-shadcn project, install Motion, clsx, and tailwind-merge; add a cn helper or replace that import; configure the at-sign source alias or use a relative path; and provide the referenced Tailwind utilities. Keep it in a client-capable React boundary and use a variable font for the intended weight interpolation.
Source and credit
This page is a review, not a copy. The component source lives with its author and this site does not republish it. Read the license before you use anything.
Author repository
github.com/ruixenui/ruixen.comAlternatives
Other published entries for the chart pattern, ordered by what they measured: mounts first, then clean axe scans, then bare-mode passes, then the smaller bundle.
- tripled-holographic-wall-shadcnuiholographic
- Renders
- YES
- A11y
- 0
- Gzip
- 58.6KB
- Bare
- pass
- Prov
- NO
- hextaui-emptyminimal-flat
- Renders
- YES
- A11y
- 0
- Gzip
- 30.4KB
- Bare
- fail
- Prov
- NO
- neobrutalism-chartbrutalism
- Renders
- YES
- A11y
- 0
- Gzip
- 99.9KB
- Bare
- fail
- Prov
- NO
- shadcn-chartunclassified
- Renders
- YES
- A11y
- 0
- Gzip
- 99.9KB
- Bare
- fail
- Prov
- NO
- 8bitcn-chartskeuomorphism
- Renders
- YES
- A11y
- 0
- Gzip
- 127.7KB
- Bare
- fail
- Prov
- NO
- 8bitcn-chart-area-stepskeuomorphism
- Renders
- YES
- A11y
- 0
- Gzip
- 130.7KB
- Bare
- fail
- Prov
- NO