agentleFS
EclipterEclipter/agents/skills/design/glassmorphism/SKILL.md

glassmorphism

Skill1 starsChanged 5 days agoMITView on GitHub

Create frosted glass effects, transparent overlays, and layered glass UI with blur, tint, borders, and colored shadows. Use when building glassmorphism, backdrop-blur, or frosted-glass interfaces.

12 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use claymorphism, neobrutalism and 10 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.
  • bergsideSkill

    claymorphism

    Soft, rounded 3D-like shapes mimicking malleable clay with playful, puffy elements and colorful surfaces.

    Also in 6 projects that use this

  • bergsideSkill

    neobrutalism

    Modern take on brutalism with bold borders, vivid accent colors, and raw, high-contrast layouts on warm surfaces.

    Also in 4 projects that use this

  • +10 more from bergside

The file

We split this skill into the rules it gives an agent

1 rule. 0 are common, 1 is distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 12 edited versions we read keep these.

  • 1

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Keep blur radius ≤ 24px on mobile.

    line 84

“Common” is measured: kept by at least 6 in 10 of the 12 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

Glassmorphism

Examples use Tailwind. For plain CSS or SwiftUI, apply the same recipe: blur + translucent tint + thin light border + soft shadow. In SwiftUI use .background(.ultraThinMaterial) (or .regularMaterial, .thickMaterial) instead of hand-tuned blur.

Rules

  1. Needs something behind it. Glass over a flat color looks like a gray box. Put a gradient, image, or colored shapes behind it.
  2. backdrop-blur-* plus a semi-transparent background: bg-white/10, bg-black/40.
  3. Thin light border (border-white/20) and an optional inner top highlight to fake an edge.
  4. Soft shadow for depth: shadow-xl shadow-primary/10.
  5. Define light and dark variants.
  6. Text stays readable: contrast ≥ 4.5:1 against the worst-case background behind the glass. Raise the tint opacity before reducing text weight.
  7. Few glass layers: glass on primary surfaces only (cards, modals, nav). Don't glass everything.

Quick reference

Base

className="bg-white/10 backdrop-blur-xl border border-white/20 rounded-2xl"

Safari support

Safari needs the prefixed property in plain CSS (Tailwind adds it for you):

.glass {
  background: rgb(255 255 255 / 0.1);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  backdrop-filter: blur(24px) saturate(150%);
  border: 1px solid rgb(255 255 255 / 0.2);
}

Edge highlight and colored shadow

className="bg-white/10 backdrop-blur-xl border border-white/20 shadow-xl shadow-primary/10 shadow-[inset_0_1px_0_0_rgb(255_255_255/0.3)]"

Blur levels

LevelClassUse
Subtlebackdrop-blur-smOverlays on clean backgrounds
Mediumbackdrop-blur-mdCards, modals
Strongbackdrop-blur-xlPrimary surfaces
Maximumbackdrop-blur-3xlHero sections

Layered stack

<div className="relative">
  <div className="absolute inset-0 bg-white/5 backdrop-blur-3xl rounded-3xl" />
  <div className="absolute inset-2 bg-white/10 backdrop-blur-xl rounded-2xl" />
  <div className="relative bg-white/20 backdrop-blur-md rounded-xl p-6">
    {children}
  </div>
</div>

Dark mode

className="bg-white/80 backdrop-blur-xl dark:bg-black/40 border-black/10 dark:border-white/20"

Light mode needs a higher tint opacity (/60 to /80) than dark mode, or text washes out.

Accessibility and performance

// Fallback for users who reduce transparency and for browsers without blur
className="bg-white/10 backdrop-blur-xl contrast-more:bg-white/90 contrast-more:backdrop-blur-none supports-[not(backdrop-filter:blur(1px))]:bg-white/90"
  • Blur is expensive: avoid it on large scrolling lists, many stacked layers, or animated elements; animate opacity/transform, not the blur radius.
  • Keep blur radius ≤ 24px on mobile.

Checklist

  • Colorful or image background behind the glass
  • backdrop-blur-* and semi-transparent background present
  • Subtle border
  • Text contrast ≥ 4.5:1 on light and dark backgrounds
  • Light and dark variants defined
  • Fallback for no backdrop-filter and reduced transparency

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.