Best Design Prompts open the library

prompt topic

Glass UI prompts

By the uberdesigner team · reviewed

Answer in brief

A glass UI prompt works when it describes two things: what is behind the glass, and how the glass changes it. Glass over a flat colour is a grey box. The look needs a backdrop with colour and movement, a blur amount, a tint, a bright rim and text that stays readable on top.

Name the kind of glass. Frosted glass blurs. Liquid glass bends what is behind it like a lens. Fluted glass breaks it into vertical ribs. Each is built differently, and "glassmorphism" on its own gets the weakest version of the first.

Build the backdrop first

Decide what the glass sits over: a photograph, soft blobs of colour that drift, a shaft of light, the content of the app itself. Describe it with colours and sizes and say how slowly it moves. The backdrop gives the glass something to show, and it sets the mood more than the panel does.

Keep contrast in the backdrop moderate. Very bright and very dark areas side by side make text on the glass hard to read, whatever the blur.

Describe the pane in layers

Frosted glass in CSS is a stack. A backdrop blur, often 16 to 30px, with a little extra saturation. A tint, such as white at 10 to 20 percent on a dark scene. A 1px rim that is brighter at the top than at the bottom, which is what makes an edge read as glass. A soft shadow below to lift the pane. Give a number for each.

Liquid and fluted glass go further: they shift or repeat what is behind them. That usually needs an SVG displacement filter or a small shader. Say which you want, and ask for plain frosted glass as the fallback where the effect is not supported. Check the current browser support for the technique before you depend on it.

Protect the text

Text on glass sits over a moving picture, so it needs help: a slightly stronger tint behind text blocks, a heavier weight than you would use on a solid surface, and no thin grey captions. Ask the tool to check contrast at the lightest and darkest points of the backdrop.

Use glass for a few panes. A card, a bar, a menu. When every surface is glass, nothing is behind anything, and the effect is lost along with the frame rate.

What a glass UI prompt should contain

A prompt to start from

frosted glass card prompt
Build one frosted-glass card for [product] showing [content, e.g. today's sleep summary], over a slowly moving backdrop. A design study on a single page.

Stack: Vite + React + TypeScript, plain CSS with custom properties. No libraries, no WebGL.

Backdrop: full viewport, base #0c0f1a. Three blurred colour fields drift behind the card: #3b5bff at 520px, #ff7a45 at 420px and #19c2a0 at 360px, each a circle with filter: blur(90px) at 70% opacity. They move on slow independent loops of 18s, 23s and 29s, travelling no more than 120px, so the colour under the card keeps changing.

Card: 380 × 460px, centred, radius 32px.
- backdrop-filter: blur(26px) saturate(150%), with the -webkit- prefix as well.
- Tint: rgba(255,255,255,0.10).
- Rim: a 1px inner border drawn as a gradient, rgba(255,255,255,0.55) at the top to rgba(255,255,255,0.08) at the bottom.
- A highlight: a 1px line of rgba(255,255,255,0.7) across the top edge, inset 24px from each side.
- Shadow: 0 30px 60px -20px rgba(0,0,0,0.55).

Content, padding 28px, text #ffffff: a 13px/600 uppercase label "[label]"; a 64px/600 value "[value]" with tabular figures and a 20px unit; a row of seven bars 10px wide for the week, today's bar solid white and the rest at 35% white; two lines of 15px/500 detail. Behind the two lines, a second tint of rgba(0,0,0,0.18) with a 16px radius so they stay readable.

Interaction: the card tilts up to 4 degrees toward the pointer and the top highlight shifts 12px with it, eased over 0.3s. On touch devices, no tilt.

Fallback: where backdrop-filter is unsupported, use a solid rgba(28,32,48,0.92) fill. With prefers-reduced-motion, the colour fields stop and the tilt is off. With prefers-reduced-transparency, use the solid fill.

Phones: the card is the viewport width minus 32px, the same height.

Run it and check that all text passes 4.5:1 contrast when each colour field is behind it, at 390px and 1440px.

Written for this page as a starting point; swap the parts in [brackets] for your own. The full prompt of each uberdesigner template is longer and specific to one finished design, and it is tested by rebuilding the template from the prompt alone.

Glass UI to start from

Finished glass interfaces on uberdesigner: frosted widgets, cards in a beam of light, fluted glass, a lens switch and a glass menu. Five of these are free.

Questions and answers

Is glass UI slow?

Blurring what is behind an element costs more than a flat fill, and the cost grows with the size and number of panes. Keep glass to a few elements, avoid stacking one pane over another, and test on a mid-range phone.

What is the difference between frosted and liquid glass?

Frosted glass blurs what is behind it. Liquid glass refracts it: the backdrop appears bent or magnified near the edges, like a lens. The second needs a displacement filter or a shader, so ask for a frosted fallback.

Keep reading

Who makes this site

Best Design Prompts is written and run by the ubernatural team, the designers who make uberdesigner. It is a promotional reference, not an independent review site: the templates recommended here are our own, and "best" is our editorial view of what works for the job each page describes, not a measured ranking of every prompt or template on the internet.

Cite this page: Best Design Prompts, “Glass UI prompts”. Reviewed 11 November 2026. https://bestdesignprompts.com/glass-ui-prompts/