Six frosted-glass navigation bars: a floating pill over colourful shapes, a light frosted bar, a sticky header that blurs content scrolling beneath, a brand-tinted bar, a mobile bottom tab bar and a dark bar with a glass search field.
A pill-shaped navbar floating over colourful shapes, made from bg-slate-950/55, backdrop-blur-xl and a thin white ring. The dark tint is strong enough that white links stay readable over the bright shapes behind.
A bright frosted bar for light pages: bg-white/70 with backdrop-blur-lg and a faint shadow, with dark slate links. The blur softens the warm shapes behind into a glow while the text keeps full contrast.
Scroll the panel and the colourful content blurs as it passes under a sticky glass header. sticky top-0 keeps the header in place and backdrop-blur-md with backdrop-saturate-150 gives it the frosted look.
Glass with a colour: bg-indigo-500/25 and an indigo ring give the bar a violet tint that matches the brand, while the current page gets a brighter pill. Light indigo text keeps contrast on the dark scene.
A mobile tab bar floating at the bottom of the screen on frosted glass. It is absolutely positioned inside the app frame here; in a real app use fixed bottom-0 with padding for the device's safe area.
A dark glass bar holding a logo and a glass search field that brightens on focus. The field has a proper accessible name, and its placeholder is light enough to read on the tinted glass.
A translucent background such as bg-white/70 or bg-slate-950/55, backdrop-blur-lg and a thin ring like ring-1 ring-white/20.
Tint for contrast
Glass is only readable if its tint is strong enough: dark glass with white text, or light glass with dark text. Check over the brightest part of the background.
Sticky glass
sticky top-0 with backdrop-blur-md blurs the page as it scrolls underneath; add backdrop-saturate-150 for richer colour.
Mark the current page
Use aria-current="page" and a brighter pill, so the active link is clear in both looks and markup.
Frequently asked questions
Does backdrop-blur work everywhere?
Yes, in all current browsers. Without it the tints alone keep the text readable.
Is blur slow?
A navbar-sized blur is cheap; avoid blurring very large areas.