Frost
How frosted the glass is, from 1 (clear, only the rim and reflections) to 5 (milky). The kit's default is 3; this site runs at 1. Try the slider in the navbar.
| Name | Type | What it does |
|---|---|---|
frost-1 | modifier | Clear glass: no blur, no fill, edge reflections |
frost-2 | modifier | Barely frosted |
frost-3 | modifier | The default |
frost-4 | modifier | Heavy: what is behind disappears |
frost-5 | modifier | Milky and nearly opaque |
--frost-min | modifier | CSS variable: a floor for everything inside. Popovers and toasts set it to 3 so floating text stays readable |
The level inherits. Put it on <html> for the whole app or on one surface. Any number works too: style="--frost: 2.5".
The five levels
Clear
Light
Default
Heavy
Milky
<div class="card frost-1"><span class="meta">frost-1</span>Clear</div>
<div class="card frost-2"><span class="meta">frost-2</span>Light</div>
<div class="card frost-3"><span class="meta">frost-3</span>Default</div>
<div class="card frost-4"><span class="meta">frost-4</span>Heavy</div>
<div class="card frost-5"><span class="meta">frost-5</span>Milky</div>