fin1te/dsv1.0.0
  1. ds
  2. Components
  3. Island toolbar

Island toolbar

Floating editor chrome from topo.

topo
100%

topo's editor chrome: four islands over the canvas

Islands float over a full-screen canvas. They are the only surfaces in the system with a shadow, because they sit on top of work. Buttons inside an island are ghost buttons; the one accent button is the main action. The small letter in a tool's corner is its shortcut.

<div class="island bar">
  <button class="btn icon tool on" aria-label="Select">…<kbd>V</kbd></button>
  <button class="btn icon tool" aria-label="Pan">…<kbd>H</kbd></button>
  <span class="sep"></span>
  <button class="btn icon" aria-label="Library">…</button>
</div>
ClassOnWhat it does
.islanddivFloating surface with --shadow. Buttons inside become ghost.
.bar.islandThe main toolbar: taller buttons, bigger icons.
.sepspanVertical divider.
.tool + kbd.btnTool button with its shortcut in the corner.
.brandspanProduct name in an island.

Position islands yourself (position: absolute in the stage). In topo the chrome also scales with a --ui zoom factor so it follows the reader's text size while the canvas does not.