Color · Made a little simpler

CSS Glassmorphism & Claymorphism Generator

Build glass or clay cards with adjustable backdrop blur, tint, borders, corners and shadows. Preview three backdrops and download CSS.

Free to useNo account neededProcessed on your device
Your workspaceProcessed on your device

Preview

Surface settings

Stylesheet

#7D9065rgb(125, 144, 101)

Preview composited on white. HEX stores alpha in 8 bits; decimal alpha is retained in RGB and HSL.

HEX#7D9065
RGBrgb(125, 144, 101)
HSLhsl(86.512 17.551% 48.039%)
RGB percentrgb(49.02% 56.471% 39.608%)
Normalized RGBA0.4902, 0.5647, 0.3961, 1
CSS variable--color: #7D9065;

Color names use standard CSS keywords, such as red or rebeccapurple.

Add this tool to your website

Paste this code into your page to add the tool and a visible ToolMellow credit link.

HTML embed code
Preview embed

CSS Glassmorphism & Claymorphism Generator: how to use it

  1. Choose Glass for a translucent surface or Clay for rounded shadow relief. Set the dimensions, radius, colors and opacity.
  2. Choose a preview backdrop. Watch how blur changes fine lines in Glass, or how shadow depth adds inner highlights in Clay.
  3. Copy or download the .style-surface stylesheet. Save a settings file to record the dimensions, colors and effect values.

Limits and notes

120–600 px width and 85–420 px height, with a 100% maximum width in the available container. The generated glass rule includes a solid fallback for browsers without backdrop blur. Colors use sRGB HEX, RGB, HSL or CSS names.

How your privacy works →

CSS Glassmorphism & Claymorphism Generator: common questions

Why is backdrop blur hard to see on a flat background?

The filter blurs whatever is visible behind the surface. A uniform color has no edges to soften, and an opaque surface hides the blur.

Does Glass blur text inside the card?

Backdrop blur affects the background seen behind the card. Text placed inside remains sharp.

What makes Clay look raised?

An outer shadow lifts the surface visually. Opposing inset highlights and shadows make its edges look rounded.

Guides