Layout and spacing
Last updated: 2026-11-27T01:30:24-03:00 (UTC-3)
Spacing, sizes, corner radius, glass, the background field and breakpoints, and the layouts of the console and the site that use them. Part of the design system.
Spacing
Section titled “Spacing”A 4px grid, with one half step for hairline gaps.
| Token | Value |
|---|---|
--space-0-5 |
2px |
--space-0-75 |
3px |
--space-1 |
4px |
--space-2 |
8px |
--space-3 |
12px |
--space-4 |
16px |
--space-5 |
20px |
--space-6 |
24px |
--space-8 |
32px |
--space-10 |
40px |
--space-12 |
48px |
- Gaps inside a control (icon to label):
--space-2. - Gaps between controls in a row or grid:
--space-3. - Padding inside cards and panels:
--space-5to--space-6. - Space between sections of a page:
--space-8to--space-10. --space-0-75(3px) is only the inset of the gloss on a slab button.
Fixed sizes of the few controls that must not change shape.
| Token | Value |
|---|---|
--size-control |
48px |
--size-control-slab |
54px |
--size-tap-target |
44px |
--size-launcher |
60px |
--size-bot-launcher |
36px |
--size-bot-rail |
22px |
--size-icon |
18px |
--size-rail-width |
204px |
--size-nav-height |
60px |
--size-edge-width |
1px |
--size-rim-width |
1.5px |
--size-ribbon-width |
26px |
--size-ribbon-sheen-width |
2.5px |
| Token | Where |
|---|---|
--size-tap-target |
The least height of anything a reader presses: buttons, fields in forms, tabs, rail items, menu choices, the theme switch and the avatar. |
--size-rail-width |
The console’s navigation rail. |
--size-nav-height |
The least height of the console’s top bar. |
--size-bot-rail |
The live m7 in the rail. |
--size-launcher |
The m7 ai launcher, a round slab. |
--size-bot-launcher |
The live m7 inside the launcher. |
--size-control / --size-control-slab |
The m7 ai send button: width and height. --size-control is also the height of the filter panel’s header and of an input with an icon; --size-control-slab the least height of the gateway menu button. |
--size-icon |
The icon inside a slab button. |
--size-edge-width |
The gradient edge of clear liquid glass. |
--size-rim-width |
The rim light. |
--size-ribbon-width / --size-ribbon-sheen-width |
A ribbon of the background field and the bright line on it. |
Older console screens in web/src/style.css keep literal pixel values (many of them, such as 18px and 22px, sit between two steps). New components use the tokens.
Corner radius
Section titled “Corner radius”| Token | Value |
|---|---|
--radius-bar |
3px |
--radius-sm |
8px |
--radius-md |
9px |
--radius-halo |
12px |
--radius-item |
14px |
--radius-lg |
1rem |
--radius-field |
16px |
--radius-xl |
17px |
--radius-bubble |
20px |
--radius-glass-compact |
22px |
--radius-frame |
24px |
--radius-glass |
28px |
--radius-panel |
32px |
--radius-slab |
34px |
--radius-pill |
999px |
| Element | Radius |
|---|---|
| Buttons, tabs and tab rows, the console’s top bar, the site’s header | --radius-pill |
| The login card | --radius-panel |
| The stats panel, drawers and editors; the site’s cards | --radius-glass |
| Console panels and the rail; the site’s asides | --radius-frame |
| Fields, menus, panels nested in a panel, the site’s code blocks | --radius-field |
| Rail items; the current page in the site’s sidebar | --radius-item |
| Choices inside a menu; the halo behind text on the open background | --radius-halo |
A nested element uses a smaller radius than its container, so the inner curve follows the outer one. The remaining steps are declared for other surfaces of the system and for older screens.
Elevation and glass
Section titled “Elevation and glass”The system has no stack of drop shadows. Depth comes from glass over a quiet field of light. A glass surface is built in this order, bottom to top: the background field, the fill, blur with saturation, the edge, the inner light, the rim light (on three surfaces only) and the drop.
| Surface | Fill | Blur and saturation | Edge and light |
|---|---|---|---|
| Panel (solid tint) | --color-glass |
--blur-panel, --saturate-panel-solid |
--shadow-panel-solid |
| The console’s top bar | --color-glass-tint-clear |
--blur-glass-clear, --saturate-glass |
--shadow-glass, plus a gradient edge one --size-edge-width wide |
| The console’s tab rows | --color-glass-tint-clear |
--blur-glass-clear, --saturate-glass |
--shadow-glass alone |
| The site’s header | --color-glass-tint-clear |
--blur-nav, --saturate-glass |
--shadow-glass, plus the gradient edge |
| Drawers and editors | --color-glass |
--blur-panel, --saturate-glass |
--shadow-glass |
| The rail | --color-console-bg |
--blur-panel, --saturate-panel-solid |
--shadow-frame |
The gradient edge runs at 140° from --color-specular-strong through --color-edge-cyan and --color-specular-soft to --color-edge-blue; in the console the top bar and the m7 ai panel carry it. See Cards for how panels use these layers.
| Token | Value |
|---|---|
--blur-glass |
12px |
--blur-glass-clear |
5px |
--blur-panel |
16px |
--blur-nav |
16px |
--blur-ribbon |
30px |
--blur-ribbon-sheen |
2px |
--blur-ray |
9px |
--blur-panel is behind panels, the rail, drawers and editors; --blur-glass-clear behind the console’s top bar and tab rows; --blur-nav behind the site’s header; --blur-ribbon, --blur-ribbon-sheen and --blur-ray soften the shapes of the background field.
Saturation always pairs with a blur on the same layer:
| Token | Value |
|---|---|
--saturate-glass |
190% |
--saturate-panel |
180% |
--saturate-panel-solid |
170% |
Background field
Section titled “Background field”Behind everything sits a field of soft light. It is decorative, hidden from assistive technology, never takes a click and never moves.
| Shape | What it is | Tokens |
|---|---|---|
| Blob | A wide, diffuse disc of color | --color-field-cyan, --color-field-blue, --opacity-blob |
| Ribbon | A long arc of light, --size-ribbon-width thick and heavily blurred, with a thin bright line along it |
--color-brand-strong, --color-brand-blue, --blur-ribbon, --opacity-ribbon; the line: --color-ribbon-sheen, --size-ribbon-sheen-width, --blur-ribbon-sheen, --opacity-ribbon-sheen |
| Edge ray | A narrow beam fanning from the left edge | --color-ray-1, --color-ray-2, --color-ray-3, --blur-ray, --opacity-ray |
- Console, signed in: two blobs and two ribbons behind the shell (
BackgroundFieldinweb/src/BackgroundField.tsx; the geometry of each shape is inweb/src/theme.css). - Console, entry screens (sign-in, the second-factor step and the boot screen): the same blobs and ribbons, plus five edge rays.
- Site: two blobs and one ribbon, drawn on the page body in
rgfem.css. - At 760px and below the console draws every shape at half size; the site halves its ribbon below 50em.
A page title’s eyebrow and lead sit on the open background, so they carry a soft dark halo (--color-text-halo, --shadow-text-halo) that keeps their contrast when a ribbon passes behind; the halo is clear in the light theme.
The field is fainter in the light theme, so its opacities carry one value per theme:
| Token | Dark | Light |
|---|---|---|
--opacity-blob |
0.36 |
0.37 |
--opacity-ribbon |
0.51 |
0.25 |
--opacity-ribbon-sheen |
0.36 |
0.36 |
--opacity-ray |
0.5 |
0.8 |
Shadows
Section titled “Shadows”A shadow token is a whole stack: the edge, the inner light and the drop of one kind of surface.
| Token | Value |
|---|---|
--shadow-glass |
inset 0 0 0 0.5px var(--color-specular-soft), inset 0.6px 1px 0.7px -0.25px var(--color-specular-strong), inset -0.6px -0.9px 0.6px -0.3px var(--color-specular-low), inset 0 -6px 10px -8px var(--color-glass-shade), 0 0.5px 1px #00000033, 0 18px 44px -22px var(--color-glass-drop) |
--shadow-panel |
inset 0 0 0 1px var(--color-glass-edge), inset 0 1px 0 0 var(--color-specular-strong), inset 0 -24px 40px -30px var(--color-edge-blue), 0 40px 90px -50px #000000cc |
--shadow-panel-solid |
inset 0 0 0 1px var(--color-glass-edge), inset 0 1px 0 0 var(--color-specular-strong), 0 40px 90px -50px #000000cc |
--shadow-frame |
0 0 0 0.5px var(--color-console-ring), 0 30px 70px -40px #000000cc |
--shadow-menu |
inset 0 0 0 1px var(--color-line-strong), 0 24px 48px -24px #000000cc |
--shadow-button-primary |
inset 0 0.5px 0 0.5px var(--color-primary-fill-lip), inset 0 -6px 10px -7px var(--color-primary-fill-shade), 0 12px 28px -14px var(--color-brand-strong-ab3) |
--shadow-hairline |
inset 0 0 0 0.5px var(--color-line-strong) |
--shadow-text-halo |
0 0 16px 12px var(--color-text-halo) |
--shadow-focus |
0 0 0 3px var(--color-primary-a4d) |
--shadow-glow-mark |
drop-shadow(0 0 5px var(--color-primary-aa6)) |
--shadow-slab-cyan |
inset 0 1.5px 1px #ffffffb8, inset 0 0 0 1px #ffffff33, inset 0 0 0 5px #ffffff12, inset 0 -3px 4px -1px var(--color-brand-strong), inset 0 -16px 18px -12px var(--color-brand-strong), 0 16px 26px -10px var(--color-brand-strong), 0 4px 8px #00000073 |
--shadow-slab-blue |
inset 0 1.5px 1px #ffffffb8, inset 0 0 0 1px #ffffff33, inset 0 0 0 5px #ffffff12, inset 0 -3px 4px -1px var(--color-brand-blue), inset 0 -16px 18px -12px var(--color-brand-blue), 0 16px 26px -10px var(--color-brand-blue), 0 4px 8px #00000073 |
--shadow-highlight-soft |
inset 0 1px 0 var(--color-glass-highlight-soft) |
| Token | Where |
|---|---|
--shadow-glass |
Clear liquid glass: the inner light and the drop of the top bar, tab rows, secondary buttons, drawers and editors, and of the site’s header and secondary link button. |
--shadow-panel-solid |
Every panel and card in the console, and the site’s cards and asides: a one-pixel edge, a lit top line and a deep drop. |
--shadow-frame |
The rail: a half-pixel ring and a drop. |
--shadow-menu |
Menus: the gateway menu, the theme menu, a row’s Manage menu. |
--shadow-button-primary |
Primary buttons: a lit top lip, a shade inside the foot and a soft cyan drop. |
--shadow-hairline |
A half-pixel ring: the selected tab, a panel nested in a panel, the avatar, the current page in the site’s sidebar. |
--shadow-text-halo |
The halo behind an eyebrow or a lead on the open background. |
--shadow-focus |
A ring for controls that cannot use an outline. |
--shadow-slab-blue |
The m7 ai launcher: a top lip, inner rings and the blue glow ring below it. |
--shadow-slab-cyan |
The m7 ai send button: the same slab with the cyan glow. |
Under prefers-reduced-transparency: reduce the blur tokens become 0px and glass turns opaque (see Color): panels and clear glass fill with --color-bg-deep and the rail with --color-slab-deep. The console removes backdrop-filter from every glass surface and drops the gradient edges and the rim light; the top bar, the tab rows and the glass buttons take a plain 1px --color-line-strong edge. The site drops the blur of its header, cards and asides and the header’s gradient edge.
Breakpoints
Section titled “Breakpoints”| Token | Value |
|---|---|
--breakpoint-phone |
390px |
--breakpoint-narrow |
600px |
--breakpoint-tablet |
768px |
--breakpoint-compact |
900px |
--breakpoint-wide |
1200px |
--breakpoint-desktop |
1440px |
--breakpoint-site-nav |
50em |
--breakpoint-site-wide |
72rem |
CSS media queries cannot read custom properties, so these tokens are the documented contract rather than values a query consumes. They are still declared as custom properties, so a script can read them with getComputedStyle(document.documentElement).getPropertyValue("--breakpoint-tablet").
- phone (390px) and desktop (1440px) are the two widths every console change is checked at, with screenshots.
- narrow, tablet, compact and wide are the steps new console components should use. Existing console media queries use several in-between values (520px height, 570, 700, 850, 1100 and 1150px) that stay as they are.
- site-nav and site-wide are Starlight’s own steps: above 50em the header grows and headings step up; above 72rem the table of contents moves beside the content.
Console layout
Section titled “Console layout”- A floating rail,
--size-rail-width(204px) wide and 16px clear of the window edge, beside the content; at 850px and below it becomes a drawer, flush with the edge, opened by the Open navigation button in the top bar, and leaves the keyboard order while closed. - A sticky top bar, a floating pill at least
--size-nav-height(60px) tall, 16px from the top, with breadcrumbs,!panic, the gateway status, the theme switch and the user’s avatar. At 570px and below the gateway status leaves the bar; the rail still shows it. - Content in a single column, with 32px side gutters (16px at 850px and below): page heading, tabs, filters, then panels. The stats panel drops from four columns to two at 1150px and below.
- Everything a reader presses is at least
--size-tap-target(44px) tall at every width. - Wide tables scroll inside their panel rather than squeezing columns (see Tables).
Site layout
Section titled “Site layout”The site uses Starlight’s layout with one change: the header floats as a glass pill, 3.75rem tall, 0.75rem from the top and 1rem from each side, and the layout reserves 5.25rem for it. Behind the pill an opaque band in the page color, as wide as the window and fading at its foot, hides the text that scrolls under it; on a phone the “On this page” bar is opaque too. The sidebar and the table of contents sit on the open page with no fill and no rule; the table of contents moves beside the content from 72rem.