Spotlight Card

A card with a moonlight-cool radial spotlight that follows a synthetic cursor and lights up its microborder

Installation

$ pnpm dlx shadcn@latest add @remocn/spotlight-card

Usage

// src/Root.tsx
import { Composition } from "remotion";
import { SpotlightCard } from "@/components/remocn/spotlight-card";

const SpotlightCardScene = () => (
  <SpotlightCard title="Your feature" body="Two-line description goes here." />
);

export const RemotionRoot = () => (
  <Composition
    id="SpotlightCard"
    component={SpotlightCardScene}
    durationInFrames={240}
    fps={30}
    width={1280}
    height={720}
  />
);

Props

PropTypeDefaultDescription
title
string"Spotlight Card"Heading shown when no children are provided
body
string"Soft radial light follows the cursor, picking out the microborder."Body copy shown when no children are provided
cardWidth
number520Card width in pixels
cardHeight
number320Card height in pixels
glowSize
number600Diameter (px) of the radial spotlight
glowOpacity
number0.08Maximum alpha of the surface glow. Keep this low to stay lunar.
background
string"#050505"Page background color around the card
cardColor
string"#0a0a0a"Card surface color
textColor
string"#fafafa"Heading color
mutedColor
string"#71717a"Body copy color
speed
number1Playback speed multiplier
className
stringOptional className passed to the root container
children
ReactNodeOverride the default title/body slot with custom content