agentleFS
YordiLorenzoYordiLorenzo/liquid-glass-skills/liquid-glass/SKILL.md

liquid-glass

Skill3 starsChanged 4 months agoMITView on GitHub

Liquid Glass material best practices for SwiftUI, UIKit, and AppKit on iOS 26+/macOS 26+ (Tahoe) through iOS 27/macOS 27. Use when implementing, reviewing, or migrating to glass: glassEffect, Glass variants (.regular/.clear/.identity), tint, interactive(), GlassEffectContainer, glassEffectUnion, toolbar glass, ToolbarSpacer, scrollEdgeEffectStyle, sharedBackgroundVisibility, tabBarMinimizeBehavior, backgroundExtensionEffect, NSGlassEffectView, UIGlassEffect, Tahoe window chrome, glass accessibility (Reduce Transparency/Increase Contrast), pre-26 Material fallbacks, UIDesignRequiresCompatibility. Also fires on symptoms: glass renders dark or muddy, glass looks like a flat tinted rectangle, glass button doesn't register taps, tap passes through glass, "'glassEffect' is only available in iOS 26.0 or newer", "ambiguous use of 'opacity'", "'cornerRadius' was deprecated", glass looks different in simulator vs device, screenshots of glass UI don't match. For glass animation, morphing, glassEffectID, transitions, Metal shaders, or performance profiling use the liquid-glass-motion skill instead.

19 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use animation-vocabulary, review-animations and 2 more.

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.
  • MicrosoftSkill

    animation-vocabulary

    Reverse-lookup glossary that turns a vague description of a web animation or motion effect into its exact term ("the bouncy thing when a popover opens" → Pop in; "the iOS rubber-band scroll" → Rubber-banding). Use when the user asks "what's it called when…", or describes a motion effect without knowing its name and wants the right word to prompt an AI or designer with. For naming an effect, not designing or building one.

    Also in 3 projects that use this

  • MicrosoftSkill

    review-animations

    Reviews animation and motion code against a high craft bar derived from Emil Kowalski's design engineering philosophy. Default to flagging; approval is earned.

    Also in 3 projects that use this

  • 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

  • +1 more from microsoft

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 18 edited versions we read keep these.

  • 2

    Distinctive

    This author's own choices. Worth a look.

  • 5

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    ALWAYS read references/availability-and-sdk27.md before generating or reviewing glass code.

    line 29
  2. Distinctive:

    When asked to add glass to content (lists, media, text), first ask whether it should be glass at all.

    line 33
  3. Very specific:

    Prefer standard components (toolbars, search, sheets, tab bars) that adopt glass automatically.

    line 35
  4. Very specific:

    Never present simulator rendering or exact screenshot pixels as evidence a glass change is correct — see …

    line 37
  5. Very specific:

    Never wrap glassEffect in a .if conditional-modifier helper — ternary with .identity or a ViewModifier gate instead.

    line 56
  6. Very specific:

    Never set opacity < 1 on a glass view or any ancestor — refraction silently collapses.

    line 63
  7. Distinctive:

    Never stack glass on glass.

    line 67

“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 — the material

Composed 2026-08 and verified against developer.apple.com and SDK interfaces. Every rule carries an availability floor and a confidence tag: [verified] (checked against Apple docs/SDK this composition), [apple] (Apple doc, unverified), [multi] (corroborated by multiple independent accounts), [single] (one account — verify before relying), [version-pinned] (bug workaround tied to OS versions; recheck on updates).

Operating rules

  1. ALWAYS read references/availability-and-sdk27.md before generating or reviewing glass code. It corrects availability errors present in most published material, including Apple's.
  2. Load other references on demand via the router below — one topic, one file.
  3. Glass belongs on the functional layer (controls, chrome) floating above the content layer. When asked to add glass to content (lists, media, text), first ask whether it should be glass at all.
  4. Prefer standard components (toolbars, search, sheets, tab bars) that adopt glass automatically; custom glassEffect surfaces are for distinctive elements only.
  5. Never present simulator rendering or exact screenshot pixels as evidence a glass change is correct — see references/known-bugs-and-testing.md.
  6. Animation of glass (morphing, transitions, reduce-motion gating, performance) is owned by the companion liquid-glass-motion skill, installed alongside this one. Read its references when the task involves motion; do not improvise glass animation from here.

Workflows

  • Review existing glass → references/review-checklist.md (diff-checkable items + known-bad API table). Also flag where glass should NOT be used.
  • Adopt / migrate an app → references/fallback-and-migration.md (deletion-first audit, 5 phases), then per-surface references.
  • Implement from scratch → references/material-and-variants.md + references/containers-and-sampling.md, then the platform file for your framework.

Hard rules (the short list)

  1. Availability-gate every glass API per platform with its real floor; fall back to Materials below 26. [verified]
  2. Never wrap glassEffect in a .if conditional-modifier helper — ternary with .identity or a ViewModifier gate instead. [apple]
  3. Apply glassEffect after layout and appearance modifiers. [multi]
  4. Two or more glass views near each other → one GlassEffectContainer. Glass cannot sample other glass; the container is visual correctness, not just performance. [multi]
  5. interactive() only on surfaces that actually respond to interaction; buttons already have it. [multi]
  6. Never set opacity < 1 on a glass view or any ancestor — refraction silently collapses. [multi]
  7. Glass needs content to refract: over a flat single-color background it reads as a flat tinted rectangle. Give it a gradient/image/dynamic content, or don't use glass. [multi]
  8. Never stack glass on glass. [multi]
  9. Custom-shape glass buttons need contentShape or only the glyph hit-tests. [version-pinned]
  10. Glass ignores .allowsHitTesting(false); only .disabled(true) suppresses its visual reaction. [verified]
  11. The system adapts the material for Reduce Transparency / Increase Contrast — don't fight it, and don't remove glass manually where the system would frost it. [multi]
  12. Dark/muddy glass over bright backgrounds in Dark Mode is by design; fix the background colors, not the glass. [verified]

Topic router

TopicReference
Availability, SDK-27 breakages, renames, compat flagreferences/availability-and-sdk27.md (always)
Variants, tint, shapes, interactive, when-to-usereferences/material-and-variants.md
Containers, sampling, spacing, glass-on-glassreferences/containers-and-sampling.md
Toolbars, scroll edge, tab bar, WWDC26 toolbar APIsreferences/toolbars-and-scroll-edge.md
UIKit (UIGlassEffect, corners, hosting)references/uikit-glass.md
AppKit, NSGlassEffectView, Mac windows, Tahoe chromereferences/appkit-and-mac-windows.md
Accessibility (transparency, contrast, hit targets)references/accessibility.md
Fallbacks below 26, migration workflowreferences/fallback-and-migration.md
Version-pinned bugs, testing/screenshot policyreferences/known-bugs-and-testing.md
Review audit + known-bad (hallucinated) APIsreferences/review-checklist.md
Morphing, glassEffectID, transitions, motion, Metal, profilingliquid-glass-motion skill

Scope

SwiftUI first; UIKit and AppKit covered; WidgetKit briefly in platform files. visionOS excluded — the SDK marks Liquid Glass unavailable there [verified]. watchOS/tvOS excluded — no reliable source material exists; do not improvise.

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.