Launch priceOne payment

Prism Card

A card that tilts in 3D toward the pointer, with a glare where the light hits and a thin band of holographic colour that slides as the angle changes. Wrap any content: a membership pass, a pricing tier, a product shot.

CreativeFree129 lines · one file

Ready for AI tools one file typed props installs by name prompt included

The decision inside it

The colour follows the angle, not the cursor

The spectrum is strongest at steep angles and nearly gone face-on, the way foil behaves, so a card at rest looks like a card. Tilt, glare and colour ride one spring and never lag each other. A tap rocks it once on touch; reduced motion keeps it flat.

Installation

How you get it

Paste this into Claude Code, Cursor, Codex or any coding agent. It installs the file and uses it as it is, instead of writing a new one.

Use Layro's Prism Card for this.
Install it: npx shadcn@latest add @layro/prism-card
(the @layro registry is set up in components.json, with LAYRO_KEY in .env.local)
Import it from @/components/ui/prism-card.
Do not rewrite or restyle it. Pass my data through its props
and keep its built-in states.

For the full brief with every prop and the mistakes assistants usually make, use Copy prompt above. Free components install through the @layro registry with your CLI token: see the Namespaced tab.

When to use it

Use Prism Card to make one card feel physical: a membership pass, a pricing tier, a product shot. It tilts toward the pointer with a holographic sheen.

Usage

components/member-pass.tsx
import { PrismCard } from "@/components/ui/prism-card";

export function MemberPass() {
  return (
    <PrismCard className="aspect-[1.586] w-[360px] bg-neutral-900 p-5 text-white">
      <p className="font-semibold">Northwind Founders</p>
      <p className="mt-auto font-mono">0042 · 2026</p>
    </PrismCard>
  );
}

API

“Copy prompt” above puts a full brief on your clipboard — install command, dependencies, props, and the mistakes an assistant usually makes with this component.

Props

Read from the component’s own TypeScript interface when the site is built, so this table cannot drift from the file you install.

PropTypeNotes
maxTiltnumberLargest tilt, in degrees. Default 12.
intensitynumberHow strong the spectrum is at full tilt, 0 to 1. Default 0.32.

Dependencies

npm packages

clsxframer-motiontailwind-merge

Layro foundations, installed alongside it

layro-theme

Lifetime access

Every component, and everything we ship next.

  • All 132 components, source included
  • Every template, and everything released after you buy
  • shadcn CLI or download — React 18/19, Tailwind v4
  • One payment. No subscription.

More in Creative

All Creative components