Searching Puzzle Pieces

Type to search Puzzle Pieces.

Shell

The frame / rail / panel composition, drawn in the scheme and mode you are currently using — Default · Dark. The numbered pills name the role token behind each surface.

PiecesSearch
Overview
Tokens
Schemes
Shell
Pieces

Appearance

Two attributes, sixteen results.

Palette and mode are independent.

Save changes
Well
OverdueShippedFocus ring
  1. 1surface-framethe window ground the whole shell sits on
  2. 2barthe top bar — equals surface-frame
  3. 3railthe side rail — also equals surface-frame
  4. 4rail-activethe selected rail row
  5. 5panel-edgethe panel’s top edge: hairline in light, lip in dark
  6. 6surface-panelthe work panel, one step off the frame
  7. 7surface-carda card resting on the panel
  8. 8brandthe one accent, with brand-ink on it
  9. 9surface-sunkena well pressed into the card

Roles

Every surface above is one named role, and the roles that must match are defined as each other in the theme files — bar and rail are both surface-frame, so they cannot drift apart.

bg-surface-frame
The window ground — bar and rail are one flat L on it
bg-bar
The top bar (= surface-frame)
text-bar-ink
Type on the bar
text-bar-muted
Quiet type on the bar
bg-bar-hover
A hovered / selected chip on the bar or rail
border-bar-line
Hairlines on the frame
bg-rail
The side rail (= surface-frame)
text-rail-ink
Type on the rail (= bar-ink)
text-rail-muted
Quiet type on the rail (= bar-muted)
bg-rail-active
The selected rail row (= bar-hover)
border-rail-edge
The rail’s hairline (= bar-line)
bg-surface-panel
The work panel set down inside the frame
border-panel-edge
The panel’s top border colour — hairline in light, lip in dark
bg-surface-card
A card on the panel
border-edge-highlight
The 1px lip along the top of a floating surface
border-edge-highlight-strong
The panel’s lip, a step stronger
shadow-panel
The work panel
shadow-card
A card
shadow-contact
The contact seat
shadow-float
The soft float
shadow-popover
A popover

Composition rules

  • The bar and the rail are one flat L on the frame: bar and rail are both defined as surface-frame, so the two arms are the same colour in every scheme and mode.
  • The panel is one step lighter than the frame in dark and dim, white on light grey in light, and white on the dark frame in mixed — the step is what makes the panel read as a surface rather than a region.
  • The panel’s top edge is a hairline in light and a light lip in dark: panel-edge resolves to border in light and to edge-highlight-strong in dark, so one border utility covers both.
  • Cards sit on the panel with a hairline and shadow-card — never a second background step. Depth on the panel comes from the shadow, not from another grey.
  • Popovers and dialogs leave the panel: surface-raised for the ground, shadow-popover for the cast, and edge-highlight for the lip along the top.

The markup

The whole composition is four elements and the role utilities. No per-mode class lists: the tokens carry dark, dim, mixed and light.

<div class="flex h-dvh flex-col bg-surface-frame text-body">
  <!-- the frame's horizontal arm -->
  <header class="flex h-17 items-center bg-bar px-4 text-bar-ink">
    <span class="text-xs text-bar-muted">breadcrumb</span>
  </header>

  <div class="flex min-h-0 flex-1">
    <!-- the frame's vertical arm -->
    <nav class="w-56 shrink-0 border-r border-rail-edge bg-rail p-2">
      <a class="block rounded-md px-2 py-1.5 text-rail-muted">Inbox</a>
      <a class="block rounded-md bg-rail-active px-2 py-1.5 text-rail-ink">Today</a>
    </nav>

    <!-- the work panel, set down inside the frame -->
    <main class="min-w-0 flex-1 overflow-y-auto rounded-tl-xl border-t border-l
                 border-panel-edge bg-surface-panel shadow-panel p-8">
      <h1 class="text-ink">Today</h1>

      <div class="mt-6 rounded-lg border border-border bg-surface-card p-4 shadow-card">
        <button class="rounded-md bg-brand px-4 py-2 text-brand-ink">Save</button>
      </div>
    </main>
  </div>
</div>