Confirm
Erase reel 3?
Dialog
A decision that must be made now: a native dialog with a question, one sentence of consequence, a way back and the act.
Kit part · Toasts
A confirmation after an action: a small plate with a lamp and one factual sentence, read out politely, gone in 3.6 seconds.
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
| Part | Green | Amber | Red |
|---|---|---|---|
| Toast | Preset saved. | Disk 82% full. | Recording. |
Graphite
| Part | Green | Amber | Red |
|---|---|---|---|
| Toast | Preset saved. | Disk 82% full. | Recording. |
| Name | Kind | Values | What it does |
|---|---|---|---|
| toast(text, options) | function | kit.mjs | Shows a plate and returns it. |
| options.lamp | option | "green" · "amber" · "red" · "blue" · "white" | The lamp. Green by default. |
| options.ms | option | 3600 | How long it stays before it leaves. |
| .tui-toasts | class | created once | The stack, bottom right, role="status", aria-live="polite". |
| .tui-toast · .is-leaving | class | — | The plate, and its 200ms exit. |
<button class="tui-key" id="save">Save preset</button>import { toast } from '/kit/kit.mjs';
document.getElementById('save').addEventListener('click', () => {
toast('Preset saved to Studio A.');
});
toast('Disk 82% full: archive old takes.', { lamp: 'amber' });
toast('Recording to reel 4.', { lamp: 'red', ms: 5000 });Needs kit.css and kit.mjs. How to install the kit.
role="status" region with aria-live="polite", so they are read after the current sentence.Twenty lines in kit.mjs. The first call creates the live region; each call appends a plate with a lamp and a text node (never HTML), then removes it after ms. It rises with the kit’s 220ms rise.
One factual sentence with a lamp, and never a toast for an error that needs action.
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.
Confirm
Erase reel 3?
A decision that must be made now: a native dialog with a question, one sentence of consequence, a way back and the act.
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.
Every button, and every link that acts like one: a cap on a skirt that drops below the plate when pressed.