0Views
0Copies

API Reference
Props for <SpotlightWordmark />
| Prop | Type | Default | Description |
|---|---|---|---|
| color | string | "#e2e8d9" | The word's pale colour at rest. |
| leafColor | string | "#e2e8d9" | The leaf's colour at rest. |
| spotlightColor | string | "#2fae35" | The word's colour inside the spotlight. |
| spotlightLeafColor | string | "#b8f28a" | The leaf's colour inside the spotlight. |
| Prop | Type | Default | Description |
|---|---|---|---|
| text | string | "Grabbit" | The word, on one line; a long word scales down to fit. Screen readers read it too. |
| font | FontValue | {"fontFamily":"Outfit","fontWeight":700} | The word's family and weight; the component doesn't load the font, so add it to your app. |
| Prop | Type | Default | Description |
|---|---|---|---|
| maxSize | number | 352 | The largest font size; below it the word scales with the component's width. |
| letterSpacing | number | -0.06 | Space between the letters, as a share of the font size. |
| interaction | 'hover' | 'none' | "hover" | Over the word, a spotlight opens under the cursor and follows it; it closes when the cursor leaves. |
| spotlightRadius | number | 260 | The spotlight's largest radius; it never passes 22% of the word's width. |
| softness | number | 0.65 | Share of the spotlight's radius that fades out; 0 is a hard-edged circle. |
| entrance | 'view' | 'none' | "view" | The word rises and fades in once when first seen, or is there from the start. |
| entranceDuration | number | 0.9 | How long the rise takes. |
| entranceDistance | number | 35 | How far below its place the word starts, as a share of its height. |
| Prop | Type | Default | Description |
|---|---|---|---|
| leaf | boolean | true | A leaf stands in for the dot of every lowercase i. |
Motion score
Compositor-only
- Category
- Text Effects
- Framework
- React
- Published
- Dec 4, 2026
- Dependencies
- Variants
Spotlight Wordmark: a spotlight effect for React
A big pale word with a leaf in place of the dot on the i. A soft circle of light follows the cursor across it and shows the word in full color underneath. The word rises into place when first seen.
Use Spotlight Wordmark for a brand name that people discover by moving the mouse, on a hero, an about page or the last screen of a site. The spotlight effect keeps the word quiet until someone explores it. It's a Pro React component for Next.js, Vite and Astro with Tailwind CSS v4. More in this category.
What is Spotlight Wordmark?#
Spotlight Wordmark is a spotlight effect for React that hides a word's real colors until the cursor finds them. The word rests in a pale tint, and a circle of light reveals a second, colored copy underneath. With leaf on, a small leaf replaces the dot on every lowercase i, so the word reads like a logo rather than a line of type.
How Spotlight Wordmark works#
It uses text masking: two copies of the word sit on top of each other, and the colored copy only shows inside a soft, round mask. With interaction set to hover, the light opens under the cursor when it reaches the word, follows it on a spring and closes when it leaves. spotlightRadius (260 px) sets the light's largest size, and it never grows past 22% of the word's width. softness (0.65) sets how much of the edge fades out; 0 gives a hard-edged circle.
With entrance set to view, the word rises and fades in once, the first time it comes into view. It takes entranceDuration (0.9 s) and starts entranceDistance (35%) of its height below its final place. The word scales with the component's width up to maxSize (352 px), and a long word shrinks to fit on one line. It's built with Motion and CSS, with no canvas or WebGL.
Customization options#
Change the word, the font, the resting and lit colors for the word and the leaf, the spotlight size and softness, and the entrance in the Customize panel, save a look as a variant, then install. The font isn't bundled, so load Outfit, or your own, in your app. The light only follows a mouse, so on touch screens the word stays in its pale tint.
Use cases#
- Food and grocery brands, with Default: pale sage letters that turn leaf green under the light.
- Seasonal or playful labels, with Picnic: rounded blush letters that ripen to strawberry red, with a leaf over both i's.
- Search and discovery products, with Flashlight: a flashlight effect with a small, hard-edged beam that turns grey letters ink black.
- Restaurants and delis, with Candlelight: a soft serif on parchment, warmed to olive by a wide, slow glow.
FAQs#
It's a circle of light that follows the cursor and reveals what's under it, while the rest stays dim or pale. Spotlight Wordmark uses it on a brand name, so the word shows its full colors only where the light falls.
It moves. The light opens when the cursor reaches the word, trails it on a spring and closes when the cursor
leaves. Set interaction to none to keep the word in its resting colors.
Yes. Turn leaf off and every i keeps its normal dot. Words without a lowercase i show no leaf either way.
No. Spotlight Wordmark is a Pro component, included in every paid plan. Anything you install stays yours after your plan ends.
It's a React component for Next.js, Vite and Astro with Tailwind CSS v4. In a JavaScript project, the CLI converts
it to a .jsx file.