Glassmorphism CSS Generator

Glassmorphism CSS Generator

Create frosted-glass “glassmorphism” CSS visually with simple sliders.
Adjust blur, opacity, border, and shadow in real time, then copy the code with one click.

This tool has been used times.

Glassmorphism A frosted-glass, see-through UI
Background (preview backdrop)
background: rgba(255, 255, 255, 0.18);
backdrop-filter: blur(12px) saturate(160%);
-webkit-backdrop-filter: blur(12px) saturate(160%);
border: 1px solid rgba(255, 255, 255, 0.3);
border-radius: 16px;
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
Presets

What is glassmorphism?

Glassmorphism is a UI design style that makes elements look like frosted glass, letting the background show through with a soft blur. It is widely used in modern OS design, including macOS, iOS, and Windows 11.

In CSS, the effect is built mainly with the backdrop-filter blur, combined with a semi-transparent background color, a thin border, and a soft shadow.

How to use

  1. Switch the preview backdrop with “Background”. How the glass looks depends heavily on what is behind it.
  2. Pick a preset close to the look you want from “Presets”.
  3. Fine-tune blur, opacity, saturation, radius, border, and shadow with the sliders.
  4. Change the glass color with “Tint”. White is the classic choice; a dark color turns it into dark glass.
  5. When you are happy with the result, press “Copy” and paste the CSS into your site.

How to apply the CSS

Paste the copied code into the CSS of the element you want to turn into glass.

Example: applying to a card
.glass-card {
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

* backdrop-filter blurs whatever is behind the element. The effect is invisible unless the parent or page background has an image, gradient, or other content behind the glass.

* -webkit-backdrop-filter is included for Safari support. The code works in all major modern browsers.

Tips for a beautiful result

🖼
Glass needs a background
The effect is barely visible on a flat solid color. Place the glass over a photo or gradient.
💧
Balance blur and opacity
The stronger the blur, the lower you can keep the fill opacity for a more elegant look.
Borders and shadows add “thickness”
A thin white border (1px) and a soft shadow make the element feel like a real pane of glass.

Please also review the Terms of Use for this web app before using it.

Found a bug or have feedback? Let us know here.

Report bugs, display issues, usability problems, or suggestions for improvement.
Consent
・This form is for bug reports only. In principle, we do not respond to individual submissions.
・If a submission contains defamatory, threatening, or otherwise inappropriate content, we may take appropriate action based on logs such as IP addresses.

よかったらシェアしてね!
  • URLをコピーしました!
  • URLをコピーしました!
目次