glassity is an open-source JavaScript library (MIT) that transforms the SVG icons you use into liquid glass: real light refraction using WebGL2, in the Liquid Glass style of Apple.
Try it out immediately, no installation required: open duckvhuynh.github.io/glassity in your browser, choose an icon and background, drag the slider to adjust the glass, and then click "Copy link" to send that exact glass style to your team, or copy the pre-filled React/Vue/Svelte/HTML code with your chosen options.
Problem: Creating glass effects on the web usually requires redrawing icons, manually building a canvas, or combining multiple CSS/SVG filters, yet still not achieving true refraction. glassity reads the outlines of existing SVG icons and draws them as glass that bends what is behind, all with a single data-glass attribute.
Where to use it, for example:
Main features:
For: front-end developers, designers, and marketers who want a Liquid Glass feel to their interfaces without having to write shaders, and vibecoders using AI agents.
Getting started: try it on the playground first. When satisfied, run npm install glassity, wrap your app in GlassProvider, and then add data-glass to the icons. Or paste a prompt into Claude Code, Cursor, Codex for the agent to install automatically. The playground has 75,000 icons from 21 sets (Lucide, Phosphor, Tabler, Material, Font Awesome...) to experiment with.
Difference: other "glass" libraries mainly create rectangular glass panels using backdrop-filter. glassity creates glass in the exact shape of the icons, with true optical refraction, usable with any SVG icon set.
No talks yet. Create the first talk

Linux OS cho người Việt phát triển bởi cộng đồng

IDE C++ miễn phí cho người học và lập trình thi đấu, cài là code

Lớp bộ nhớ dành cho phát triển ứng dụng AI

Thiết kế chi tiết cơ khí 3D tham số và chuẩn bị in 3D, mã nguồn mở

Switch Claude Code and ChatGPT accounts without signing again

Dọn ổ đĩa Mac và Ubuntu miễn phí, mã nguồn mở, xem trước khi dọn

Convert existing SVG icons into liquid glass with real refraction using WebGL2.
Auto-translated ·No reviews yet
Reviews & comments