New0.4.1 · Better on npm

Clay that gives when you press it.

Claymorph UI is 23 claymorphism web components. One WebGL2 shader gives them a soft clay body, ui-sdk gives them their keyboard, focus and ARIA, and they work in React, Vue, Svelte, Angular or plain HTML.

terminal
npm install claymorph-ui @ui-sdk/web @ui-sdk/core

Evening mix

24 tracks · 1 h 32 min

Played Today This week This month
Volume

1

WebGL2 context for every surface on the page

23

components, each named for what it does

22 KB

gzipped for a button, ui-sdk included

MIT

free and open source

Why Claymorph UI

Soft on the outside, solid underneath

One shader, every surface

A single WebGL2 context draws all the clay on a page, with springs that swell, squash and melt, and it stops the moment nothing moves.

Accessible by default

The ui-sdk part inside each element keeps the keyboard, focus, ARIA and forms. The clay only adds the material and the motion.

Parts that melt together

Lists, menus, cards and tags squeeze out of their trigger and stay fused to it, and fuse sets how far they melt in.

Import only what you use

One entry per element, with types. A page with a single button ships about 22 KB gzipped, ui-sdk included.

Works without WebGL2

Before the first frame, on older devices and in forced colours, the same clay is drawn with CSS, so nothing breaks.

Ready for agents

llms.txt, Markdown docs and an agent skill ship with it, and every control can be operated over WebMCP.

Components

23 components, one verb each

Press a button, Pour a select, Spill a menu, Pop a tooltip. Every element is a ui-sdk part you already know, with a clay body around it.

Actions

Inputs

Views and popups

Display

Get started

Three steps to clay

  1. Install

    terminal
    npm install claymorph-ui \
      @ui-sdk/web @ui-sdk/core
  2. Import what you use

    main.ts
    import "@ui-sdk/core/web.css"
    import "claymorph-ui/clay.css"
    import "claymorph-ui/button"
  3. Write HTML

    index.html
    <clay-button color="teal">
      <ui-button><button>Save</button></ui-button>
    </clay-button>

Give your interface some clay.

Read the docs, tune the material in the playground, or see a whole app built from the components.