Card Ring
A 3D arc of cards on a cylinder that reacts to the pointer with a depth parallax. You supply the cards; the ring is the part you reuse.
npx shadcn@latest add https://ui.develop-better-solutions.com/r/card-ring.jsonConnect
Growth
49%
Faster delivery
Train
Upload content
Expertise that combines strategy and intelligence
Every decision, measured
Usage
card-ring-example.tsx
import { CardRing } from "@dbs/ui";
import { Plus, TrendingUp } from "lucide-react";
// Cards are sized in cqw so they scale with the ring's --cw width token.
const cards = [
<div
key="a"
className="h-full rounded-[10cqw] border-[1.2cqw] border-white/10 bg-gradient-to-b from-surface-raised to-primary/40 p-[9cqw] backdrop-blur-md"
>
<div className="flex items-center gap-[4cqw] rounded-full bg-canvas/70 p-[3cqw] pr-[6cqw]">
<span className="grid size-[12cqw] place-items-center rounded-full bg-gold">
<span className="size-[5cqw] rounded-full bg-dbs-black" />
</span>
<span className="text-[5cqw] text-ink-muted">Connect</span>
</div>
</div>,
<div
key="b"
className="h-full overflow-hidden rounded-[10cqw] border-[1.6cqw] border-line bg-surface p-[7cqw]"
>
<div className="flex items-start justify-between rounded-[5cqw] bg-canvas px-[6cqw] py-[5cqw] text-ink">
<div className="text-[6.5cqw] leading-tight">Growth</div>
<TrendingUp className="size-[8cqw] text-gold" strokeWidth={1.8} />
</div>
<div className="mt-[7cqw] text-[17cqw] leading-none text-ink">49%</div>
<div className="mt-[1.5cqw] text-[3.4cqw] text-ink-subtle">Faster delivery</div>
</div>,
<div
key="c"
className="flex h-full flex-col items-center justify-center rounded-[9cqw] border-[1cqw] border-white/10 bg-gradient-to-b from-primary/80 to-primary/50 text-center backdrop-blur-xl"
>
<span className="grid size-[19cqw] place-items-center rounded-full bg-ink text-canvas">
<Plus className="size-[11cqw]" strokeWidth={2.4} />
</span>
<div className="mt-[9cqw] text-[13cqw] leading-none text-ink">Train</div>
<div className="mt-[3cqw] text-[6.4cqw] text-ink-muted">Upload content</div>
</div>,
<div
key="d"
className="h-full rounded-[9cqw] border-[1.8cqw] border-line bg-dbs-black p-[9cqw]"
>
<div className="text-[10.5cqw] leading-[1.22] tracking-tight text-ink-subtle">
<span className="text-ink">Expertise </span>
<span className="inline-grid size-[9cqw] translate-y-[1cqw] place-items-center rounded-full bg-gold">
<span className="size-[3.6cqw] rounded-full bg-dbs-black" />
</span>
<span> that combines strategy and </span>
<span className="text-ink">intelligence</span>
</div>
</div>,
<div
key="e"
className="h-full overflow-hidden rounded-[9cqw] border-[1.6cqw] border-line bg-surface p-[8cqw]"
>
<div className="text-[7.5cqw] leading-tight text-ink">Every decision, measured</div>
<svg viewBox="0 0 100 60" className="mt-[10cqw] w-full" fill="none">
<path d="M0 56 L14 40 L26 46 L44 24 L58 34 L76 14 L100 28 L100 60 L0 60Z" fill="url(#crArea)" />
<path d="M0 56 L14 40 L26 46 L44 24 L58 34 L76 14 L100 28" stroke="var(--color-gold)" strokeWidth="1.6" />
<defs>
<linearGradient id="crArea" x1="0" y1="0" x2="0" y2="1">
<stop stopColor="var(--color-gold)" stopOpacity="0.4" />
<stop offset="1" stopColor="var(--color-gold)" stopOpacity="0" />
</linearGradient>
</defs>
</svg>
</div>,
<div
key="f"
className="h-full rounded-[9cqw] border-[1.2cqw] border-white/10 bg-gradient-to-b from-surface-raised to-orange/30 backdrop-blur-md"
/>,
];
export default function CardRingExample() {
return (
<div className="grid w-full place-items-center py-10">
<CardRing cards={cards} />
</div>
);
}