About
An animated canvas background of translucent, silk-like ribbons that drift and glow where they overlap, with a reduced-motion fallback and pointer-reactive bending.
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Ribbon Flow to your project and fits it to your theme.
Code
How Ribbon Flow is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
"use client";
import { RibbonFlow } from "@/components/ui/ribbon-flow";
const THEMES: Record<string, { colors: string[]; bg: string }> = {
aurora: {
colors: ["#8fa8d8", "#a898e0", "#7fc4c8", "#d8a8c8"],
bg: "#08060c",
},
ember: {
colors: ["#e8a24a", "#d8704a", "#f0c890", "#a85a6a"],
bg: "#0b0706",
},
mono: { colors: ["#efe8dc", "#a7a1ab", "#b9cce4"], bg: "#08070a" },
};
export default function Demo({ variant = "aurora" }: { variant?: string }) {
const t = THEMES[variant] ?? THEMES.aurora;
return (
<div className="relative w-full h-screen">
<RibbonFlow
colors={t.colors}
background={t.bg}
className="h-full min-h-full w-full"
>
<div className="pointer-events-none flex h-full items-end p-6">
<p className="font-mono text-[11px] uppercase tracking-[0.16em] text-white/50">
Silk · {t.colors.length} ribbons
</p>
</div>
</RibbonFlow>
</div>
);
}
















