Keep the idea.
Refine the surface.
Clear text, a translucent fill, and a backdrop you can inspect.
04 / INTEGRATION
Adjust a material and inspect its CSS alongside the complete Tailwind class strings. No Tailwind runtime is loaded in this lesson.
INTERACTIVE EXAMPLE
Material controls affect only this example. They do not replace your saved studio session.
Clear text, a translucent fill, and a backdrop you can inspect.
Change a control to inspect the example.
.glass {
color: #ffffff;
background: #34333f;
border: 1px solid rgba(255, 255, 255, 0.25);
border-radius: 24px;
box-shadow: 0 14px 40px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
.glass {
background: rgba(255, 255, 255, 0.16);
-webkit-backdrop-filter: blur(18px) saturate(140%);
backdrop-filter: blur(18px) saturate(140%);
}
}
@media (prefers-reduced-transparency: reduce) {
.glass {
background: #34333f;
-webkit-backdrop-filter: none;
backdrop-filter: none;
}
}Complete class strings for your compiler. This preview uses the equivalent CSS material, not a Tailwind runtime.
<!-- Paste the complete classes into a template scanned by Tailwind. -->
<div class="
[background:#34333f] [color:#ffffff]
[border:1px_solid_rgba(255,_255,_255,_0.25)]
[border-radius:24px]
[box-shadow:0_14px_40px_rgba(0,_0,_0,_0.2),_inset_0_1px_0_rgba(255,_255,_255,_0.12)]
supports-[backdrop-filter:blur(1px)]:[background:rgba(255,_255,_255,_0.16)]
supports-[-webkit-backdrop-filter:blur(1px)]:[background:rgba(255,_255,_255,_0.16)]
[backdrop-filter:blur(18px)_saturate(140%)]
[-webkit-backdrop-filter:blur(18px)_saturate(140%)]
[@media(prefers-reduced-transparency:reduce)]:[background:#34333f]
[@media(prefers-reduced-transparency:reduce)]:[backdrop-filter:none]
[@media(prefers-reduced-transparency:reduce)]:[-webkit-backdrop-filter:none]
">
<!-- Your content -->
</div>If the material uses a 17 px blur, choosing a vaguely similar named utility changes the result. This export uses complete arbitrary-property classes to keep the material values intact. Adjust the example and compare the numbers in the CSS and HTML output.
The live sample uses the shared CSS material engine. It is not executing Tailwind in your browser. Tailwind output is intended for your project’s compiler; the exporter has been compiled and checked with Tailwind 4.3.3.
Tailwind detects class candidates in source text. A class assembled from fragments at runtime may never appear as a complete candidate, so the compiler cannot generate its CSS. The exported HTML avoids that ambiguity by writing each full class name explicitly.
If a material needs to change continuously in your application, consider stable classes backed by CSS custom properties rather than trying to compile a new class for every slider value in the browser. Keep the styling strategy aligned with your framework and build setup.
The snippet includes an opaque background, feature-detection variants for supported filters, and variants for reduced transparency. Copying only the decorative filter classes discards those states. Test the full exported material, including its text color and opaque alternative.
If the result differs, inspect computed styles before adjusting the generator. Existing background, border, filter, or shadow declarations may compete with the export. Confirm the class strings reached the compiled stylesheet and that the browser sees detail behind the translucent surface.
The simplest debugging comparison is the standalone CSS output applied to the same element over the same backdrop. If that matches the intended material, investigate build detection and conflicting styles rather than changing the material itself.