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.
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.
npm install claymorph-ui @ui-sdk/web @ui-sdk/core
npm install claymorph-ui @ui-sdk/web @ui-sdk/core
Evening mix
24 tracks · 1 h 32 min
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
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.
The ui-sdk part inside each element keeps the keyboard, focus, ARIA and forms. The clay only adds the material and the motion.
Lists, menus, cards and tags squeeze out of their trigger and stay fused to it, and fuse sets how far they melt in.
One entry per element, with types. A page with a single button ships about 22 KB gzipped, ui-sdk included.
Before the first frame, on older devices and in forced colours, the same clay is drawn with CSS, so nothing breaks.
llms.txt, Markdown docs and an agent skill ship with it, and every control can be operated over WebMCP.
Components
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.
1,248
7
Get started
npm install claymorph-ui \
@ui-sdk/web @ui-sdk/core
npm install claymorph-ui \
@ui-sdk/web @ui-sdk/core
import "@ui-sdk/core/web.css"
import "claymorph-ui/clay.css"
import "claymorph-ui/button"
import "@ui-sdk/core/web.css"
import "claymorph-ui/clay.css"
import "claymorph-ui/button"
<clay-button color="teal">
<ui-button><button>Save</button></ui-button>
</clay-button>
<clay-button color="teal">
<ui-button><button>Save</button></ui-button>
</clay-button>
Read the docs, tune the material in the playground, or see a whole app built from the components.