andrewr303/liquid-glass-studio
Design, implement, tune, and review liquid glass style interfaces: refraction, frost, rim light, motion, native glass APIs, accessibility fallbacks, and performance, with an original engine and a live lab.
Makes liquid glass style surfaces accessible: a solid tier for reduced transparency, more contrast and forced colors, an in-product solid toggle where browser support is missing, reduced motion, worst-case text contrast measured over the real rendered backdrop with scripts/glass_contrast.mjs, focus rings that survive any backdrop, and semantics for glass controls. Use when the user asks "is my glass accessible", "text on frosted glass is hard to read", "glassmorphism contrast", "liquid glass and reduced transparency", "Apple glass accessibility", "WCAG on a glass effect", or how glass should behave in high contrast mode. Do not use for general WCAG audits without glass, for picking glass parameters for looks alone (use glass-design or glass-optics), or for a full multi-area review (use glass-review).
Decide where liquid glass style surfaces belong in a product, how many a screen can carry, and how they look: functional versus content layer, stacking, regular versus clear with a dimming layer, tint for prominence, capsule and concentric shapes, grouping, light and dark constants, brand adaptation, and a written decision record. Use when the user asks "where should glass go", "add liquid glass to our app", "glassmorphism redesign", "frosted glass navbar or cards?", "make it feel like Apple glass", "glass effect design system", or wants a glass spec before code. Do not use for tuning refraction math (glass-optics), writing the implementation (glass-web or glass-native), or a pre-merge audit of shipped glass (glass-review).
Run the bundled Glass Lab, a local page with no network requests that renders the liquid glass style engine over a busy backdrop with live controls for every parameter, to tune glass, compare variants side by side, capture screenshots per tier, and export the chosen settings into the project as engine options and CSS. Use when the user says "let me tune the glass", "show me the refraction live", "compare these two glass looks", "playground for the liquid glass effect", "preview glassmorphism settings", "what does the frost fallback look like", or wants reproducible screenshots for a review. Do not use for production implementation (glass-web), for library selection (glass-library-select), or as evidence that the product page itself is legible (glass-accessibility measures the real page).
Choose how to render liquid glass style refraction on the web: plain CSS frost, the bundled dependency-free engine, or one of five studied open-source libraries (glasshq-liquid-glass, simple-liquid-glass, liquidGL, ybouane-liquidglass, liquid-glass-react), with license and notice obligations, engine reach, framework fit, bundle cost and accessibility gaps. Use when the user asks "which liquid glass library should I use", "is there an npm package for Apple glass", "liquid-glass-react vs simple-liquid-glass", "glassmorphism library", "refraction in Safari", "can I use this glass code commercially", or before adding any glass dependency. Do not use for native apps (glass-native), for tuning an already chosen renderer (glass-optics), or for wiring code (glass-web).
Designs and implements motion for liquid glass style surfaces on the web and in SwiftUI: press and grow, pointer stretch and elasticity, rubber banding, morphing a button into its menu, merging nearby glass shapes, spring tuning, interruption and reversal, and reduced-motion alternatives. Use when the user asks to "make the glass feel liquid", "add a press or squish effect", "stretch toward the cursor", "morph the button into a menu", "merge glass shapes", tune springs or bounce on a glass effect, fix glass animation jank or lag, or respect reduced motion on glassmorphism or frosted glass UI. Do not use for static optics such as refraction strength or bezel shape (use glass-optics), for general page animation without glass, or for frame-rate profiling (use glass-performance).
Adopts liquid glass style material in native apps: SwiftUI, UIKit and AppKit on the 26 SDKs with availability checks and pre-26 fallbacks, GlassEffectContainer grouping, glassEffectID morphs, glass button styles, toolbar spacers, and Reduce Transparency or Increase Contrast behaviour; plus Android (RenderEffect, AGSL, Compose libraries), Flutter and React Native options with maturity labels. Use when the user says "liquid glass in SwiftUI", "Apple glass", "glassEffect", "adopt iOS 26 design", "glass effect on Android", "frosted glass in Compose or Flutter", "refraction in React Native", or asks why native glass looks wrong or crashes on older OS versions. Do not use for web pages or CSS (use glass-web), for choosing a web library (use glass-library-select), or for visual design decisions alone (use glass-design).
Tune and debug the optics of liquid glass style refraction: bezel profile, thickness, index of refraction, strength, bezel width, chromatic aberration, blur, saturation, rim light and tint, plus displacement map encoding (sRGB, neutral 128, channel selectors, filter scale, DPR). Use when the user says the glass "looks flat", "looks like frosted plastic", "edges tear", "corners fold", "rainbow fringes", "content shifts or shimmers", "refraction is too strong", "make the refraction more realistic", or asks how feDisplacementMap maps work. Do not use for choosing a rendering tier or library (glass-library-select), framework wiring (glass-web), native SwiftUI glass, which has no optics knobs (glass-native), or contrast sign-off (glass-accessibility).
Measures and budgets the cost of liquid glass style surfaces: a cost model per rendering tier (CSS backdrop blur, SVG displacement, map generation, WebGL capture, native containers), map caching, device pixel ratio caps, instance limits with hysteresis, resize and scroll handling, frame scheduling, a repeatable measurement procedure and starting budgets. Use when the user says "the glass effect is slow", "glassmorphism lags on scroll", "frosted glass drops frames on mobile", "refraction makes the page janky", "how many glass panels can I have", or asks to profile, optimize or set a performance budget for a liquid glass or Apple glass style UI. Do not use for general page speed work without glass, for optics tuning that does not affect cost (use glass-optics), or for choosing a library by features (use glass-library-select).
Runs an evidence-based review of liquid glass style UI on the web and native platforms: a phased audit, named detection patterns with a false-positive list, real-browser screenshots across tiers and preferences, a cross-engine probe of whether refraction and backdrop blur actually render, measured worst-case text contrast, a docs drift check, and a report where every check is checked, not checked or not applicable and every finding has severity, repro steps and evidence. Use when the user asks to "review my liquid glass UI", "audit the glassmorphism", "check the glass effect before release", "why does the glass look wrong in Safari or Firefox", "is this Apple glass implementation correct", or wants a frosted glass or refraction PR assessed. Do not use to build glass from scratch (use glass-web or glass-native) or for a review with no glass in scope.
Implement liquid glass style surfaces on the web in the project stack: vanilla JS, React or Next.js, Vue or Nuxt, Svelte or SvelteKit, web components, and server rendering. Builds the solid, frost and refract tiers in that order, wires the bundled dependency-free engine (or an installed library) with unique filter ids, tier styling, Backdrop Root checks, live preference changes and cleanup. Use when the user asks to "add liquid glass to the navbar", "build a glass button or toolbar in React", "glassmorphism CSS", "frosted glass header", "Apple glass effect on the web", "SVG refraction with backdrop-filter", or reports glass breaking under SSR or hydration. Do not use for picking among libraries (glass-library-select), optical tuning (glass-optics), native apps (glass-native) or a review-only request (glass-review).
Route liquid glass style UI work to the right specialist skill in this plugin: design decisions, optics tuning, web implementation, library choice, the tuning lab, native platforms, motion, accessibility, performance and review. Use when the user asks for "liquid glass", "glassmorphism", "frosted glass", "Apple glass", "glass effect", "glass UI", "refraction", "glass nav bar" or "make it look like iOS 26", or when the request spans more than one of those areas and you need a plan. Use it to pick the smallest skill set, not to load everything. Do not use for opaque card or shadow styling with no translucency, for physically based 3D glass in a game or product render, for photo filters, or for copying Apple assets, names or exact visuals.