Individual skill

liquid-glass-ui

Implement, restyle, or debug interactive liquid glass in web interfaces. Use for refractive buttons, switches, sliders, segmented controls, toolbars, and floating surfaces with press, drag, or merge behavior. Choose CSS glass for arbitrary page content or WebGL2 refraction for a backdrop the app can supply as pixels.

SKILL.md

Read pinned source

Source commit e9ad85dfd5cdef8cc4d22dea1798795e1fb8db48

What was checked

Matches the observed repository HEAD
Yes
Scanner rules are current
No
Repository scan complete
No
Skill scan complete
No
Observed behavior
Not checked yet
Last checked
Nov 6, 2026

These are observations at the recorded commit, not a guarantee of safety. Review the source before running it.

Install this skill

Choose an agent in your Stack or copy a command below. Commands fetch the pinned commit and copy only this skill directory. Existing destinations are refused. Copying a command does not install anything.

An install command is unavailable: current rules, complete repository and skill scans, an eligible behavior level and a permitted license are required.

Repository context

Repository stars (not skill ratings)
4
Repository last updated
Nov 5, 2026
License
MIT

Observed agent integration: No specific integration evidence. Standard SKILL.md installation does not imply verified compatibility.

Files and excerpt

File metadata and permitted, redacted excerpts come from the recorded scan. Source links are pinned to that commit.

Browse files
Read excerpt

# Liquid Glass UI

Apply glass only to the named buttons or controls. Preserve the host background, layout, labels, and behavior. Before editing, state the target controls and confirm any unspecified visual choice. A change to another part of the interface requires a separate agreement.

## Confirm the button design

Use a design the user has already selected or pasted. Otherwise, open the demo at `http://localhost:58423/demo/` and ask the user to choose a control and click **Copy for AI**. Start `node scripts/serve.mjs` from the skill directory if needed. Before asking for the selection, read the baseline `copiedAt` from `GET http://localhost:58423/api/glass-handoff`. Use a newer handoff or the clipboard payload the user provides. Wait for the choice before editing the target.

Pass the returned configuration directly to the matching runtime. Version 2 uses `createLiquidGlassButton` from `assets/glass-button.js`. Version 3 uses `mountLiquidGlassReplica` from `demo/replica.js` for moving controls or group selections. Use the revision specified in a clipboard handoff. Use the existing page's readable source and preserve the crop, layout, and original actions. See the [handoff integration recipes](references/integration.md#integrate-a-copied-design). When the host pixels cannot be read, explain the available fallback and confirm it before editing the target.

## Choose the rendering path

- **CSS glass** fits arbitrary DOM, text, and scrolling content. Copy `assets/liquid-glass.css` for blur, tint, and a rim. Add `assets/liquid-glass.js` only if the user wants pointer highlights. CSS glass cannot bend or merge backdrop pixels.
- **WebGL2 refraction** fits images, video, and canvases controlled by the app. Copy `assets/liquid-glass-renderer.js` and `assets/mount-liquid-glass.js`. Keep the actual controls in HTML above an `aria-hidden` canvas. Use the app's original layout and a permitted backdrop.