glassityv0.4.0

Liquid glass for the icons you already have.

glassity reads the outline of any inline SVG and draws it as glass that bends the page behind it. Lucide, Phosphor, Heroicons or your own file. Add data-glass and you are done.

npm i glassity
Or onboard your agent with easeOne line for Claude Code, Cursor, Codex, Copilot or any coding agent.
Set up glassity for me. Fetch https://cdn.jsdelivr.net/npm/glassity@0.4/get-started.md and follow it.
SVGglassity

In a real app

The same glass inside real interfaces: a dashboard built from the shadcn/ui block dashboard-01, a mobile app screen, a landing page, and three templates shared by the v0 community (credited under each). Everything around the glass is ordinary React and Tailwind; the glass is one <GlassProvider> and data-glass on the icons.

Get started

Do it yourself

npm i glassity

Then add data-glass to an icon and turn glassity on once. The code panel in the playground above writes the exact setup for React, Vue, Svelte, HTML or plain JavaScript, with your settings filled in. Next.js, Nuxt, SvelteKit, Astro, Angular and Remix are in the README.

Let your agent do it

Paste this into your coding agent. It reads a short guide, finds your framework and icon library, installs glassity, wires it in, marks a few icons and checks that the glass shows.

Set up glassity for me. Fetch https://cdn.jsdelivr.net/npm/glassity@0.4/get-started.md and follow it.

It bends what is behind it.

Light is refracted through the icon by Snell's law, with optical depth, colour split at the rim, frost, a moving highlight and a soft shadow. Over a wallpaper, a photo, a video or plain HTML.

Your SVG stays.

The original icon is kept in the page, so its label, focus and clicks keep working. Without WebGL2 it simply shows as before.

Any framework.

React, Vue, Svelte, Solid, Preact, Angular, Remix, or a script tag. Server rendering is fine.