Application
Application primitives
Components
The few shapes an application window is made of, as opposed to a document: a floating panel, a list of rows, a row, a hairline between groups. They were born in the macOS theme (Reveal’s sidebar) and lived there, so an app on any other theme got them by accident, through the global theme bundle. They belong to the framework: every value below is an existing token (styles README, roles §4, “Sidebar that floats” = .panel).
| Name | Description | Value |
|---|---|---|
--panel-inset |
Gap between the window edge and a floating panel (var(--window-inset, 8px)). |
var(--window-inset, 8px) |
--panel-padding |
Base inner padding for panel contents (var(--panel-inset)). |
var(--panel-inset) |
--panel-radius |
Concentric inner radius for floating panels (calc(var(--window-radius, 17px) - var(--panel-inset))). |
calc(var(--window-radius, 17px) - var(--panel-inset)) |
--panel-edge |
Hairline that outlines a panel — an inset ring in --color-highlight, so it follows light/dark with the theme and never takes up layout space. |
inset 0 0 0 1px var(--color-border) |
<nav class="panel">
<ul class="list">
<li><a class="item" href="#overview" aria-current="page">Overview</a></li>
<li><a class="item" href="#map">Network Map</a></li>
</ul>
<hr class="divider" />
</nav>
Live
Window Chrome & Application Tokens
Application window geometry, titlebar metrics, and side panel responsive insets.
| Name | Description | Value |
|---|---|---|
--window-radius |
The OS window’s corner radius (17px on macOS). |
17px |
--window-inset |
Gap between the window edge and a floating panel (8px). |
8px |
--titlebar-height |
Title-bar band height centered on window traffic lights (41.5px). |
41.5px |
--panel-width |
Default width of application floating side panels (var(--space-10, 20rem)). |
var(--space-10, 20rem) |
--panel-left-width |
Dynamic horizontal left page inset when a left panel is open (0px). |
0px |
--panel-right-width |
Dynamic horizontal right page inset when a right panel or workshop is open (0px). |
0px |
All classes
Other
| Class | Declares |
|---|---|
.panel |
--panel-inset: var(--window-inset, 8px) |
.panel[data-position="left"], .panel[data-position="right"] |
position: fixed |
.panel[data-position="left"] |
left: calc(var(--window-inset, 8px) + env(safe-area-inset-left, 0px)) |
.panel[data-position="right"] |
right: calc(var(--window-inset, 8px) + env(safe-area-inset-right, 0px)) |
.panel[data-position="top-center"], .panel[data-position="bottom-center"] |
position: fixed |
.panel[data-position="top-center"] |
top: var(--panel-top) |
.panel[data-position="bottom-center"] |
bottom: calc(var(--window-inset, 8px) + env(safe-area-inset-bottom, 0px)) |
.panel-head |
display: flex |
.panel-brand |
flex: 1 |
.panel-scroll |
flex: 1 1 auto |
.list |
display: flex |
.list.divided > :not(:last-child) |
box-shadow: var(--shadow-border-bottom) |
.item |
display: flex |
.divider |
flex-shrink: 0 |
.panel-group, .sb-group, :is(h1, h2, h3, h4, h5, h6).panel-group, :is(h1, h2, h3, h4, h5, h6).sb-group |
margin: var(--space-d3) 0 var(--space-d6) |
.panel-group-block + .panel-group-block, .sb-group-block + .sb-group-block |
margin-top: var(--space-d4) |
.panel-label, .sb-label |
flex: 1 |
.panel-count, .sb-count |
flex-shrink: 0 |