Atelier Okafor · Autumn collection

Made slowly, worn for years

Forty pieces cut from deadstock silk, numbered and sewn to order.

Code

<!-- silk-waves.free.js: download it from the Install section below and host it with your site -->
<script src="/silk-waves.free.js" defer></script>

<silk-waves
  theme="light"
  speed="1"
  angle="24"
  style="display:grid; place-items:center; min-height:420px; border-radius:24px"
>
  <h1>Made slowly, worn for years</h1>
</silk-waves>

In context

Private viewThursday, 7 pm14 Calder Row, second floor
Behind an invitation
Gift cardsDelivered by email in a minute
Sunset Pro
The black editionTwelve pieces, one colour
Mono, folds the other way Pro

Install · Free Web Component

One file, no dependencies. Aurora preset, every other option included. Host it yourself so your visitors never load anything from our servers.

1. Install with one command — or download the file
shadcn CLI · React
npx shadcn@latest add https://www.ui-design.co/r/silk-waves.json
2. Load it and use the element
HTML
<!-- silk-waves.free.js: download it from the Install section below and host it with your site -->
<script src="/silk-waves.free.js" defer></script>

<silk-waves
  theme="light"
  speed="1"
  angle="24"
  style="display:grid; place-items:center; min-height:420px; border-radius:24px"
>
  <h1>Made slowly, worn for years</h1>
</silk-waves>
3. React + TypeScript (optional)

The shadcn command adds a typed React wrapper for you. Using the file directly? Custom elements work in React as-is; for type checking add:

TypeScript
// silk-waves.d.ts
declare namespace JSX {
  interface IntrinsicElements {
    'silk-waves': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & {
      theme?: 'light' | 'dark';
      speed?: number | string;
      angle?: number | string;
      interactive?: 'true' | 'false';
    };
  }
}

Pro · React + TypeScript Pro

One payment of $4.99, yours forever. Use it in unlimited personal and commercial projects; no resale.

  • React component with TypeScript types and the full shader source
  • Sunset, Mint and Mono tints, plus custom tints from Brand Fit
  • The vanilla Web Component with every tint, a demo page, README and license

Attributes & props

NameTypeDefaultDescription
theme 'light' | 'dark''light'White satin with the tint pooling in the folds, or jewel-coloured satin falling into near-black. Also sets the text colour of the content.
speed number1How fast the folds travel. 0 holds the cloth still.
angle number (deg)24Direction the folds run: 0 is horizontal, 90 vertical, negative values slope the other way.
interactive 'true' | 'false''true'The light swings toward the pointer and the cloth lifts a little under it.
tint Pro'aurora' | 'sunset' | 'mint' | 'mono' | object'aurora'The colours of the cloth, or a custom tint. Mono is pearl satin on light and graphite on dark. Free build ships Aurora only.

The element is a block that fills whatever size you give it — set a height, min-height or put it in a grid cell — and its children render on top, so lay them out with display: grid or flex on the element itself. A border-radius on it rounds the cloth. It is drawn at one sample per CSS pixel and capped for page-size areas, pauses off-screen and in hidden tabs, and under prefers-reduced-motion shows one still frame. Without WebGL (and before the script loads) a CSS gradient in the same colours stands in. The background is decoration: it is hidden from screen readers and never takes pointer events from your content. A fine dither keeps the long ramps from banding. Check the contrast of small text where a highlight passes under it.

More components