Moey Icons
No results. Try “dialog”, “dark” or “grid”.
Helpers

Frosted glass

Bars that float over the page (the app header, the tab bar, sticky form buttons) are slightly see-through by default, with no blur, so scrolling stays light even on older phones. Add .frosted where you want the frosted-glass look: the page shows through, softly blurred.

Default: slightly see-through
HomeSearchProfile
.frosted
HomeSearchProfile
<nav class="tabbar frosted" aria-label="Main">…</nav>
<header class="app-topbar frosted">…</header>
<div class="form-actions form-actions-sticky frosted">…</div>

How it works

  • The setting: --mo-glass is how solid those bars are, 97% by default. Set it on :root to change them all, for example --mo-glass: 100% for fully solid bars.
  • .frosted lowers it to 78% and blurs the page behind. It works on any element with a background; for your own, use color-mix(in oklab, your color var(--mo-glass), transparent) so it follows the setting.
  • The navbar has its own: .navbar-blur.
  • Why not by default: the browser redraws a blur every time the page moves behind it. That's fine on a laptop but costs battery and smoothness on older phones, so it's your choice where it's worth it.

Reference

Class / variableWhat it does
.frostedFrosted glass: more see-through (78%), with the page blurred behind
--mo-glassHow solid floating bars are: 97% by default (app header, tab bar, sticky form buttons, chat day labels)