{"inline_daily":{"glassmorphism-css-generator":{"blur":"Blur (backdrop-filter)","transparency":"Background opacity","saturation":"Saturation","border_opacity":"Border opacity","corner_radius":"Corner radius","glass_color":"Glass colour","drop_shadow":"Drop shadow","preview_background":"Preview background","bg_aurora":"Aurora","bg_ocean":"Ocean","bg_forest":"Forest","bg_night":"Night","preview_title":"Glass card","preview_text":"The background shows softly through the blur.","copy_code":"Copy","accessibility_title":"Accessibility: text contrast on glass","accessibility_text":"Estimate on the chosen background: white text {{white}}:1, dark text {{dark}}:1. WCAG requires at least 4.5:1 for body text and 3:1 for large text.","accessibility_tip":"Real contrast varies with the image behind the glass: raise the background opacity or blur if text is hard to read, and test with your real backdrop.","source_note":"WCAG 2.2 (W3C Recommendation of 5 October 2023): 4.5:1 for text, 3:1 for large text. backdrop-filter: Chrome 76, Edge 79, Firefox 103, Safari 18 unprefixed (-webkit- before). Checked on 14/10/2026."}},"docs_daily":{"tools":{"glassmorphism-css-generator":{"content":{"title":"The glassmorphism effect in CSS","intro":"Glassmorphism combines a semi-transparent background, a blur of what lies behind with backdrop-filter: blur(), and a thin light border. A common setup: 10 to 20 px blur, white background at 15-30% opacity, 120 to 180% saturation. Add -webkit-backdrop-filter for Safari.","details":"

The properties

Example

A card with 25% white opacity and a 16 px blur over a purple-pink gradient keeps white text legible if the background is dark enough; on a light background, switch to dark text or raise the opacity.

Accessibility and limits

Contrast depends on what passes behind the glass: aim for 4.5:1 for body text and 3:1 for large text and interface components. The tool estimates this contrast from an average background colour, not pixel by pixel. backdrop-filter is costly on modest devices: avoid applying it to large areas and provide an opaque fallback background.

Sources and dates: WCAG 2.2, W3C Recommendation published on 5 October 2023 (consolidated version of 12 December 2024 checked): success criterion 1.4.3 (level AA), contrast of at least 4.5:1 for text, 3:1 for large text (18 point, or 14 point bold); criterion 1.4.11, 3:1 for interface components. backdrop-filter support: Chrome 76, Edge 79, Firefox 103, Safari 9 with the -webkit- prefix and unprefixed since Safari 18; MDN rates it \"Baseline 2024, newly available\" since September 2024. Version numbers come from web.dev and should be cross-checked with MDN and caniuse (checked on 14/10/2026)

"},"faqs":[{"question":"How do I create a glassmorphism effect in CSS?","answer":"Combine a semi-transparent background (rgba(255,255,255,0.25)), backdrop-filter: blur(16px) and a 1 px border at 30% opacity. Without a coloured background or image behind the element, the effect stays invisible."},{"question":"Why does backdrop-filter not work on Safari?","answer":"Older Safari versions require the -webkit-backdrop-filter prefix. The generator outputs both declarations; the element also needs a partly transparent background for the blur to show."},{"question":"Is glassmorphism accessible?","answer":"Only if text contrast reaches 4.5:1 (WCAG) whatever the backdrop. Raise the background opacity or blur, and test with the real backdrop."}]}}}}