About
A frosted glass panel with a refractive rim that visibly bends its backdrop, a pointer-tracked specular highlight, and a real drop shadow, for wrapping content over photos or gradients.
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Glass Card to your project and fits it to your theme.
Code
How Glass Card is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
import GlassCard from "@/components/ui/glass-card";
export default function GlassCardDemo() {
return (
<div className="flex h-screen w-full items-center justify-center bg-[linear-gradient(135deg,#7c3aed,#ec4899,#f59e0b)] p-8">
<GlassCard className="max-w-sm">
<h3
className="text-lg font-semibold text-white"
style={{ textShadow: "0 1px 8px rgba(0,0,0,0.35)" }}
>
Liquid Glass
</h3>
<p
className="mt-2 text-sm text-white/90"
style={{ textShadow: "0 1px 8px rgba(0,0,0,0.35)" }}
>
A refractive glass pane that bends the gradient behind it, with a
pointer-tracked specular highlight.
</p>
</GlassCard>
</div>
);
}














