honestui

Silk

Shaders

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>
  );
}

Dependencies

More by honestui

View all
  • Chromatic Text Reveal

    Chromatic Text Reveal

    30
  • Schedule Builder

    Schedule Builder

  • Audit Log

    Audit Log

  • Secret Row

    Secret Row

  • Undoable Action

    Undoable Action

  • OTP Field

    OTP Field

  • Audio Orb

    Audio Orb

  • AI Glow Border

    AI Glow Border

More in Shaders

View all
  • Glass Fold

    Glass Fold

    588
  • Shader Animation

    Shader Animation

    3.9K
  • Chroma Sense Hero

    Chroma Sense Hero

    22
  • LightSpeed

    LightSpeed

    253
  • Illos Knowledge Sources

    Illos Knowledge Sources

    74
  • Shader Lines

    Shader Lines

    2.5K
  • Molten Pillars

    Molten Pillars

    18
  • Wave

    Wave

    730