Keep a frosted panel readable
A glass-style panel combines a partially transparent fill with a filter applied to the content behind it. It works well for a small overlay on a colorful illustration, a menu over a gradient, or a card that needs to remain visually connected to a background. The generated declarations target the panel itself. Apply them to the same element that contains the text, then put an image, gradient, or another visible layer behind that panel.
Try the example values first and compare two alternatives. A low opacity such as 0.15 lets more of the original background show through. A higher value such as 0.65 makes the panel more uniform and can help when the underlying image is busy. Blur radii are measured in CSS pixels. Raising the radius smooths detail, but very large radii can make many overlapping or animated panels more expensive to render.
For a production interface, check the result in the place it will actually be used. The built-in preview shows the effect against a sample gradient, so your own image may produce a very different result. Try the brightest and darkest parts of that image, resize the viewport, and check both text and icon contrast. If a panel moves over changing content, consider a stronger background fill or an opaque fallback behind the text.
Keep the border or another visual separation cue if adjacent surfaces blend together. For projects that need an opaque fallback, declare a solid background first and add the translucent style only in a CSS feature query that checks backdrop-filter support. That allows the panel to remain readable when the blur effect is unavailable.
Build a translucent card over a gradient
The first value is the white fill opacity; the second is the blur radius in CSS pixels. Apply the output to the card, with a visible gradient behind it. Check the text contrast against the composited background.
0.25, 12
Expected output
background: rgb(255 255 255 / 0.25); backdrop-filter: blur(12px); border: 1px solid rgb(255 255 255 / 0.35);
Common questions
- Why is the blur hard to see?
- Backdrop blur is visible only if there is something to blur behind the element. Place it over a gradient or image and keep the surface translucent.
- How do I keep text readable?
- Test foreground contrast over both light and dark areas of the actual background. Raising opacity can help.
The tool processes your input in this browser. It does not upload the input itself.