Panels & chrome Window & tree
// Window

Window

Application window chrome (title bar, status dots, actions, tabs, body) and the minimal file tree that sits inside it.

.talos-window frames a surface that reads as “an application window”: a terminal transcript, an editor pane, a file tree. It is a flex column with a title bar, an optional tab row and a scrolling body. The frame rides the chamfer engine, so it carries the house top-right and bottom-left cuts with no extra class. .talos-tree is the file-tree list that fills such a pane. Both live in the talos-window.css module, which all.css loads.

Default

PREVIEW
deploy.log

Body content scrolls inside the frame; the bar stays put.

<section class="talos-window">
  <header class="talos-window__bar">
    <span class="talos-window__dots" aria-hidden="true">
      <span class="talos-window__dot"></span>
      <span class="talos-window__dot"></span>
      <span class="talos-window__dot"></span>
    </span>
    <span class="talos-window__title">deploy.log</span>
  </header>
  <div class="talos-window__body">…</div>
</section>

The bar is translucent on purpose: the chamfer engine draws the cut hairlines in the host background, and an opaque bar would paint over the top-right one. Its right padding clears the cut, so actions never sit under it. A long title truncates with an ellipsis.

Status dots

PREVIEW
edge-03 · healthcheck

Two probes report; the third is idle.

<span class="talos-window__dots" aria-hidden="true">
  <span class="talos-window__dot talos-window__dot--nominal"></span>
  <span class="talos-window__dot talos-window__dot--warning"></span>
  <span class="talos-window__dot"></span>
</span>

Dots are monochrome hairline rings by default: there are no red, yellow and green traffic lights, because emphasis comes from contrast, not hue. A dot takes a band colour only when it encodes state, through __dot--nominal, __dot--warning or __dot--critical. The dots are decoration, so the group is aria-hidden; state that matters goes in text too.

Actions and tabs

PREVIEW
src/wc

The selected tab sits on the body fill with an underline.

<header class="talos-window__bar">
  …
  <span class="talos-window__title">src/wc</span>
  <span class="talos-window__actions">
    <button class="anim-replay" type="button" aria-label="Replay">↻</button>
    <button class="talos-button talos-button--ghost talos-button--sm" type="button">Copy</button>
  </span>
</header>
<nav class="talos-window__tabs" role="tablist" aria-label="Open files">
  <button class="talos-window__tab" role="tab" aria-selected="true">talos-popover.ts</button>
  <button class="talos-window__tab" role="tab" aria-selected="false">talos-sheen.ts</button>
</nav>
<div class="talos-window__body">…</div>

__actions pushes itself to the right end of the bar. The tab row scrolls sideways with its scrollbar hidden. A tab is current with aria-selected="true" (a tablist) or aria-current (links), and shows the house focus ring inset on :focus-visible.

Hosting a terminal

PREVIEW
zsh
bun run build
dist/wc/index.js 42 kB
build complete
<section class="talos-window">
  <header class="talos-window__bar">…</header>
  <div class="talos-window__body">
    <div class="talos-terminal" role="region" aria-label="Build session" tabindex="0">…</div>
  </div>
</section>

When a terminal or a tree is the only child of the body, the body drops its padding and the child brings its own. A hosted terminal hands its fill to the window, so the bottom-left cut hairline stays visible.

Inset

PREVIEW
Panel
nested.log

A window inside a panel: sunken fill, smaller cuts.

<section class="talos-window talos-window--inset">…</section>

--inset is for a window nested inside a panel: the fill sinks to --talos-surface-0 and the cuts shrink to the flag size.

Flush

PREVIEW
host-drawn frame

No edge, no fill, no cuts: the panel around it is the frame.

<section class="talos-window talos-window--flush">…</section>

--flush turns off the window’s own edge, fill and cuts and runs the body edge to edge. Use it when the host already supplies the frame.

File tree

<ul class="talos-tree">
  <li><span class="talos-tree__dir">src</span>
    <ul>
      <li><a class="talos-tree__file" aria-current="page" href="#">talos-popover.ts</a></li>
      <li><a class="talos-tree__file" href="#">talos-sheen.ts</a></li>
    </ul>
  </li>
  <li><a class="talos-tree__file" href="#">package.json</a></li>
</ul>

.talos-tree is nested lists in mono. The glyphs (▸ for a directory, · for a file) are ::before decoration, so the name is the whole text. Each level indents with a hairline guide on its left. The active item takes aria-current (any value but "false") and gets a raised fill with a leading bar.

Classes

ClassRole
.talos-windowthe frame: flex column, hairline edge, chamfer cuts
.talos-window--insetnested in a panel: sunken fill, flag-size cuts
.talos-window--flushno edge, fill or cuts; body edge to edge
.talos-window__bartitle bar: dots, title, actions
.talos-window__dots / __dotmonochrome rings; --nominal --warning --critical encode state
.talos-window__titlethe window name; truncates
.talos-window__actionsright-aligned controls
.talos-window__tabs / __taboptional tab row; aria-selected or aria-current marks the current tab
.talos-window__bodythe scrolling content area
.talos-treenested-list file tree
.talos-tree__dir / __filea directory or file row; aria-current marks the active one