CSS Glassmorphism & Claymorphism Generator
Build glass or clay cards with adjustable backdrop blur, tint, borders, corners and shadows. Preview three backdrops and download CSS.
Compare Glass Blur and Clay Shadows
Preview
Stylesheet
Preview composited on white. HEX stores alpha in 8 bits; decimal alpha is retained in RGB and HSL.
#7D9065rgb(125, 144, 101)hsl(86.512 17.551% 48.039%)rgb(49.02% 56.471% 39.608%)0.4902, 0.5647, 0.3961, 1--color: #7D9065;Color names use standard CSS keywords, such as red or rebeccapurple.
CSS Glassmorphism & Claymorphism Generator: how to use it
- Choose Glass for a translucent surface or Clay for rounded shadow relief. Set the dimensions, radius, colors and opacity.
- Choose a preview backdrop. Watch how blur changes fine lines in Glass, or how shadow depth adds inner highlights in Clay.
- 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.