Skip to the page
TACTILE UI

Kit part · Navigation · Sidebars

Side rail

App navigation in a panel: the current page is a recess with its lamp lit. The rail on the left of this page is one.

Element
<nav>
Needs
kit.css
Rules
navigation.rules.md · 3
Finishes
Aluminium · Graphite · Porcelain · Black
Volumes
Tactile · Quiet
On this page
  1. Variants
  2. Every state, at once
  3. API
  4. Markup
  5. Accessibility
  6. How it’s built
  7. Rules
  8. Related parts
01

Variants

Grouped
02

Every state, at once

Both finishes, side by side. Hover, pressed and focus are forced with .is-hover, .is-down and .is-focus; checked and disabled are real.

Aluminium

PartRestHoverCurrentFocus
Link

Graphite

PartRestHoverCurrentFocus
Link
03

API

NameKindValuesWhat it does
.tui-sideclasson <nav>A grid of links 34px tall, each with an unlit lamp at the right.
.tui-labelclassinsideA group heading.
aria-current="page"attributeon a linkRecessed, full ink, lamp lit green.
svgelementinside a linkOptional icon, 16px.
04

Markup

<nav class="tui-panel tui-side" aria-label="Main">
  <span class="tui-label">Studio</span>
  <a href="/overview" aria-current="page">Overview</a>
  <a href="/sessions">Sessions</a>
  <a href="/library">Library</a>
</nav>

Needs kit.css only, no script. How to install the kit.

05

Accessibility

  • aria-current="page" is what styles the current link, so the visual and the announced state cannot drift apart.
  • The lamp is decoration on top of the recess and the ink weight.
06

How it’s built

Links in a grid. Each has an ::after lamp; the current one gets the kit’s recess and a lit lamp. On phones these docs move the same rail into a native <dialog> drawer.

07

Rules

navigation.rules.mdIn the brain

The current page is a recess with its lamp lit; links are grouped under printed labels.

3 rules in this file, with the foundations they rest on and the anti-patterns that break them. Full rules ship in the brain with the Pass.

08
Quiet

Bar

The top of a page: a wordmark with a lamp, printed links, and one contrast key at most.

Tabs

Views of the same thing, switched in place: keys in a tray, the chosen view a raised cap.

Output

Panel

A face plate that groups what belongs together: a head, a rule, then the parts. Screws only on device-like panels.

Docs
Finish
Volume