Design system
gonogo looks like hardware: a warm grey body, lighter modules with thin edges, keys with a thick bottom edge, and small dark LCD screens. Colour is a small light, or a tint on the one module that needs you. This page uses the app's own stylesheets.
Where it lives
| File | What it holds |
|---|---|
src/client/tokens.css | Every colour, font and radius. :root is the default livery (Instrument); each other livery is a block on [data-livery='<slug>']. |
src/client/primitives.css | The classes everything is built from: type, LCD, module, LED, lamp, flood, key, field, chip, tile, console tile, the motion. Plain CSS and data attributes, no script. |
src/client/base.css | The app page only: box sizing, the 13 px body, no margins on headings, the focus ring, reduced motion. |
src/client/shell.css, forms.css, loop.css, ... | The layout of one view each (top bar, wall, room, staffing, comm loop, ...), built from the two files above. They declare no colour of their own. |
src/shared/livery.ts | The 28 colour tokens with the role of each, the contrast rule and the values of the four liveries. A test keeps it equal to tokens.css. |
src/client/look.ts | Puts a livery on the page: data-livery and data-scheme on <html>, and the values as properties of :root (how a livery an agent designed arrives). |
.vitepress/theme/index.ts | Loads tokens.css and primitives.css into this site. |
docs/brand/ | The logo, as SVG. |
docs/design/instrument/*.dc.html | The mockups the sizes come from. |
In the app data-livery is on <html>; on any element it applies to everything inside: <div data-livery="night-shift">.
Liveries
Four ship (see Livery). A livery changes colour only. Each swatch is var(--token) in a data-livery box, with its livery.ts value.
data-livery="instrument"lowest pair 4.86:1data-livery="night-shift"lowest pair 5.47:1data-livery="low-ink"lowest pair 6.66:1data-livery="high-contrast"lowest pair 8.44:1Hover a swatch for its role. The roles, in short:
| Group | Tokens | Use |
|---|---|---|
| Surfaces | --body, --panel, --key, --well | the page; a module; a key, console or input (the most raised); a sunk, stopped or read-only surface |
| Lines | --edge, --edge-2 | the thin line round a module or a key; the dashed line of an open seat or a disabled key |
| Text | --text, --text-2, --muted | main text (and the fill of the primary key); second text, also on tints; small quiet text |
| Screen | --lcd, --lcd-text, --lcd-dim, --lcd-warm | the dark screen of the terminal, clocks and counts; its text; its quiet text; its text on a console that needs you |
| Signals | --work, --you*, --go*, --nogo* | the four signals, each with a tint, an edge or an ink where it needs one |
| Tracks | --track, --seq-base | an empty ring or bar; the empty line of a sequence track |
Every livery must pass (the app refuses one that does not): each text token reaches 4.5:1 (WCAG 2) on every surface it sits on, and --lcd stays dark (the terminal draws for a dark screen). High Contrast reaches 7:1 everywhere.
Signals
One colour per meaning, the same in every view.
| Meaning | Light | Tint | Where |
|---|---|---|---|
| Working | --work (indigo) | none: the console's small LCD lights | console LED and screen, a chip outline, the sequence track |
| Needs you | --you (saffron) | --you-tint, --you-edge, --you-ink, --lcd-warm; a key on it has --you-key | the console, the dock that asks you, the wait lamp |
| Go, idle, under the limit | --go (sage), --go-lit on a dark key | --go-tint, --go-ink | idle LED, a go vote, LINK UP, the chosen livery |
| No-go, danger, over the limit, Redline | --nogo (raspberry) | --nogo-tint, --nogo-text | a no-go vote, an error, a danger key, LINK DOWN, the REDLINE chip |
| Starting | --work | none, dashed edge | a console coming up |
| Stopped | --edge-2 | --well | a stopped console |
| Open | none | none, dashed --edge-2 | an empty seat |
Fuel (Propellant): go under the warning share, needs-you past it, no-go (blinking) over the limit. Its bar runs on --track.
Live components
Pick a livery for the previews:
Type
.disp · Geist 600, −0.02em, line-height 1.05body · Geist 400 13/1.4.legend · Geist Mono 600 11.5 px, 0.04em, capitals.label · Geist Mono 400 10.5 px, 0.08em, capitals, --muted.lcd-num · Doto 900, tabular figures: numbers that count, only on an LCD.muted / .hint · --muted, 12 px under a fieldThree families, bundled from @fontsource: Geist for reading, Geist Mono for names on the hardware (labels, legends, keys, chips, states), Doto (dot matrix) for numbers on an LCD and the logo. Hardware text is capitals with 0.04em to 0.08em spacing; reading text is sentence case.
Keys
.btn: at least 44 px tall, 1 px edge with a 3 px bottom edge, Geist Mono capitals; pressed, it moves down 2 px. data-kind: primary (dark face, one per view), quiet, danger. data-size="big": 56 px form key. data-shape="round": 44 px disc. Disabled (disabled, or aria-disabled="true" to keep focus while busy) is dashed and flat.
Lights
.led: an 8 px light in --led, coloured by data-kind (console state) or by setting --led. data-on="true" adds a ring (0 0 0 3px, 22%); data-blink="true" breathes (1.5 s, off under reduced motion). .lamp: a light with a word.
Chips
Geist Mono 500, 10 px, capitals, a pill. data-tone: lit, amber, go, nogo, quiet, ink.
Modules, floods and the LCD
.module: --panel, 1 px --edge, 12 px corners, named by a .label ("A · MISSION"). .flood: the same, tinted by data-tone (amber, go, nogo, lit); its label turns --text-2. .lcd: a sunk dark screen (--lcd, inset 0 2px 6px, 8 px corners), text --lcd-text or --lcd-dim.
Tiles and consoles
.tile: a key holding a console, position or option. data-kind (working, needs, starting, stopped, crashed, open, none for idle) sets light and surface; aria-pressed="true" rings the chosen one. .room-tile: .tile-head (light, .tile-legend, .tile-num), a two-line .tile-lcd (lit while working, warm when it needs you or crashed), .tile-foot with .tile-state. The rooms page at / is one .room-tile for each room under the same top bar as the app, with crashed for a room that did not stay up; its keys are the ordinary .btn (OPEN primary, REMOVE danger) and the remove question is a .flood with data-tone="nogo".
Fields
.field: label, control, .hint. .input: 46 px on --key, --well when read-only; aria-invalid="true" draws a 2 px --nogo edge, reason in an .error below. .textarea is mono.
Tabs
.tabs holds .btn.tab keys with role="tab": the chosen one data-kind="primary" and aria-selected, the others quiet with tabindex="-1", so that Tab enters the bar once and the arrow keys, Home and End walk it. A count is an amber chip that is aria-hidden, and the key's aria-label says it in words ("INBOX, 2 unread"). Each key is 44 px; under 700 px they share the width. COMMS uses it.
Select, check, radio, switch and icons
Native controls, so the keyboard, the screen reader and the form come for free, drawn in the instrument's look with the livery's tokens. No script and no dependency.
select.input is the field with a chevron of --text-2 (4.5:1 and better on --key); data-fit makes it as wide as its longest option for a select that shares a line. .check and .radio are 22 px with a 2 px --muted edge and, when on, the dark --go-ink with a mark in --key; .switch is a 44 by 26 px track with a thumb, on a native checkbox with role="switch". Give each a <label> that fills a 44 px row, so the row is the touch target. .icon is a shape drawn in the colour of the text around it (lock, chevron-right, chevron-down, half); under Windows forced colours the shapes take the system's colours (checked boxes and switches are Highlight with a Canvas mark; that was written from the CSS spec and not run on Windows), the app has no emoji, and an icon that carries meaning needs role="img" and a label, or a word next to it.
Elements of the feature pages
Each is built from the keys, chips, lights, modules and fields above, so it follows the livery. The feature pages show them in use.
pass /api/state answers 401 with no credential FAIL /hook/x/Stop answered 200: it must be 404Exposed to (Flight Rules, LOGIN)Exposed to: gonogo.example.com (page), hooks.example.com (webhooks only). Login: ready (account and second factor).History row (Launch Window)
gonogo/ana, clean, merged into main.Room editor: card, grip and traygonogo 1 ROOM 2 INBOX 1 3 NEEDS 1 4 POLL connected NEEDS 1: ana: permission request: Bash: git push (press 3) ROOM > * flight working flight ! ana needs you fido permission request: Bash: git push . guido idle guido - retro stoppedUpdate stripgonogo 0.3.0 is out (this is 0.2.0). To update, run:
npm install -g @ulm0/gonogoCopyThese are drawn from the app's own rules (the console chips of Engine Bay, Review, the feature toggle row, Missions, Worktrees, Room editor, Notifications, the terminal client and Rollout): the verdict line is bold text, amber with the tone token when it was of an older diff; a note has a --edge border and a left edge in the tone (word on a chip, never colour alone); the room editor's card is a .module with a handle row and a corner grip of --text-2, and its tray a .module with RESTORE keys; the terminal frame is .lcd text with a glyph and a word for each state. Only the tokens above colour them, so text keeps 4.5:1 (7:1 in High Contrast). The COMMS tab bar is the Tabs control above, with the count of INBOX in its name. The version in the top bar is the app's small mono --text-2 text beside the logo; a newer one is a second link in --you-ink (0.3.1 out), underlined on hover or focus (on a phone it replaces the running version, and the unit name GN-1 gives way, so the bar stays one line). The feature toggle row is a role="switch" checkbox (a lock, not a switch, for a core feature), the name in bold (60% opacity when off), its hint, and quiet chips for what it needs and what uses it; the plan of a change opens under its row as a --edge bordered group with CANCEL and a primary TURN ON or TURN OFF.
Shape, depth and motion
| Value | Where | |
|---|---|---|
| Radius | --radius-key 8 px, --radius 10 px, --radius-module 12 px, 999 px | keys, inputs, LCDs; tiles and big keys; modules and floods; chips |
| Edges | 1 px --edge; keys and tiles 3 px at the bottom (4 px on a big key) | everything that is raised |
| Dashed | 1 px --edge-2 | an open seat, a disabled key, a console that is starting |
| Depth | LCD: inset 0 2px 6px rgb(0 0 0 / 35%); LED ring: 0 0 0 3px at 22% | no drop shadows anywhere |
| Focus | outline: 2px solid var(--text), offset 2 px | every focusable thing (:focus-visible), and the chosen tile |
| Touch | 44 px at least | every key, on a phone too |
| Spacing | 4, 6, 8, 10, 12, 14, 16 px; the page has 24 px sides, 12 px under 700 px | gaps inside and between modules |
| Motion | a key press (2 px down, no transition); ins-led breathing 1.5 s; ins-step and ins-blink | nothing moves under prefers-reduced-motion: reduce |
Under 700 px the wall folds into one module, the room into three columns, and a seven-key bar sits at the foot.
This site
The docs use the same two files. .vitepress/theme/custom.css maps every --vp-c-* variable to a token; LiverySwitch.vue in the top bar sets a livery on <html>, remembers it, and follows system light or dark until you pick one. Containers are the status lights:
INFO
A plain module with the indigo light: something to know.
TIP
GO, sage: the way that works.
WARNING
Needs you, saffron: read this before you go on.
DANGER
NO-GO, raspberry: this breaks something or loses data.
A folded module
Open it for the rest.
GONOGO_REDLINE=off gonogo --port 7890The logo
GO pressed (dark face, sage light), NO-GO up (light face, raspberry light), then the word in dots. Files in docs/brand/, shapes only, no font. On a dark livery the app inverts the light lockup (filter: invert(1) hue-rotate(180deg)), keeping the hues.
Rules
Do
- Take every colour from a token (
var(--panel)); a new view declares layout only. - Keep colour small: a light, a chip, or the tint of the one module that needs you.
- Counting numbers go in
.lcd-numon an.lcd; names in Geist Mono capitals (.label,.legend). - Keys at least 44 px tall; every state also in words, never colour alone.
- Check a new text/surface pair at 4.5:1 in all four liveries and add it to
CONTRAST_PAIRSinlivery.ts.
Don't
- No hex values outside
tokens.css(a test fails if a stylesheet declares a colour token; a shadow's black is the exception). - No signal-colour floods or decoration: indigo always means working.
- No drop shadows, gradients or second radius scale.
- No Doto for words.
- Animate only states, and nothing under reduced motion.
- Never a light
--lcd.