Skip to the page
TACTILE UI

Kit part · Charts

Glass

Dark display glass for plots and live readouts, whatever the finish around it. Everything printed inside it is lit.

Element
<div>
Needs
kit.css
Rules
display.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

03600:0012:0024:00
Holding a plot
API ····· 182 msCDN ····· 41 msDB ····· 12 ms
Holding status lines
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

PartPlotReadoutStatus lines
Glass
03600:0012:0024:00
Load1.36 kW
WEST-1 OKEAST-2 OKSOUTH WAIT

Graphite

PartPlotReadoutStatus lines
Glass
03600:0012:0024:00
Load1.36 kW
WEST-1 OKEAST-2 OKSOUTH WAIT
03

API

NameKindValuesWhat it does
.tui-glassclass—Near-black glass, 16px inside, 7px corners, a glare and a faint scanline.
--tui-ink · --tui-ink-2 · --tui-ink-3 · --tui-ruleCSS propertyredefined insideSet to VFD light at 100%, 70%, 42% and 10%, so any part printed inside is lit.
.tui-plot insideelement—Traces glow; the area fill takes the VFD tint.
.tui-label insideclass—Printed in the dimmer light.
04

Markup

<div class="tui-glass">
  <span class="tui-label">Solar · today</span>
  <svg class="tui-plot" viewBox="0 0 360 150" role="img"
       aria-label="Solar output, midnight to now. Peak 5.4 kW at 13:00.">…</svg>
</div>

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

05

Accessibility

  • Text on the glass is 12:1 or better; the dimmest tint (ink-3) is for scales only.
  • A plot inside needs role="img" and an aria-label that states the values that matter.
06

How it’s built

A div with three backgrounds (a glare, a 3px scanline and --tui-vfd-bg) and a deep inset shadow. It redefines the ink tokens inside itself, so a label, a plot or a table dropped in prints in light without any extra class. It stays dark in both finishes, the way a display does.

07

Rules

display.rules.mdIn the brain

Glass holds plots and live lines; its text is Geist Mono.

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
03600:0012:0024:00

Plot

Line charts drawn as light on glass, or as ink on a panel: gridlines faint, two traces at most, a red line for now.

02:52min

LCD

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

Latency p95182ms

Readout

A printed label over a value: key figures, with the unit small and the change in words.

Docs
Finish
Volume