Liquid Silk

Liquid Silk

A WebGL sheet of ink-coloured fabric that folds and flows in slow motion, threads of light riding the creases — a quiet full-bleed backdrop for landing pages.

Installation

▸ Run the following command

npx shadcn@latest add https://www.mellowui.com/r/liquid-silk.json

▸ Or install manually

  1. Copy the source from the Code tab above.
  2. Place it at components/mellow/liquid-silk.tsx
  3. Import and use.

API Reference

PropTypeDefaultDescription
colorstringCloth colour as an "R, G, B" triplet — defaults to the theme ink.
highlightstringColour of the light riding the creases, as an "R, G, B" triplet. Defaults to `color`, keeping the sheet monochrome.
speednumber1Flow speed multiplier.
intensitynumber1Overall opacity of the silk, 0–2.
scalenumber1Pattern zoom — higher is tighter folds.
interactivebooleantrueLet the pointer gather the cloth and catch the light under it.
childrenReact.ReactNodeContent rendered above the silk.
classNamestringAdditional CSS classes.