agentleFS
Masih-0x3Masih-0x3/agent-skills/skills/liquid-glass/SKILL.md

liquid-glass

Skill0 starsChanged 3 months agoMITView on GitHub

Design and implement high-quality liquid glass UI effects for web apps. Use when the user asks for liquid glass, Aave-style SVG displacement glass, LiquidGlass/WebGL glass, glass refraction, glassmorphism with realistic distortion, Safari-compatible glass, React/Next/Tailwind glass components, or a decision between CSS/SVG/WebGL glass approaches.

19 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use ui-ux-pro-max.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • StrayDragonSkill

    ui-ux-pro-max

    UI/UX design intelligence. 50 styles, 21 palettes, 50 font pairings, 20 charts, 8 stacks (React, Next.js, Vue, Svelte, SwiftUI, React Native, Flutter, Tailwind). Actions: plan, build, create, design, implement, review, fix, improve, optimize, enhance, refactor, check UI/UX code. Projects: website, landing page, dashboard, admin panel, e-commerce, SaaS, portfolio, blog, mobile app, .html, .tsx, .vue, .svelte. Elements: button, modal, navbar, sidebar, card, table, form, chart. Styles: glassmorphism, claymorphism, minimalism, brutalism, neumorphism, bento grid, dark mode, responsive, skeuomorphism, flat design. Topics: color palette, accessibility, animation, layout, typography, font pairing, spacing, hover, shadow, gradient.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

7 rules. 0 are common, 5 are distinctive, and 2 are very specific to this project.

  • 0

    Common

    Most of the 18 edited versions we read keep these.

  • 5

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use this default decision order:

    line 14
  2. Distinctive:

    LiquidGlass/WebGL: only for showpiece hero sections, magnifiers, live video, canvas/QR surfaces, interactive demos, or when the user …

    line 17
  3. Very specific:

    Avoid using the older React Bits-style SVG backdrop-filter: url(#...) path as the main production path.

    line 20
  4. Very specific:

    Verify visually and technically: run build/typecheck/lint as appropriate, inspect desktop and mobile screenshots, check console errors, and …

    line 32
  5. Distinctive:

    Keep filter regions bounded.

    line 44
  6. Distinctive:

    Treat Safari as the hard target.

    line 45
  7. Distinctive:

    Use WebGL sparingly. Each WebGL root has setup cost and device/hardware variability.

    line 46

“Common” is measured: kept by at least 6 in 10 of the 18 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Liquid Glass

Overview

Build liquid glass as a progressive system: Aave-style SVG displacement for normal DOM UI, LiquidGlass/WebGL for high-fidelity hero/video/canvas moments, and plain CSS glass as the fallback. Do not treat simple backdrop-filter glass as the premium implementation.

Renderer Decision

Use this default decision order:

  1. Aave-style SVG displacement for app UI, menus, nav, cards, sheets, toolbars, buttons, and reusable React components.
  2. LiquidGlass/WebGL only for showpiece hero sections, magnifiers, live video, canvas/QR surfaces, interactive demos, or when the user explicitly wants the highest visual fidelity.
  3. CSS fallback for unsupported browsers, reduced-performance devices, server render before hydration, or failure to initialize SVG/WebGL.

Avoid using the older React Bits-style SVG backdrop-filter: url(#...) path as the main production path; it is useful as a quick prototype or fallback pattern, but the hybrid above covers the higher-quality cases.

Workflow

  1. Anchor on the target app and existing design system before writing code. Read local instructions, package scripts, current component primitives, styling stack, SSR constraints, and browser support targets.
  2. Choose the renderer from the decision order. If the user asks for "best-looking" or "wow", consider WebGL; if they ask for production app UI or cross-browser compatibility, start with SVG displacement.
  3. Implement a progressive component:
    • stable semantic DOM and accessible content
    • separate refracted visual layer from readable text/content
    • SVG displacement or WebGL enhancement after mount
    • CSS glass fallback that still looks intentional
  4. Cache expensive work. Recompute displacement maps only on resize, DPR change, or relevant prop changes. Do not regenerate maps on every animation frame.
  5. Verify visually and technically: run build/typecheck/lint as appropriate, inspect desktop and mobile screenshots, check console errors, and test Safari/iOS Safari when Safari compatibility is part of the goal.

Reference Routing

  • For production DOM components, read SVG Displacement.
  • For high-fidelity/WebGL components, read WebGL LiquidGlass.
  • For browser validation and failure modes, read Testing Compatibility.
  • For original links, documentation, and source provenance, read Source Index.

Implementation Guardrails

  • Preserve legibility. Do not refract critical text unless a clean foreground text layer remains above the effect.
  • Keep filter regions bounded. Large SVG filter boxes and full-page canvas captures are common performance traps.
  • Treat Safari as the hard target. Use fresh filter IDs or remount keys when filter updates get stale, keep displacement conservative, and verify on real Safari where possible.
  • Use WebGL sparingly. Each WebGL root has setup cost and device/hardware variability; never put dozens of WebGL glass surfaces in dense operational UI.
  • Respect prefers-reduced-motion and low-power contexts. Disable continuous shimmer, pointer-follow effects, or every-frame captures unless the interaction requires them.
  • Make fallback explicit. Feature-detect SVG filters/WebGL where needed and keep a non-distorted translucent glass style as the baseline.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.