Task path / input to outcome
How to build a glassmorphism panel
- 01
Choose the glass tint
Pick a Glass tint color. The preview floats the panel over two colored orbs, so the material is judged against a busy background the way it will be on a real screen. Opacity · Background · Card / Button / Circle
- 02
Set opacity and blur
Surface opacity runs from 0.05 to 0.8 — lower means more transparent — and Backdrop blur from 0 to 40 px softens whatever sits behind the panel.
- 03
Tune saturation, border, and radius
Saturation (50–200%) enriches or mutes the backdrop, Border opacity (0–0.8) traces the edge in the tint color, and Corner radius (0–48 px) rounds the panel.
- 04
Balance the material
The surface controls trade off against each other: low opacity needs more blur to read as glass, and Saturation above 100% keeps a busy backdrop from washing out behind a pale tint. The default material — white tint at 0.22 opacity, 18 px blur, 140% saturation — is a proven middle.
- 05
Copy the panel CSS
Press Copy CSS or Download .css to save toolars-glass-panel.css. The .glass-panel rule combines an rgba background, backdrop-filter with its -webkit- twin, a 1 px tint border, and a soft shadow.
- 06
Plan the fallback
If backdrop-filter is unavailable, the rgba background, border, and shadow still render. Setting Backdrop blur to zero is only a rough visual check because the saturation filter may still apply. Test the CSS in target browsers and raise Surface opacity if text needs more contrast. HTML includes the current CSS and a working example. Native controls support keyboard input.