PRO

Gyre

Your words in extruded iridescent foil, running round the edge of their box, ring behind ring, until the deeper rings fade into black. Resize the box and the rings re-fit live, picking how many copies of the phrase close one lap. Move the pointer and the rings shift in parallax; scroll the wheel to push them faster. The words, separator, letter size, depth, bevel, ring spacing, lens, seven foil colours, glints, glow and grain are all props, with a light mode alongside the dark default. Three.js with opentype.js glyphs, one instanced shader, bloom and film grain.

Component
Letter spacing
0.04
Word spacing
0.42
Install
npx shadcn@latest add @compronents/gyre

Installs from ui.aryank.space. Needs a registry token and a one-time @compronents entry in components.json. The docs walk through both.

Files
Checking access…
API
PropTypeDefaultDescription
textstring"SAY IT LOUDER"The words, up to 60 characters. Uppercased, runs of spaces collapsed.
sepstring"•"Mark between repeats of the phrase, up to 4 characters. Empty for none.
trackingnumber0.04Letter spacing in cap heights, -0.1 to 0.4.
wordGapnumber0.42Word spacing in cap heights, 0.1 to 1.5.
sizenumber0.115Letter size as a share of the box's short side, 0.05 to 0.22. The ring count rounds this so the phrase closes the loop.
extrudenumber0.5Letter depth in cap heights, 0.05 to 1.2. Changing it re-cuts every glyph.
bevelnumber0.045Bevel in cap heights, 0 to 0.12.
marginnumber18Space between the front ring and the box edge, in CSS px, 0 to 80.
cornernumber0.6Corner radius of the ring path in cap heights, 0.1 to 3.
turnGapnumber0.55Gap between one ring and the next, 0.05 to 1.5.
turnsnumber8Rings drawn behind the front one, 2 to 12. Fog usually hides the last few.
fogStartnumber0.7Ring at which the fade into the ground starts, 0 to 8.
fogEndnumber3.8Ring at which letters are fully gone, 1 to 12.
speednumber0.6Letters per second, -3 to 3. Negative runs the other way.
pushnumber1.2How hard the mouse wheel throws the rings, 0 to 4. The push decays over about half a second.
fovnumber52Lens in degrees, 20 to 90. Wider makes the rings recede faster.
parallaxnumber0.5How far the eye follows the pointer, 0 to 1.5. The front ring stays pinned to the box.
resizeLagnumber0Seconds the rings take to follow a resize, 0 to 1. 0 follows at once.
c1 … c7string"#6f9fc8" … "#5e5fa3"The seven foil colours in light mode, swept round the frame.
c1Dark … c7Darkstring"#9cc6e0" … "#8689bd"The seven foil colours in dark mode.
satnumber1.7Colour strength, 0 (grey) to 3.
spreadnumber0.9How many times the ramp repeats round one lap, 0 to 3.
letterHuenumber0.32Colour change from the foot to the top of a letter, 0 to 1.5.
filmnumber0.75Colour shift with view angle, like thin film, 0 to 2.
driftnumber0.03Slow colour drift over time, 0 to 0.3.
sideShadenumber0.66Brightness of the extruded sides, 0.2 to 1.2.
sideShiftnumber0.3How far along the ramp the sides sit from the face, 0 to 1.
palenumber0.12Whitens faces that look straight at the camera, 0 to 1. Halved in light mode.
glossnumber0.7Horizon band reflected in the faces, 0 to 2.
glintnumber1.6Strength of the two specular glints, 0 to 4.
glintColor / glintColorDarkstring"#ffffff"Glint and band colour per mode.
glownumber0.4Bloom strength, 0 to 2. Light mode uses 30% of it.
grainnumber0.055Film grain, 0 to 0.25. Light mode uses 70% of it.
appearance"auto" | "light" | "dark""dark"Which colour set to use. "auto" follows the page: data-theme, color-scheme, a .dark class, then the OS.
ground / groundDarkstring"#ecebe7" / "#020203"Background and fog colour per mode.
fontUrlstringGYRE_FONT_URLFont for the letters (woff, ttf or otf), parsed with opentype.js. Defaults to Unbounded Black.
onReady(gyre: GyreHandle) => void—Receives the running engine: set(), setZoom(), stats() and debug (freeze, setTime, settle, hand) for exact frames.
classNamestring—Classes for the root. It fills its parent, so give the parent a size.
styleCSSProperties—Additional styles for the root.
Dependencies
threeopentype.js