About
Fill a section with slow folds of satin in one or two colors.
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Silk to your project and fits it to your theme.
Code
How Silk is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
"use client";
import { Silk } from "@/components/ui/honest-silk";
interface SilkSettings {
color: string;
secondaryColor: string;
sheenColor: string;
sheen: number;
scale: number;
depth: number;
softness: number;
angle: number;
speed: number;
paused: boolean;
}
const defaults: SilkSettings = {
color: "#2b3350",
secondaryColor: "#3b2f4d",
sheenColor: "#ffffff",
sheen: 0.45,
scale: 1,
depth: 0.5,
softness: 0.6,
angle: -18,
speed: 1,
paused: false,
};
export default function SilkDemo() {
const settings = defaults;
return (
<div className="flex min-h-[420px] w-full items-center justify-center p-6">
<div className="h-80 w-full max-w-xl overflow-hidden rounded-xl">
<Silk className="size-full" {...settings}>
<div className="grid size-full place-items-center p-6 text-center">
<p className="text-2xl font-medium tracking-tight text-white">Made to be touched.</p>
</div>
</Silk>
</div>
</div>
);
}
















