Skip to the page
TACTILE UI

Kit part · Navigation

Bar

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

Element
<header>
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

Brand and links
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

PartLinkHoverCurrentFocus
Link

Graphite

PartLinkHoverCurrentFocus
Link
03

API

NameKindValuesWhat it does
.tui-barclasson <header>A flex row, 56px tall, 20px sides.
.tui-bar__brandclasson <a>The wordmark: bold, tight, with a lamp before it.
.tui-bar__linksclasson <nav>Printed links, pushed right.
aria-current="page"attributeon a linkPrints the current page in full ink.
04

Markup

<header class="tui-bar">
  <a class="tui-bar__brand" href="/"><span class="tui-lamp" data-on></span>Quiet</a>
  <nav class="tui-bar__links" aria-label="Main">
    <a href="/features" aria-current="page">Features</a>
    <a href="/pricing">Pricing</a>
    <a href="/docs">Docs</a>
  </nav>
  <a class="tui-key tui-key--primary tui-key--sm" href="/start">Start free</a>
</header>

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

05

Accessibility

  • Give the <nav> an aria-label; mark the current page with aria-current="page", which also styles it.
  • On phones, let it wrap or move links into a menu; do not let it scroll the page sideways.
06

How it’s built

A flex row and type, nothing else. The lamp is the kit’s lamp; the key is the kit’s key.

07

Rules

navigation.rules.mdIn the brain

Brand with a lamp, links, and one contrast key at most.

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

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.

Tabs

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

Key

Every button, and every link that acts like one: a cap on a skirt that drops below the plate when pressed.

Docs
Finish
Volume