Widgets
The working parts of this system:
controls, frames, and icons
written 2026-10-31, reference draft
Abstract
The site's system, extended for tools. Pages stay black and white; tools add colour, but only as a key: each part of an interface has one muted hue, marked the same way everywhere. Everything else (frames, states, icons) is shape and weight on the character grid. The same rules are written out for terminals at the end.
Colour keys
One hue per area of a tool, always drawn the same way: a thick solid stroke, and the label on a pale wash of the same hue. Text stays black. The hues are muted and spread round the colour wheel, chosen for being visible and for being told apart from one another.
- run run, start, stop
- field data and fields
- select selection, presets
- display display and view
- param parameters
- info status, information
- danger destructive actions
A console
The widgets were made for one job above all: a browser console that controls something running elsewhere, such as a queue of analysis jobs on a server. The console page is a working example with a simulated backend. It uses the compact density, where the same widgets sit on a tighter grid: add gg-compact to any container and everything inside scales together.
Components
Without a key the widgets are black and white, like the rest of the site; add k-run, k-field and so on to any of them to join an area.
Buttons
Fields and choices
Tabs
Table and tree
- 2026-10
- run-01
- run-02
- plate A
- plate B
- run-03
| well | variant | OD600 | GFP / OD |
|---|---|---|---|
| A1 | wild type | 0.82 | 1204 |
| A2 | R110A | 0.79 | 385 |
| A3 | T30S | 0.85 | 2210 |
| A4 | empty | 0.04 | 12 |
Example values. Click a heading to sort, a row to select it.
Progress
as text, for terminals and logsMessages
Icons
Thirty-eight, on a 20-unit grid with one stroke weight, each two cells wide. Severity is in the outline: circle, triangle, square.
In a terminal
The same marks in character cells: the stroke is a left half block ▌ in the key colour, the label sits on the wash, frames are box-drawing lines, and reverse video stands for the pointer. With truecolor, use these values:
| key | stroke |
|---|---|
| run | #519962 |
| field | #4886B8 |
| select | #8E70B0 |
| display | #A18B32 |
| param | #C67F4D |
| info | #429599 |
| danger | #B65A5C |
Using it
Load site.css and widgets.css, then gg-icons.js and widgets.js. Markup is the interface:
<span class="gg-label k-run">Run</span>
<button class="gg-btn k-run" aria-pressed="true">Pause</button>
<span class="gg-val k-param">12</span>
<table class="gg-table k-field" data-sortable data-select> ... </table>
gg.toast('saved'); gg.progress(el, 0.6); gg.meter(0.42, 20);
gg.init(newlyAddedElement); // wires keyboard handling for new widgets