Skip to the page
TACTILE UI

Kit part · Progress

Ladder

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

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

24 segments · default
12 segments, taller
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

PartQuietNominalHotClipping
Ladder

Graphite

PartQuietNominalHotClipping
Ladder
03

API

NameKindValuesWhat it does
.tui-ladderclass10px tallA strip of lit segments on dark glass.
--vCSS property0–1 · 0.5How much is lit. Update it as the value moves; it eases over 90ms.
--nCSS property24Number of segments.
heightCSS propertyanyTaller ladders for primary meters.
role="meter" · aria-value*attributeyou addThe kit draws it; give it a role and values so it is read.
04

Markup

<div class="tui-field">
  <span class="tui-label" id="lvl">Input level · −6 dB</span>
  <div class="tui-ladder" style="--v:.62" role="meter" aria-labelledby="lvl"
       aria-valuemin="0" aria-valuemax="1" aria-valuenow="0.62"></div>
</div>

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

05

Accessibility

  • Add role="meter", a name and aria-valuenow, or print the number next to it: colour must never be the only signal.
  • Under reduced motion the transition is off; the value is still drawn.
06

How it’s built

Two pseudo-elements with the same three-stop gradient (green to 70%, amber to 88%, red), masked into segments by a repeating gradient. The lower one, at 14% opacity, is the unlit LEDs; the upper one is clipped to --v with clip-path. No script: set --v from yours.

07

Rules

meter.rules.mdIn the brain

A ladder is for values with a safe zone; pair it with a label and a number.

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

Progress

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

Fader

A continuous value along a line: a native range whose cap rides in a slot cut into the plate, with a printed scale.

02:52min

LCD

A value that changes, on grey-green liquid crystal, with a ghost of the unlit segments behind it: clocks, battery, counters.

Docs
Finish
Volume