Phone layer
For apps that live at the bottom of a phone, in one hand: a dock for what's done most, bars clear of the home gesture, and targets a thumb can hit.
alpha The class names and states here are stable. The look is not: these styles can change in a minor release, without a major version bump.
| Class | Does what |
|---|---|
dock | Fixed to the bottom, with the safe area; content scrolls above it |
dock-space | Room under page content for the dock (reads --dock-h) |
bottom-bars | Short-lived bars, 28px clear of the home gesture |
tap | An invisible hit area that reaches --tap (44px) around a small control |
icon-btn | A glyph button (×, ≡) at least 44 by 44 |
Dock
Shown in place here; on a page, .dock is fixed to the bottom.
<div class="dock" style="position: static">
<div class="flex" style="gap: var(--space-sm)">
<button class="btn btn-secondary">Shuffle</button>
<button class="btn btn-secondary">Discard</button>
<span style="flex: 1"></span>
<button class="btn">Play</button>
</div>
</div>
Status badges
<p class="flex" style="gap: var(--space-sm)">
<span class="badge">web</span>
<span class="badge badge-success">active</span>
<span class="badge badge-warning">restarting</span>
<span class="badge badge-error">failed</span>
</p>