Skip to content
AI & Agents
Skill

/glassmorphism

Create or refine glass UI with accessible solid fallbacks. Covers frosted surfaces and Liquid Glass; excludes unrelated UI and 3D glass rendering.

From plugin
skills
65590 skills1 command

Claude Code

$ npx -y skills add pedronauck/skills --skill glassmorphism --agent claude-code

SKILL.md

glassmorphism.SKILL.md
name: glassmorphism
description: "Create or refine glass UI with accessible solid fallbacks. Covers frosted surfaces and Liquid Glass; excludes unrelated UI and 3D glass rendering."
metadata:
  author: Pedro Nauck
  github: https://github.com/pedronauck
  repository: https://github.com/pedronauck/skills

Glassmorphism

Build a material whose translucency reads as a lit pane of glass while text stays legible and controls stay usable. Premium glass comes from a backdrop that carries light, a thin light fill, one locked light direction expressed through rim, highlight and shadow, and a stabilized plate under dense content. It never comes from raising blur or opacity.

Establish the material's job

Read the brief and the existing interface for platform, surface roles, reading density, who owns the backdrop, themes, and target devices. Preserve the project's components, typography, tokens and interaction conventions. Infer routine choices; this skill adds no approval step or planning artifact.

Separate three layers before styling: **environment** behind the interface, **content** people read or manipulate, **chrome** that navigates or controls it. Glass needs a reason to reveal the environment. Over flat color the blur has nothing to sample and the surface becomes a gray box; use a tinted solid there, or compose a backdrop with a luminance ramp when the brief allows one.

| Surface | Starting decision | Change it when | |---|---|---| | Floating toolbar, dock, tab bar, compact media or map control | Glass capsule; icons on the material, selected state as a denser chip | Uncontrolled imagery or device cost defeats legibility | | Glanceable widget (weather, metric, now playing) | Glass card with large light numerals and short labels; ink chosen by backdrop luminance | Copy grows past a few short lines: add a plate or go solid | | Popover, sheet, command palette, settings panel | Glass shell with a stabilized plate under fields, rows and code | Sustained reading: solid panel | | Table, editor, long text, chart labels, forms | Solid reading plane; optional glass around it | Only after measuring the composite behind the text | | Primary action, errors, important status | Stable foreground/background pairing and recognizable states | A native platform control already supplies verified material | | Blocking modal backdrop | Dimming scrim | A measured, purposeful effect justifies more rendering |

Load only the branch needed

Resolve paths from this skill directory. References are self-contained; the research vault is optional.

| Need | Read | |---|---| | Name the target look, judge a result, pick tokens, fix flat/muddy/plastic glass, author in Figma | [Art direction and materials](references/art-direction.md); the quality bar is [the reference board](references/reference-board.md) | | Implement web glass, integrate with Tailwind/React/shadcn, diagnose missing blur, clipping, stacking | [Web engineering](references/web-engineering.md); adapt [glass.css](assets/glass.css) | | Put text or controls on glass, accept arbitrary backdrops, measure contrast, honor preferences | [Accessibility and validation](references/accessibility-validation.md) | | Add lens refraction, chromatic fringe, morphing, or target native Liquid Glass, visionOS, Fluent, Material, Expo | [Advanced effects and platforms](references/advanced-platforms.md), only the matching section | | Trace a rule to its source or extend the skill | [Evidence and provenance](references/evidence.md); the coverage catalog is bookkeeping, not runtime reading |

[material-lab.html](assets/material-lab.html) with its stylesheet is a runnable reference: seven backdrops including a stress board, three thickness presets, light angle, fill and blur multipliers, refraction, grain, solid mode, a live contrast estimate and a token readout. It demonstrates the material; adapt it into the target stack rather than copying the page.

Implement a coherent material

1. **Compose the backdrop and the ink.** Photos, wallpapers and gradients with a luminance ramp make glass; keep exposed environment around every surface. Choose the ink by the luminance behind the surface, and measure: white ink on a thin light tint only over dark scenes (relative luminance below ~.1); white ink on a smoked neutral tint (`--glass-tint: 56 50 58` at ~.66) over mid and pastel scenes; dark ink on white frost (~.62) over pale and near-white scenes (above ~.6). White on a light tint over a pastel photo renders below 2:1; the lab switches modes per backdrop and shows the estimate. Apple's material makes this switch automatically; on the web you decide it per scene. 2. **Lock one light direction and express it five ways.** `--glass-light` drives the 1px rim gradient (bright on the lit edge, dim opposite), the 1px inset highlight and its shadowed twin, the sheen falloff, and the elevation shadow. Highlights on every edge, or a broad white wash, read as plastic. 3. **Tune thin, then thicken only where reading needs it.** Start from the presets (clear `.07/6px`, regular `.16/14px`, frosted `.34/26px` with `saturate(1.4–1.7) brightness(1.05)`), then add a `.glass-plate` under dense text instead of raising the whole surface's alpha. Capsules for controls, 24–30px radii for cards, concentric inner radii. 4. **Protect content and interaction.** Filter the surface, never the label subtree; keep rim and sheen pseudo-elements non-interactive; change fill alpha, not element opacity. States are structural: hover raises fill and rim, press compresses shadow, disabled loses rim and sheen, focus is a crisp ring above the stack. Preserve native semantics, hit targets and dismissal. 5. **Ship the solid twin first.** Declare the opaque fill/ink pair, then enhance inside `@supports`. Provide an application-level solid mode; honor reduced transparency, forced colors, reduced motion and print explicitly. 6. **Add refraction only where the bend reads as thickness.** Small controls (buttons, knobs

Read more
@pedronauck
Ships withskills

A curated collection of 89 agent skills for Claude Code and compatible AI coding assistants — 43 original (⭐️), 33 hand-picked (💎), and 13 marketing & business (📣).

Stars on GitHub

Momentum

stars in total
655
Star history of pedronauck/skills on GitHub, a chart by star-history.com

Other skills on skills.

agent-browser

agent-browser

Browser automation CLI for AI agents. Use when the user needs to interact with websites, including navigating pages, filling…

@pedronauck@pedronauckInstall Skill
ai-sdk

ai-sdk

Answer questions about the AI SDK and help build AI-powered features. Use when developers: (1) Ask about AI SDK functions like…

@pedronauck@pedronauckInstall Skill
autoresearch

autoresearch

Autonomously optimize any Claude Code skill by running it repeatedly, scoring outputs against binary evals, mutating the prompt,…

@pedronauck@pedronauckInstall Skill
centrifugo

centrifugo

Centrifugo real-time messaging server expert for WebSocket PUB/SUB, channel management, JWT authentication, event proxying, and…

@pedronauck@pedronauckInstall Skill
context7

context7

Retrieves up-to-date documentation, API references, and code examples for any developer technology. Use this skill whenever the…

@pedronauck@pedronauckInstall Skill
documentation-writer

documentation-writer

Diátaxis Documentation Expert. An expert technical writer specializing in creating high-quality software documentation, guided by…

@pedronauck@pedronauckInstall Skill

More skills from other plugins.

1password

1password

Set up and use 1Password CLI for sign-in, desktop integration, and reading or injecting secrets.

openclaw3w393k
@openclaw@openclawInstall Skill

Questions about glassmorphism.

Which coding agents can use glassmorphism?
glassmorphism installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.