Skip to the page
TACTILE UI

Kit part · Badges & tags · Loaders

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.

Element
<span>
Needs
kit.css
Rules
lamp.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

Online
Status line
Live
In a tag
In a key cap
Office · off
Off · still visible
Synced with the desk
Blue · linked
Standby
White · standing by
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

PartOffOnBlinking
Green
Amber
Red
Blue
White

Graphite

PartOffOnBlinking
Green
Amber
Red
Blue
White
03

API

NameKindValuesWhat it does
.tui-lampclasson <span>A 7px lamp. Off, it is a dim cap you can still see.
data-lampattributegreen (default) · amber · red · blue · whiteIts colour: on/healthy, waiting/working, recording/failing, linked/for information, standing by/powered.
data-on · .is-onattribute / class—Lit: the colour, a hot spot and a glow.
data-blinkattribute—1.2s on/off, stepped. Only for states that need attention now. Stops under reduced motion.
.tui-statusclasson <span>A lamp and printed words, 8px apart, in --tui-ink-2.
--cCSS propertyset by data-lampThe lamp colour. Leave it to data-lamp; lamps have five colours.
04

Markup

<span class="tui-lamp" data-on></span>
<span class="tui-lamp" data-lamp="amber" data-on data-blink></span>

<span class="tui-status">
  <span class="tui-lamp" data-on></span>All systems normal
</span>

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

05

Accessibility

  • A lamp says nothing to a screen reader. The words beside it carry the state.
  • Blinking stops under prefers-reduced-motion; the lamp stays lit.
  • The five colours differ in lightness as well as hue, and never appear without words. White is the one a colour-blind eye can always tell apart; it still sits next to words.
06

How it’s built

A 7px circle. Off: the lamp colour mixed 22% into the plate’s dark tone, with an inset shadow, so you can see the unlit lens. On: the full colour under a small white hot spot, and two soft glows. Blink is a stepped animation. The lamp tokens (--tui-green, --tui-amber, --tui-red, --tui-blue and --tui-white) are the only hues in the kit. The blue is an indicator LED’s, not a brand’s; the white is a cold LED, not the warm filament of a bulb.

07

Rules

lamp.rules.mdIn the brain

A lamp always sits next to words; it is never the only signal.

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
OnlineIn review

Status

A lamp with words: the state line in tables, panel heads and lists. The words carry the meaning; the lamp is the glance.

HTTPMost teams

Tag

A small printed plate: a type, a count, a badge. Solid for the one tag that must stand out.

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