Accessible Glassmorphism
Glassmorphism accessibility in React: WCAG contrast on glass, prefers-reduced-transparency, prefers-contrast, forced colors and reduced motion, with code.
By Lokendra Singh Rathore (GitHub, opens in a new tab)About the authorPublished Updated 6 min read




Glassmorphism accessibility comes down to two things: text keeps its contrast over the worst point of the backdrop, and the glass turns solid for people who ask for less transparency, more contrast or forced colors. Both are testable, and neither needs you to give up the look. This guide shows how we measure and how we respond, with code we ran against SheenUI's own docs pages.
SheenUI is our library, and where we cite numbers about it they come from its source or from scripts we ran on 8 Nov 2026. See the Glass card page for the surfaces we tested.
Basis: WCAG 2.2 and the Nielsen Norman Group review as linked, plus the measurement scripts shown in this guide, which the text says were run against SheenUI's own docs pages on 8 Nov 2026. First published 8 Nov 2026, last revised 12 Nov 2026; a revision date marks an edit of the text, not a new measurement run.
Why glass UI fails real users
Nielsen Norman Group's review of the style says that if overused, glassmorphism can pose significant accessibility and usability challenges (opens in a new tab). Its recommendations are to meet contrast requirements across every background area, to use more blur over intricate backgrounds, and to let users control contrast or transparency where feasible. It gives no contrast numbers, so we use WCAG's.
Three things go wrong in practice:
- The background moves under the text. Contrast is a property of a text and background pair. On glass the background is different at every pixel and can change while an animation plays.
- Edges disappear. WCAG 1.4.11 asks for 3:1 contrast for UI component boundaries (opens in a new tab). A white 1px border on a light backdrop does not make it.
- Some people cannot read through translucency at all. That is a setting at the OS level, and your CSS can listen to it.
Measuring contrast on glass
WCAG 2's text contrast minimum (opens in a new tab) is 4.5:1 for normal text and 3:1 for large text. To check it on glass, measure the worst pixel behind the text, not an average and not the CSS color.
First, do not rely on an automated checker alone. We ran axe-core 4.14.0 on the Glass card docs page. It reported 0 violations, but marked color-contrast as "needs review" on 208 nodes, because it cannot compute a ratio over gradients and backdrops:
So sample the pixels instead. This script hides an element's text, screenshots what is left (backdrop, tint and blur) and returns the lowest contrast ratio between the text color and any pixel:
On the Glass card docs page this printed 8.85:1 in light and 11.62:1 in dark for the muted description text. That is one element on one page at 1280 px, not a guarantee for every position of an animated backdrop. Take samples at several scroll positions and over the brightest and darkest part of your background.
SheenUI's token file documents the stricter version of this. Measured over its brightest backdrop blob, muted text reached 5.2:1 (light) bare and 6.7:1 on level-2 glass, and a control's 1px edge reached 3.1:1 in light and 3.6:1 in dark. The same notes record that its plain light-theme red and green status colors reach only about 2.1 and 1.5 against that backdrop as a control edge, so they are not used for borders. A measurement caught what looking would not.
Dark mode needs its own tint, not an inverted one. SheenUI's glass stylesheet records why: over the brightest part of a dark backdrop, a white frost lifted the background so far that status, accent and caption text on small glass dropped to about 3.3:1. The fix was a smoked tint, a dark translucent fill that darkens bright spots instead of lightening dark ones. If your dark theme uses white at low opacity, run the sampling script above in dark mode before you ship. SheenUI's dark mode docs show how the theme switch works, and the Tailwind CSS v4 setup shows how the glass tokens reach your classes.
prefers-reduced-transparency, and an in-app toggle
prefers-reduced-transparency: reduce is the direct signal. It is experimental: Chrome and Edge 118 support it, Firefox only behind a flag from version 113, and Safari does not (MDN browser-compat-data 8.1.8 (opens in a new tab), 2 Nov 2026). Users enable the OS setting under Settings > Personalization > Colors > Transparency effects on Windows, System Settings > Accessibility > Display > Reduce transparency on macOS, and Accessibility > Display & Text Size > Reduce Transparency on iOS.
Because Safari cannot read it, add your own switch and mirror the rule under an attribute. In SheenUI, useReducedTransparency sets data-transparency="reduced" on <html> and stores it:
The CSS for all the preferences in one place, in plain CSS you can adapt:
prefers-contrast: more
prefers-contrast is widely supported: Chrome 96, Firefox 101, Safari 14.1 (MDN (opens in a new tab)). more means the person wants stronger contrast, so replace the tint with a solid surface and give edges a full-contrast border, as above.
forced-colors (Windows High Contrast)
In forced colors mode the browser replaces your colors with a system palette and, per MDN (opens in a new tab), forces box-shadow and text-shadow to none and removes non-URL background-image. Glass built from shadows and gradients loses its edge. The fix is a real border in system colors (Canvas, CanvasText), as in the last rule above. Support: Chrome 89, Firefox 89, Safari 16.
Reduced motion for glass effects
Glass is often paired with moving backdrops, shimmer sweeps and pointer highlights. prefers-reduced-motion has been supported since Chrome 74, Firefox 63 and Safari 10.1. Stop ambient loops, drop parallax, and keep short fades. With Motion, MotionConfig reducedMotion="user" disables transform animations; see Framer Motion examples for the pattern, and offer an in-app toggle as well.
Focus rings and touch targets on glass
Focus indicators must survive translucency and forced colors. Use outline, not a box-shadow ring: shadows vanish in forced colors mode. Check the ring against the glass and the backdrop, not just the page (WCAG asks 3:1 for non-text contrast). Targets should be at least 24 by 24 CSS px under WCAG 2.2's target size minimum (opens in a new tab); SheenUI grows controls to 44 px on touch screens.
Checklist, and testing with axe and Playwright
- Text is 4.5:1 (3:1 if large) over the worst backdrop sample, measured from pixels.
- Control edges and focus rings reach 3:1.
- Glass becomes solid under reduced transparency, more contrast and forced colors, and in your in-app toggle.
- Motion stops under
prefers-reduced-motion. - Nothing depends on a shadow to be visible.
Automate the preference checks. Chromium can emulate the media features through the DevTools protocol. We ran this against the real SheenUI CSS and it printed what the comments say:
In Chrome 156 the three lines were a blur(20px) saturate(1.9) brightness(1.05) backdrop filter, then none, then none. Under prefers-contrast: more the same surface kept its blur declared but gained an opaque background and a dark border, which has the same effect.
When not to use glass
If your audience includes many low-vision users, or the screen is dense with text, use solid surfaces by default and glass only as a decorative frame. Glass also needs a vivid, controlled background; over user-uploaded images you cannot guarantee any contrast. See Liquid Glass in CSS and React for the most contrast-hostile variant, and the tutorial for the base recipe.