Edge networkServed from 38 regions, the nearest one first.
Instant rollbackAny deploy from the last 90 days, one click.
Preview URLsEvery pull request gets its own address.

Code

<!-- spotlight-card.free.js: download it from the Install section below and host it with your site -->
<script src="/spotlight-card.free.js" defer></script>

<spotlight-group style="display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px">
  <spotlight-card size="300" radius="20" theme="light">
    <h3>Edge network</h3>
    <p>Served from 38 regions.</p>
  </spotlight-card>
  <spotlight-card size="300" radius="20" theme="light">
    <h3>Instant rollback</h3>
    <p>Any deploy, one click.</p>
  </spotlight-card>
  <spotlight-card size="300" radius="20" theme="light">
    <h3>Preview URLs</h3>
    <p>One per pull request.</p>
  </spotlight-card>
</spotlight-group>

In context

Preview URLsEvery pull request gets its own address.
One card, its own light
Edge network
Instant rollback
Searchable logs
Secrets
Mint, a shared light Pro

Install · Free Web Component

One file, no dependencies. Aurora preset, every other option included. Host it yourself so your visitors never load anything from our servers.

1. Install with one command — or download the file
shadcn CLI · React
npx shadcn@latest add https://www.ui-design.co/r/spotlight-card.json
2. Load it and use the element
HTML
<!-- spotlight-card.free.js: download it from the Install section below and host it with your site -->
<script src="/spotlight-card.free.js" defer></script>

<spotlight-group style="display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px">
  <spotlight-card size="300" radius="20" theme="light">
    <h3>Edge network</h3>
    <p>Served from 38 regions.</p>
  </spotlight-card>
  <spotlight-card size="300" radius="20" theme="light">
    <h3>Instant rollback</h3>
    <p>Any deploy, one click.</p>
  </spotlight-card>
  <spotlight-card size="300" radius="20" theme="light">
    <h3>Preview URLs</h3>
    <p>One per pull request.</p>
  </spotlight-card>
</spotlight-group>
3. React + TypeScript (optional)

The shadcn command adds a typed React wrapper for you. Using the file directly? Custom elements work in React as-is; for type checking add:

TypeScript
// spotlight-card.d.ts
declare namespace JSX {
  interface IntrinsicElements {
    'spotlight-card': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & {
      size?: number | string;
      radius?: number | string;
      theme?: 'light' | 'dark';
    };
  }
}

// spotlight-group.d.ts
declare namespace JSX {
  interface IntrinsicElements {
    'spotlight-group': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & {
      'data-x'?: number | string;
      'data-y'?: number | string;
    };
  }
}

Pro · React + TypeScript Pro

One payment of $4.99, yours forever. Use it in unlimited personal and commercial projects; no resale.

  • React components SpotlightCard and SpotlightGroup with TypeScript types and the full source
  • Sunset, Mint and Mono tints for the light, plus custom tints from Brand Fit
  • The vanilla Web Components with every tint, a demo page, README and license

Attributes & props

NameTypeDefaultDescription
children elements—The card content. Links and buttons inside work as usual; the light layers never take the pointer.
size number (px)300Radius of the light. Larger than the gap between cards, and the neighbours catch it.
radius number (px)20Corner radius of the card.
theme 'light' | 'dark''light'A white card with a deep-coloured light, or a dark card with a bright one.
tint Pro'aurora' | 'sunset' | 'mint' | 'mono' | object'aurora'The colours of the light, or a custom tint. Free build ships Aurora only.
<spotlight-group> element—A wrapper with no look of its own (lay it out as a grid or a row). Every spotlight-card inside, at any depth, shares one light.
setPoint(x, y) / clearPoint() methods—On a card or a group: place a virtual pointer, 0–1 across its box, and take it away. The same through the data-x / data-y attributes.
--sc-pad CSS length22pxPadding inside the card.

The light is three CSS gradients per card, positioned by two custom properties; one animation frame updates them, and only while the light is moving or fading. It trails the pointer by a hair and takes a moment to come up and die down, so it reads as a lamp rather than a cursor. When focus arrives from the keyboard, the light settles on the centre of the focused card. Outside a group each card has its own light. With reduced motion the light jumps instead of gliding. Nothing is drawn on a canvas.

More components