Skip to the page
TACTILE UI

Kit part · Progress

Progress

Progress through a task: ink filling a groove, never a coloured bar.

Element
<div>
Needs
kit.css
Rules
meter.rules.md · 4
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

With a scale
Exporting · 3 of 7
With a working lamp
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

PartEmptyUnder wayDone
Progress

Graphite

PartEmptyUnder wayDone
Progress
03

API

NameKindValuesWhat it does
.tui-progressclass8px tallA groove cut into the plate.
--vCSS property0–1 · 0.4How full. Width eases over 300ms.
data-followattribute—For a value that moves all the time (a reading position, a scrub): the fill takes it at once instead of easing after it.
role="progressbar" · aria-valuenowattributeyou addSo assistive tech reads the progress.
04

Markup

<div class="tui-field">
  <span class="tui-label" id="up">Upload · 64%</span>
  <div class="tui-progress" style="--v:.64" role="progressbar"
       aria-labelledby="up" aria-valuenow="64"></div>
</div>

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

05

Accessibility

  • Add role="progressbar" and aria-valuenow (0–100), and print the figure in its label.
  • For work with no known length, use a blinking amber lamp with words: never a spinner.
06

How it’s built

The groove is the kit’s recess, shallow. The fill is an ::after in --tui-ink, sized by calc((100% - 4px) * var(--v)). Printing, not a colour.

07

Rules

meter.rules.mdIn the brain

The slot fills with ink, never colour.

4 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

Ladder

An LED ladder for levels and load: green, then amber, then red, the way a recording level has always been read.

Lamp

The only colour in the kit: a lamp that is on. Green is on, amber is waiting, red is recording or failing, blue is linked, white is standing by. Always next to words.

Preset saved.

Toast

A confirmation after an action: a small plate with a lamp and one factual sentence, read out politely, gone in 3.6 seconds.

Docs
Finish
Volume