Tapas UI
Esc
  • IntroductionGetting startedWhat Tapas UI is and where to start.
  • InstallationGetting startedSet up shadcn/ui and add your first section.
  • CLI & AI agentsGetting startedThe shadcn CLI, the @tapas namespace, the MCP server and AI prompts.
  • TemplatesGetting startedWhole pages built from sections, installed with one command.
  • Demo sitesGetting startedThree fictional sites built only from Tapas sections.
  • ThemingCustomizationHow sections pick up your colors and radius.
  • ColorsCustomizationEvery CSS variable sections read, what it is for and where it is used.
  • Dark modeCustomizationSections follow your .dark variables.
  • MotionCustomizationPlain and motion versions, reduced motion and pause controls.
  • AccessibilityCustomizationWhat every section guarantees.
  • Waitlist formsGuidesPost signups to your own API route and store them.
  • Checkout linksGuidesPoint pricing buttons at Stripe payment links or any URL.
Menu
Browse the docs

DocsEffects

Spotlight cards

A grid of feature cards with a gradient hairline border.

Preview

Version
Preview theme color
More themes

A soft glow in your primary color follows the pointer across the whole grid, each card's border lights up where the pointer is nearest, and nearby cards lean a degree or two toward it. With reduced motion turned on, it renders the plain layout.

Built for launch day

Sample features.

  • Stores emails

    The waitlist form posts to your own route. Sample feature.

  • Takes a checkout link

    Point any plan's button at your payment page.

  • Blocks spam

    A honeypot field catches bots without a puzzle.

  • One command

    Install any section with the shadcn CLI.

  • Your theme

    Every color comes from your shadcn tokens.

  • Optional motion

    Add the motion file where it helps, skip it where it doesn't.

Built for launch day

Sample features.

  • Stores emails

    The waitlist form posts to your own route. Sample feature.

  • Takes a checkout link

    Point any plan's button at your payment page.

  • Blocks spam

    A honeypot field catches bots without a puzzle.

  • One command

    Install any section with the shadcn CLI.

  • Your theme

    Every color comes from your shadcn tokens.

  • Optional motion

    Add the motion file where it helps, skip it where it doesn't.

Installation

Run this in a project that already uses shadcn/ui. It adds the component and anything it needs; the motion version also adds the plain one and the motion package.

Usage

import { SpotlightCards } from "@/components/custom/spotlight-cards/spotlight-cards";

<SpotlightCards
  title="Built for launch day"
  columns={3}
  items={[{ title: "Stores emails", description: "The form posts to your own route.", icon: <Mail /> }]}
/>
import { SpotlightCardsMotion } from "@/components/custom/spotlight-cards/spotlight-cards-motion";

<SpotlightCardsMotion title="Built for launch day" items={items} />

Props

PropTypeDefaultDescription
items* (required){ title: string; description: string; icon?: ReactNode }[]–Cards in reading order. Pass icons as elements (<Mail />).
columns2 | 33Columns from the lg breakpoint.
title / descriptionstring–Heading (h2) and line under it.
...propsReact.ComponentProps<"section">–Any other section attribute (id, aria-*, data-*, ref) goes to the root element.
PropTypeDefaultDescription
items* (required){ title: string; description: string; icon?: ReactNode }[]–Cards in reading order. Pass icons as elements (<Mail />).
columns2 | 33Columns from the lg breakpoint.
title / descriptionstring–Heading (h2) and line under it.
...propsReact.ComponentProps<"section">–Any other section attribute (id, aria-*, data-*, ref) goes to the root element.

Accessibility

  • Cards are list items with an h3 each; icons are decorative and hidden from screen readers.
  • The glow and tilt are decoration for mouse and pen. Touch and keyboard users get the same content, and reduced motion turns both off.
  • The motion version follows the visitor's reduced-motion setting and never hides content before it animates.