You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Publishable React Library (glasskit-liquid-glass) — Install via npm with ESM/CJS bundles, full TypeScript .d.ts declarations, standalone glasskit-liquid-glass/styles.css, and zero required icon-library dependencies.
Custom Background Images in <GlassStage> — Pass any backgroundImage URL (remote CORS image, local path, data URL, or uploaded blob URL), explicit tone="dark" | "light", and standard style / HTMLDivElement props.
Per-Element Optical Overrides & Live 3-Tier Switching — Override refraction, blur, aberration, specular, bezelWidth, and renderMode ('auto' | 'webgl' | 'svg' | 'css') on individual <LiquidGlass> surfaces.
Upgraded Interactive Studio — 1-click install bar, drag-and-drop custom image testing, Copy Config export, live WebGL2 / SVG DOM / CSS engine switcher, syntax-highlighted code viewer, persisted light/dark theme, and /docs#<tab> deep links.
One shared offscreen WebGL2 context renders every stage on the page with pre-baked 2-pass separable 17-tap Gaussian frost maps, physical Snell meniscus refraction (IOR = 1.48), 3-channel RGB chromatic dispersion, per-element uOptics[12] overrides, organic smin droplet fusion, and 0% idle GPU.
Tier 2
SVG DOM Displacement (src/glasskit/core/liquidGlassEngine.ts)
Automatically generates quantized 2D RG Snell displacement maps for standalone Chromium DOM surfaces via backdrop-filter: url(#lg-svg-...).
Tier 3
Pure CSS Fallback (src/glasskit/primitives/LiquidGlass.tsx)
Gracefully degrades to multi-layered translucent backdrop-filter glass with directional Fresnel rim hairlines and pointer sheen anywhere WebGL2 is unavailable.
Quick Start
1. Install the Package
npm install glasskit-liquid-glass
Import the standalone stylesheet once at your app root and wrap surfaces in <GlassSettingsProvider> + <GlassStage>: