Skip to content

Latest commit

 

History

History
648 lines (553 loc) · 72.3 KB

DESIGN.md

File metadata and controls

648 lines (553 loc) · 72.3 KB

VisionSet design foundations

The design system — the shadcn Nova foundation, its tokens, the primitive governance, the status palette, and the gates that hold all of it — lives in Robomous/ui-core, consumed here as @robomous/ui-core. That repository's DESIGN.md is the governing document; what follows is only what is VisionSet's own: the extension registry, where the brand paints, the interaction patterns VisionSet's screens share, and which gate holds each rule in this repo.

VisionSet extensions

Everything VisionSet owns above the foundation, each following shadcn's extension convention — a value in :root, a dark counterpart in .dark, exposure through @theme inline — in frontend/ui-core/src/styles.css, mirrored by src/tokens.ts:

Extension Rule
stage The annotator's surround — the neutral a photograph is judged against. Its own role: not muted's subtle fill, not card's surface, distinguishable from background so a white asset edge still shows where it ends. Usage: docs/content/ui/annotator.md
origin-custom A model's provenance, as the logo at the start of its weights on the Models page (screens/OriginLogo.tsx): the Customized glyph's stroke. Hugging Face draws its own published colours and Robomous its mark in brand (Where the brand is), so neither has a token. A mark: never a surface, never text, and an origin is a kind rather than a state, so it never stands in for a status. Theme-stable, like the chart palette
progress Work partway done: a progress ring's arc, a meter's or an operation bar's fill, the progress state chip's ink. A warm, low-chroma bronze, apart from warning because partway is not a problem; its track is the same colour at 15%, a tint of the hue rather than a grey. Done is still success. Drawn by ProgressReadout / ProgressRing (patterns/ProgressRing.tsx) and ProgressBar (patterns/ProgressBar.tsx)
--container-page The 96rem page cap — read by PaddedContent, a reusable VisionSet surface
--page-inset-bottom Not a declared token: a variable a host sets to the height of chrome it pins to the viewport's bottom, read by the sections that fit the window (Overview, Assets, Classes, Dataset and Models) and by the Classes commit bar, which floats above it. Unset means 0
--page-inset-top Not a declared token: the same for chrome a host pins to the viewport's top (the standalone app's tab strip), read by the Assets section so its pane takes exactly the height between the two. Unset means 0

A layout value lives with whoever reads it. The rail's two widths, --spacing-rail (56px, collapsed) and --spacing-rail-expanded (240px), are declared in frontend/app/src/styles.css instead of here: the shell's rail (frontend/app/src/shell/Rail.tsx) is their only reader. Every row is a 36px-tall control on a 40px pitch inside an 8px inset on both sides — 40px wide collapsed — its icon centred at x = 28 in both widths, the first row centred on the page header's line (y = 60) and the last ending 6px above the status bar's hairline, which a 28px foot carries across the rail. Current is surface, inset ring and medium weight; inside (Projects, while a project is open) is weight and ink without the surface; hover is the surface at 60%. The rail holds the workspace's destinations only: a project's sections are the project bar's tabs, each counted one with its size beside its name, a two-digit placeholder until every count has answered. A host mounting VisionSet's screens brings its own global navigation, so nothing reusable reads the standalone shell's rail widths.

The theme is the host's too: a screen follows .dark on <html> and never sets it. The standalone app sets it from the viewer's System / Light / Dark choice in Settings > Appearance (docs/content/ui/navigation.md), kept per browser and never on the server (docs/content/ui.md); the rail holds no theme control. The choice's tiles each preview their own theme on either page, so their drawings (.vs-theme-preview in frontend/ui-core/src/styles.css) name the neutral ramp both themes are built from rather than the tokens, which follow the page.

Light and dark are both first-class. Every rule on this page holds in each: a surface, ink or extension is a token with a value in both, never a colour that only one theme defines, and the annotator's stage and the scan view follow the page like everything else. Under .dark, the app also sets color-scheme: dark on <html> (frontend/app/src/styles.css), so native scrollbars and form controls follow. The visual baselines photograph reference surfaces in light and dark.

An extension that turns out to be universal is a candidate to move into the package — that is a design decision and a PR against Robomous/ui-core, with the justification written into its DESIGN.md.

VisionSet patterns

Interaction patterns the screens share that the foundation does not define. Each is carried by a component — in frontend/ui-core/src/patterns/ when several screens use it, beside its screen when one does — so a screen applies the pattern by using the component rather than restating its rules.

VisionSet is designed desktop first: a wide, landscape window is the target, tablets in landscape keep every function in fewer columns, and phones must not break but are not designed for. The rule and what it means for dialog and pane widths are in Product UI principles.

Info glyphs

What a choice means beyond its label goes behind an info glyph beside the label — not in helper text under the field. A form row stays one line tall, so the rows of a form read as one column of labels and one column of controls, and the explanation is one hover or one Tab away. The pattern is InfoTip (patterns/InfoTip.tsx), placed with PropertyRow's labelAction:

<PropertyRow
  label="Model"
  htmlFor="recipe-target"
  labelAction={
    <InfoTip label="About this model" title={target?.label ?? "Any model"}>
      classify · detect · segment. Letterboxes to 640 on its own.
    </InfoTip>
  }
>
  <ExportTargetSelect id="recipe-target" compact … />
</PropertyRow>
Rule Why
Beside the label, outside it. labelAction puts the glyph right after the label text, 4px from its last letter, in the label column. Never inside the <label>, and never at the row's end or under the control. A label may hold no focusable content of its own, and its truncation would clip the glyph's focus ring. At the row's end the glyph takes width from the control and breaks the right edge every control in the form shares.
The card is a title and a line or two. The title is the answer in a few words (Training split only, Mirrors left to right, the model's tasks); the body says the rest. Never what the row already shows — not the label, not the selected value. One glance answers it. A card that needs a third paragraph is a page of documentation, not a hint.
It says the current state. The model's card gives the chosen model's tasks and fit; it changes with the choice. A card that explains the field in general, while the field holds a specific value, answers the wrong question.
Said once. What a card says is not also a line beside the control: the row is the label and the control, and the card is where the explanation lives. A screen reader gets the same words as the glyph's description (visually hidden), since it reaches the card only through the glyph. Two places saying one thing is twice the reading and two copies to keep true.
Supplementary only. Never the only place for something a person needs to proceed: a problem that holds an action is said where the form says problems (in the recipe modal, beside its save), with the field pointing at it through aria-describedby; a reason a control is disabled is said beside the control. A card is opened by choice. What blocks the person must reach them without one.
No interactive content in the card. No links, no buttons. It is a tooltip: the pointer cannot enter it, and the keyboard never lands in it. Something that needs a link is a popover, a different pattern.
A glyph, not a button — and still reachable without a pointer. TipGlyph (patterns/TipGlyph.tsx): the icon at its own size (14px beside 13–14px text, 12px beside 12px), muted, nudged half a pixel down so its centre meets the lowercase letters' middle rather than the line box's. No hover ground, no press scale, the arrow cursor, and a press does nothing — nothing happens when it is pressed, so it is not drawn as something to press. It is one Tab stop (role="img", named About <the field>): the card opens on hover and on focus, Escape shuts it, and its words are the glyph's description. Its hover target reaches 6px past it. A card explains; it is not an action. Drawn as a button it promised a press that did nothing. The keyboard and a screen reader still get the same explanation the pointer does.
The icon does not dim with its row. When a row does not apply and its label dims (Variants with nothing switched on), the info glyph keeps its colour. What the field is for is still worth knowing — often most when the field is off.
The foundation's tooltip, as it is — unless the card carries a drawing (below). Its inverted surface and its own enter and exit; max-w-64; the title in medium weight, the body at text-background/70; opened from the glyph's start edge (side="top", align="start"), so it lies over the label column, not the control it explains. One card look across the product, and no second motion vocabulary.

Warnings

What is true of a field and worth knowing, but holds nothing back, is a warning glyph beside its label — never a sentence under the field. A format that cannot carry every shape, images exported without labels, a class nobody labelled, a schema a publish would move to. The pattern is WarnTip (patterns/WarnTip.tsx): InfoTip's shape in the warning colour and glyph, so "here is something to know" reads apart from "here is what this means" at a glance. A KPI cell carries one in its label row (KpiCards' warning).

⌗ Model ⚠   [ YOLOv10                 ⌄ ]    the glyph beside the label; the card on hover and focus
            ┌──────────────────────────────┐
            │ YOLOv10 cannot take every-   │    the title: the warning in a few words
            │ thing the schema allows      │
            │ The export asks before it    │    a line on why it matters
            │ drops a shape.               │
            └──────────────────────────────┘
Rule Why
Beside the label, outside it, as an info glyph is; in a KPI, at the label row's end. The row stays one line, and the glyph sits by what it is about.
TriangleAlert, in warning, a glyph — TipGlyph's, as an info glyph is: 14px (12px in a KPI's label row), no fill and no press, one Tab stop. Its name is Warning: and the title; its description is the rest, so a screen reader hears both without opening the card. A warning is never only a colour, and the keyboard reaches what the pointer does.
The card is a title and a line — the warning in a few words, then why it matters or what happens next. Nothing interactive. One glance answers it, and a tooltip takes no focus.
Only what holds nothing back. A problem that blocks an action — a consent the format asks for, a refusal — stays a sentence where the form says problems. A card is opened by choice; what stops the person must reach them without one.

Illustrated info cards

When a choice's effect is easier seen than read, its info card carries a drawing. The pattern is ArtTip (patterns/ArtTip.tsx): every rule of an info glyph above holds — beside the label, the current state, supplementary, nothing interactive, reachable by focus, Escape shuts it — except the surface. A drawing needs the surface it was drawn for, so the card is the popover's light surface, w-52, rounded-xl over p-1.5: the drawing on a bg-muted/50, rounded-md panel exactly as tall as the drawing (px-2.5 py-2, the drawing at full width), then the title and a line or two. No fixed panel height: an empty margin around a drawing is space the card spends saying nothing. The recipe's augmentations and variants use it; the model's card, which is words, keeps InfoTip.

  • The first card waits 400 ms and scales in from its button (0.96 to 1, 150 ms, strong ease-out); one asked for within 300 ms of another closing is there at once and without motion, and a card always closes without motion, so running down a column of buttons never shows two.
  • The drawing is decoration. It is hidden from assistive technology; the title and the line say everything it shows.

Drawings

A drawing explains a behaviour; it is never a preview of the person's own data. The recipe's drawings (screens/dataset/recipe/art.tsx) and the annotator's views follow these rules; the empty states draw a window and a front card of their own (patterns/EmptyArt.tsx, see EmptyState in docs/content/ui/product-principles.md), and the error pages, of the same family, a street in greys under a bounding box in the empty states' coral (patterns/error/ViewfinderArt.tsx, see ErrorPage there):

Rule Why
A photograph is two hills and a sun in the surface's own greys; the one colour is the annotation box, in info. What a person decides about an image is what happens to their labels, so the box is the thing to watch — and one accent says which part matters.
Show the result, not the control. An augmentation is drawn as original → result; a fit as the photograph meeting the frame, the padding hatched. The drawing answers "what will this do", which is the decision.
One cue per idea, and only where the result alone is ambiguous. Flip's result carries its dashed mirror line; Rotate's arrow turns where the others' run straight; brightness shows one darker and one lighter result. Nothing else is added. A drawing earns clarity by subtraction: each extra mark is something else to read.
Drawn to its own edges. A drawing's box ends where its marks end, so the container sizes to it. Margins inside a drawing become dead space around it.
Elevation is a layered shadow, never an outline — a hairline and two soft shadows, pure black, and in dark a pure white hairline. The edge exists only to lift the card; a tinted neutral would pick up the surface under it.
A drawing that is always on screen sits on a stage: the stage ground, one product surface on it running off its end and bottom edges, a mono caption naming what is drawn. The recipe modal's preview, while it has no picture to show, is the one such place. It reads as a glimpse of the product rather than a framed picture, and the caption says in words what changed.
It follows the choice, and the option under the pointer or focus before it is chosen. Seeing an option before choosing it is the point; leaving the option hands the drawing back to the choice.
Every change is a transform or an opacity on a part that is always there (240 ms, strong ease-out), none under reduced motion. A choice changed mid-move turns the drawing around where it is, and nothing re-mounts.

Removing a row

A row's removal is a quiet trash at its end that asks before it acts. The icon keeps its muted colour at rest and under the pointer — the ground alone says it can be pressed — and a press opens a small card from it: Remove <name>?, what goes with it, then Cancel and Remove <thing> in the destructive colour. Cancel is first and takes the focus; Escape or a press outside shuts the card and hands focus back to the trash; after the removal, focus lands on the row that took its place, or on the section's add button. The class sheet's attributes are the first (RemoveAttribute in patterns/ClassFields.tsx).

Rule Why
No red until the consequence is chosen. Red on a resting icon is an alarm about a press nobody made; red on the one button that removes says what that button does.
The card says what goes, never more than is known. A confirmation is answerable from its button alone, and the line under the title only names what leaves with the row.

A row that belongs to another

A row that exists only because of the row above it is drawn as its child: its label indented 20px (PropertyRow's nested), as a class's attribute fields are under their attribute - and where several such rows hang from one control, thin tree lines (.vs-tree: a trunk and a rounded elbow to each row) say which control they belong to, as an open attribute's fields hang from its chevron. A parameter that exists only while its switch is on — brightness's Amount in the recipe modal — goes one step further and opens inside its operation's row: under the name, running to the row's end, with its value in a chip where the switches' edge is, so the row stays one thing.

Detail cards in a list

When a list's options need more than their name, the list shows names alone and the highlighted option opens a card beside it. The list stays scannable, and the detail is there for the option being considered. The pattern is ExportTargetSelect's compact form (patterns/ExportTargetSelect.tsx); the card is the same title-and-lines card as above.

  • The card follows the highlight, for pointer and keyboard alike. Radix moves a list's highlight by focusing the option, so the card is opened from the option's focus and blur — never from hover alone, which the keyboard cannot reach.
  • The first card waits, the next ones do not. The first opens after 400 ms; once one has shown, the next follows the highlight at once and without motion — its enter and exit are switched off — so scanning the list is not a flicker of cards and two cards never overlap. Closing the list starts the wait again.
  • One Escape closes the list, card and all. The card is not a layer of its own to dismiss: an Escape that reaches it closes the list, exactly as it would without the card.
  • A screen reader hears the detail with the option. The card is visual; the same words are in the option as visually hidden text, so the option's accessible name carries them.
  • The card's anchor is the whole row, not the option itself. An invisible, full-row span inside the option anchors it. A tooltip trigger wrapped around a Radix option would overwrite the option's own data-state.
  • Where comparing options is why the list is open, the card is a pane of the panel. The suggest bar's model list (annotator/SuggestModelPicker.tsx) holds the highlighted model's card beside the list from the first frame, following ↑/↓ and the pointer with no wait and no entrance; the rest holds — the option carries the same words for a screen reader, and one Escape closes the panel.

Paging a table

A table that has more rows than a screen is paged, client-side, over the rows it already filters and sorts. The pager is patterns/TablePager.tsx, its arithmetic is patterns/pagination.ts (usePagination(rows, { pageSize, resetKey, reveal })), and no query or API changes: a table that can grow past a page pages, and a gallery that already loads one source at a time (the Assets section) does not. It comes in two forms, by what the table is to its page.

Form When Where Says
Footer (TableFooter) the table is the whole page or section — Projects, Models, the Classes section, and the Overview's Batches (from 10 to a page); 25 to a page otherwise a bar under the table: h-12 shrink-0 border-t (below sm it wraps to two lines and drops the page-size choice), muted at 40% mixed into the background, text-xs text-muted-foreground, the page's inset at the start, 26–50 of 312 projects (the range in font-medium text-foreground, tabular figures), plus · filtered from 400 when a filter narrows it and No projects match when it leaves none; at the end Rows per page with a compact select (10 / 25 / 50 / 100), Page 2 of 13 and four steps « ‹ › »
Inline (InlinePager) a table that sits inside a page and must stay compact; 10 to a page, no rows-per-page choice the table's own header band, after its filter Page 2 of 9 and ‹ › — small steps
  • The step is one recipe. A bordered square — size-7 in the footer, size-6 inline — rounded-md border bg-background shadow-xs, icon size-3.5, hover bg-muted, pressed active:scale-[0.97], transition-[background-color,scale] duration-100 ease-out and none under motion-reduce. A step that cannot go anywhere is faded (text-muted-foreground/40), shadowless and does not press, and has no tooltip; an enabled one is named by its tooltip — First page, Previous page, Next page, Last page. The steps are ordinary buttons: no shortcut is bound to them.
  • A table of one page has nothing to page. The inline pager draws nothing; the footer stays, because it is also the table's count.
  • The footer stays; the table scrolls. In a fitted pane the table's frame scrolls above it. Where the document scrolls it sticks above the status bar (--page-inset-bottom), opaque, so rows pass beneath it.
  • A page change returns to the table's top, instantly. Its own scroller goes to the top, and a table the document had scrolled past is brought back under the tabs. Never a smooth scroll: paging is frequent. Changing Rows per page keeps the page that holds the first visible row.
  • A narrower view starts at the first page. The filter, lens and sort feed resetKey; rows that shrink under the reader clamp to the last page that exists.
  • A row named from outside is on the page shown. The URL's open batch, the panel's own J and K, a class a review line opens, the row focus returns to: reveal brings the page holding it. Walking rows with the arrow keys stays within the page.
  • A count is said once. The footer says how many rows and of how many; the status bar keeps what the rows add up to (13 images · 11 to annotate, 3 ready), over every row the filter leaves and not only the page on screen.

Band tools

A band that shapes a view — the Assets band, the Overview's Batches band, the Models and Projects toolbars — carries its tools as one row of quiet icons, then a hairline, then its action. The pieces are patterns/BandTools.tsx; a band offers only the tools it has, always in this order.

… Batches  2 of 6 ──────────────────────── [⌕] [≡¹] [✦] │ [▣+] [✎ Annotate ▾] ┐
… Models ─────────────────────────────────────── [⌕] [≡] │ [+ New] ┐
                                    ┌ ⌕ Filter by…            ┐
                                    │ ▢ Origin  Hugging Face › │   the properties, then
                                    │ ✦ Ability              › │   one property's values
                                    │ ✕ Clear                  │
Rule Why
Each tool is ToolIcon: a 28px ghost square, 14px icon at a 1.75 stroke, text-muted-foreground, named by its tooltip, and in the foreground ink while hovered, open, or carrying something applied. The row is gap-0.5; a BandAction puts a 16px hairline before the band's action. Tools are looked past until needed; what is applied, and the action, are what the eye should find.
Search, Filter, Sort, View options — in that order. Search is BandSearch; Filter is BandFilter; Sort is SortMenu (a key, then which way; the tooltip says the order in force); View options is ViewPopover (the Assets tile size). One order everywhere, so a tool is found where it was last time.
What applies is said on the icon. Filter carries a count of the filters applied (bg-primary, 9px tabular figures); Sort and View carry a dot while they have left their default. Count and dot grow in from scale-75 and nothing, 150 ms on the strong ease-out (Tailwind's starting:); a count changing to another does not move. The list's shape is readable without opening anything; the arrival says "something now applies", and a change of number does not need saying twice.
Filter is a searchable menu in two steps (Command): the properties the list can be filtered on, each with its column's icon and, once chosen, its value, then — in the same popover — one property's values, All first, the chosen one checked. A choice returns to the properties, so several combine; ← or Backspace, while nothing is typed, goes back. With one property (Show, Source) the popover opens on its values and closes on a choice. A value list searches only past six values. Clear ends the menu while anything applies. A step reached by a press slides 4px in from the side it was reached from and fades, 150 ms; the first step rides the popover's own entrance, and a step reached by a key does not move. The product's reference: pick what to filter on, then by what. A search over three values is noise.
Search morphs out of its icon, and back into it. One shape changes (unfold in lib/motion.ts): the field is laid out at once and its clip opens from the icon's footprint, rounded like its corners; a sliver drawing its left border rides the clip's moving side, so the shape is bordered all round as it grows; its border and fill arrive from the icon's own (none, or the hover wash); the magnifier travels from the icon's place to the field's start; the words fade in only past 55% of the time, once the magnifier has all but landed. 220 ms on the strong ease-out; left empty, it folds back the same way in 180 ms, words gone first in 100 ms, and keeps its width until it has landed — the icon then takes its place on the very pixels the fold ended on. It sits first among right-aligned tools, so it grows into the band's free space and nothing beside it moves. A query keeps it open. Either direction turns around where it is (reverse): leaving mid-unfold plays it back, and the field taking the focus mid-fold keeps it open. While it morphs the field's own transitions and focus ring are held back (data-morphing); landing, the ring fades in once. One control changing shape, not two swapping; clip-path, transform, opacity and colour only, so layout never animates and the band never shifts.
From the keyboard nothing moves. / (Batches) or ⌘K / Ctrl K (Projects) opens the field at once and focuses it, ring and all, with no transition; Escape on an empty field puts it away at once. Neither fires while somebody types in a field or a dialog or menu is open. What a key does is done a hundred times a day.
Hover is instant; a press scales to 0.96 in 100 ms (BAND_PRESS, which also takes back the button primitive's 1px press shift; the band's own actions — Auto-label, Add images, Annotate — share it), none under motion-reduce. Under reduced motion the search only fades — out, then the icon fades back in — the steps only fade, and count and dot only fade in. Restraint where the pointer sweeps; feedback where it acts.

A walk in a dialog

Work that takes several decisions in a fixed order, and ends in something the person then acts on, is a centred dialog with a track — not a page. Add images is the one: Upload, Frames & settings, Batch (screens/addImages/AddImagesDialog.tsx). It is opened from where the work is asked for and closes back onto it, so it needs no way out of its own.

  • The frame. sm:max-w-2xl, max-h-[90dvh]; a header with the title, one line naming what it acts on (to road-signs) and a close; the body scrolls between the header and a footer band (the DialogFooter tint, bg-muted/50 over a hairline). The footer holds a way back (ghost), one secondary (outline) and one filled action, the step's.
  • The track. Three equal segments under the header, each a 4px bar over its numbered label. A segment fills by scaleX from the left, 300ms on the strong ease-out (cubic-bezier(0.23, 1, 0.32, 1)), as the step it names gets done; a reached segment before the one shown is a button back to it (≥40px tall), until the walk passes a point it cannot be undone from. Which step is reached is derived from the data, never stored apart from it.
  • A step enters from the side the walk is heading. 24px and opacity, 220ms on the same ease-out; transform and opacity only, and nothing under prefers-reduced-motion.
  • A selection is one card. Its count, size and ✕ head it on one line, over what was chosen — pictures with the image outline (vs-image-outline), inside radii concentric with the card's.
  • What the walk ends in is acted on in place. A next step that would be its own dialog — approving the batch — swaps the step's content instead, and takes the footer: one modal deep.
  • Closing hides; it does not discard. The host keeps the walk mounted, so work in flight goes on and the dialog reopens on it; a walk that has settled starts over.

A line that offers work

When the product could do something for the person, it says so once, in a line, and only while there is something to do. The one so far is the Overview's auto-label offer (screens/AutoLabel.tsx, its reading in screens/autoLabelOffer.ts, its state in screens/useAutoLabel.ts): a line between the Batches band and the table while images nobody has labeled sit in batches that declare pre_label.

┌ ▢ Batches  3 ─────────────────────────────────────────────────────────── [⌕] [≡] ┐
│ ⧉ 233 images have no labels yet. A model can draft them…   [✦ Auto-label them]  ✕  │  h-11, muted/40
├ Name ─────────── State ──────── Labeled ──────── Jobs ──────────────────────────────┤
          Not now ↓   the wand travels into the band and becomes the icon
┌ ▢ Batches  3 ─────────────────────────────────────────────────────── [⌕] [≡] [✦] ┐
Rule Why
The line is h-11 border-b bg-muted/40, the page's inset, text-sm: a boxed icon (size-6 rounded-md bg-background shadow-xs ring-1 ring-foreground/10), the count in font-medium tabular-nums and the rest muted, then an outline button that names the verb and its object (Auto-label them) and a ghost ✕ named Not now. One sentence a person reads without stopping, and one press to act on it.
It is there only while there is work. Nothing waiting, no line. Where the action is declared but nothing is waiting, the band keeps a quiet icon for it, one of its tools (Band tools). Where nothing declares it, neither. An offer that is always there is furniture; legality is the wire's (ui-capabilities).
Put away, it goes into the band, and is remembered against its number. Not now is kept per project (data/prefs) with the count it was said to; the line returns only when more is waiting than that. Dismissing is "not these", not "never": new work earns a new offer, the same work does not.
It arrives and leaves; it is never animated in on load. It stays mounted and opens by its grid row (0fr → 1fr) with its words fading in and rising 4px, 220 ms on the strong ease-out; it closes the same way in 180 ms, and the table follows its height. CSS transitions, so a change mid-way turns around where it is. A page that loads with the line already there just shows it. Motion says something changed; on load nothing did.
Put away, it morphs. The wand on the line's button flies — a FLIP on the Web Animations API (lib/motion.ts: flipFirst before the change, flipPlay after it) — onto the band's icon, 260 ms on cubic-bezier(0.32, 0.72, 0, 1), fully drawn the whole way. The button's surface, its words gone in the first 100 ms, shrinks into the icon's box and blurs out (blur(2px)) while the icon's own surface fades in there; the line closes under it. The icon itself never moves, so pressing it mid-flight lands. Cancelled when the line comes back or the page goes. The person sees where the offer went, so the icon is not a mystery later.
Left any other way — a run started, so nothing waits — it closes without a morph and the band's icon fades in. The morph answers a press; a change from the wire only moves what must.
Under reduced motion only opacity changes: the line's words fade, its row opens at once and closes once they have faded, and the icon fades in. Nothing flies or rises. A fade carries the change without the journey.
The band's icon presses, it does not hover. active:scale-[0.97], 100 ms ease-out, none under motion-reduce; no transition on hover. Restraint where the pointer rests; feedback where it acts.

The motion values are named once, in lib/motion.ts (EASE_OUT, EASE_SETTLE, DURATION), and read from there.

Links

A link takes you somewhere, and it says so with ↗. Every link in the product — the Button's link variant, or a hand-made one marked .vs-link — ends in lucide's ArrowUpRight (size-3.5, size-3 beside 11–12px text, stroke 1.75), whether it opens another section, a batch's panel, the editor or another site. A control that acts where it stands (Load v4, Reload the draft, Clear search) may look like a link in a sentence but carries no arrow: the arrow is a promise of going.

All 48 images in the dataset   Open the dataset          rest: underline 30% of the link's colour, no ↗
                               ‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾
All 48 images in the dataset   Open the dataset ↗        hover: underline in full, ↗ arrives
Rule Why
The underline is always there, muted: 1px in the link's own colour at 30%. Pointed at (where there is a pointer to hover with) or focused, it takes the full colour in 150 ms on ease. A link reads as one before anything points at it; the change is a colour, so it does not move.
The ↗ appears on hover. At rest it is not shown (it keeps its place, so nothing shifts); pointed at or focused, it fades in while travelling the last 4px toward where it points — 200 ms on the strong ease-out, in the text's colour — and leaves in 120 ms. A row whose link is the whole row (.vs-link-row: a project's row, a job's, a KPI card) shows its ↗ the same way on the row's hover. Where there is no pointer to hover with, the ↗ is always shown. The arrow answers the pointer with where the link goes, without decorating every link at rest. CSS transitions, so a pointer passing through turns it around mid-way.
Focus is the link's own mark, not a box. Tabbed to, a link draws no border and no ring; its underline takes the full colour and doubles to 2px, and its ↗ arrives. A button's focus box hugs the words of a padless link and fights its underline; a 2px underline is plain to the keyboard and reads apart from a hover (1px).
A link's words select like the sentence around them (user-select: text, overriding the package Button's select-none), and a line that sets a link beside its words keeps a real space between them, though the flex gap draws it. A copied line has no hole where the link sat, and reads as words.
A press presses: scale(0.97), 100 ms ease-out. Feedback where it acts.
Under reduced motion only the colours change, and the ↗ appears by fading alone. The colour carries the hover without the journey.
One rule, in ui-core/src/styles.css. The link variant's rule is outside any layer so it outranks the package's own transition-all; .vs-link sits in the components layer so a link can still adjust its offset in utilities. Every link moves the same way without each screen restating it.

Progress

Progress is said one way: the number, then a small ring. ProgressReadout — the number quiet (muted-foreground, regular weight, tabular figures, a % the digits' own size), then a ring a ring's width after it: 14px unless sized to a larger figure, a stroke about a sixth of its diameter with round ends, from twelve o'clock clockwise, the arc progress on a track of progress/15, closing in success once done. The glance never lies: the ring stays open while anything is left and shows once anything is done, and a caller who knows better than the count says so (complete). A model's own work — drafting labels — takes info instead. Where a bar's length is the point (a long operation: an import, an ingest, a model's download) the bar is ProgressBar, in the same colours. Nothing in either animates.

Pointed at or focused, an indicator that has more to say opens its card (ProgressHoverCard): Labeled 10 of 24 · 42% on one line, the whole split as one segmented bar in its states' colours — the wire's own ProgressCounts, so the parts add up — the parts named inline, count first, and whose it is under a hairline. The card's percent rounds as the readout's does and never says 100 while anything is left.

Rule Why
The first card waits 450 ms; the next, within 400 ms of one closing, opens at once and without motion. A pointer crossing a table is passing through; one reading down a column has shown it wants the cards.
Focus opens it at once, and the indicator is a tab stop only when it has a card. What the pointer can learn, the keyboard can too; a plain readout adds no stop.
It enters from its trigger (Radix's transform origin), scaled from 0.96 and faded over 160 ms on the strong ease-out, and leaves in 100 ms; the bar's parts grow from their left edges 30 ms apart, just behind it. Out faster than in; the parts arriving in order read as the split.
Under reduced motion only the card's opacity changes, and the bar is simply there. A fade carries the change without the journey.

States

A state is a chip: a tinted ground, a glyph that fills as the thing nears done, and the word. The pattern is StateChip (patterns/StateChip.tsx), with the states themselves computed off the wire as plain functions beside the screen that shows them (screens/dataset/states.ts, phaseState in patterns/project/batchRowModel.ts, the Projects list's STAGE). A batch's phase — the Overview table, the batch panel and its condensed line — and a project's stage on the Projects list are chips.

One glyph grammar for every family, so a new state finds its shape without a meeting. The glyphs are lucide's at one 1.5px stroke (absoluteStrokeWidth), 14px in a chip; where lucide has no icon for a shape it is drawn on lucide's own grid from lucide's geometry.

Glyph Shape Says For
backlog CircleDashed not committed a draft batch, an empty project, a tone-draft fact
todo Circle committed, nothing done yet an approved batch, a project not started
partway a pie in quarters — Contrast at a half; its inner disc at a quarter and three how far along a batch being labeled, a project annotating, Exporting 12/48
review the pie at three quarters the turn that waits on a person a project in review
ready CircleFadingArrowUp, turned to point on on its way somewhere else a finished batch outside the dataset, a project ready to promote
done CircleCheck done a batch in the dataset, a project up to date, Intact
drafted CircleDashedCheck done, not yet somebody's a project changed since its release; a model's draft
skipped Ban, mirrored decided against a chip whose subject was skipped as a whole; no screen draws one yet — a skipped frame is a dot (below)
cancelled CircleDashed's dashes around CircleX's cross stopped on request a cancelled run
failed CircleAlert failed Problems found, Failed

A pie is drawn in quarters — a quarter, a half, three quarters, rounded to the nearest and never empty or full — so it is never read as the ring or the check, and a glance reads the step rather than a percentage the number beside it already says.

Tone Default glyph Ground and ink Reads as
draft backlog muted / muted-foreground not started, nothing to do, not asked — Not verified, Same as v0.4
progress partway progress/10 / progress partway — 40 of 48 labeled, Exporting 12/48
review review info/10 / info something to look at — Changed since v0.4, 1 of 2 classes used
done done success/10 / success done — Intact, All labeled, Downloaded
failed failed destructive/10 / destructive failed — Problems found, Failed
active partway info/10 / info work in flight, on the lifecycle mapping — a batch being labeled, a project annotating
waiting review warning/10 / warning waiting on a person — a project in review

A lifecycle state — a batch's phase, a project's stage — takes its family from the product-wide mapping (product-principles.md), hence active and waiting; a state names its glyph where its tone's default does not say it (an approved batch is draft with todo, a finished one done with ready).

A frame's progress is a soft dot, not a chip. The annotator's frame information card, the job review's rows and the frame dock's panel of frames draw an asset's progress — skipped included — as an 8px dot with a 1.5px border from progressDotClass (screens/batchState.ts), shape and tone with no glyph, beside its word where there is room. The shape says how far along — hollow (unannotated), dashed ring (pre-labeled: a model's draft), ring (in review), filled (annotated, accepted), muted fill (skipped) — and the tone is soft, never the token at full strength: an outline at 45–70% of the tone over its -surface, or a fill at 35%. Pre-labeled is info, a model's own work, never primary. Where the word itself carries the tone it is the tone's ink on its -surface (progressChipClass), the pair the foundation holds at 4.5:1; elsewhere the word is muted-foreground. A strip's cells (progressCellClass) take the same tints. These glyphs are for chips; the two vocabularies do not mix.

Rule Why
The glyph carries the state, the word names it. The icon-only form keeps the word as its accessible name. A chip reads at a glance before its word is read, and the icon-only form still says it.
The glyph is the only icon a value gets. A field's label may carry the icon that names the field (Fact sections, below); the value beside it never carries one but a state's glyph. A state's icon is information; any other icon on a value is decoration.
What a state means beyond its word is its card — a title and a line or two, on hover and on focus (the chip takes focus when it has one). Where the words beside an icon-only chip already say the title, the card drops it (linesOnly). A chip inside a row that opens on a press carries no card (the batch table, the Projects list): the row is the stop, and a second one per row is noise; the batch panel's chip has its card. Said once, as an info glyph's card is.
cancelled is draft, not failed. Somebody asked for it: a decision is not an error.

Fact sections, and the action a thing is opened for

What a thing is, and what is done with it, sit on one sheet: its numbers in a KPI row over the page, and what the numbers cannot say in a rail of panels that fold — the action is a panel too, not a dialog. The sheet is the Overview's — cells on a 1px gap over the border colour, no cards, every text on the pane's one inset (px-4 md:px-6), fitted to the window — so the page reads like every other project screen. A panel is the app's band and its fields; folded, the band says the panel's answer instead. The work the thing is opened for is one of those panels, last, with its controls inside it and its progress as its answer. The pattern is the Dataset (DatasetScreen, screens/dataset/VersionKpis.tsx, Fold.tsx, VersionFacts.tsx, VersionNav.tsx): a release reads Assets, Annotations, Split and Schema over the page, and Proof then Export — the model, the recipe and the button — in the rail, above the Releases it was picked from, docked at the rail's foot.

◫ Assets     ◎ Annotations   ⑂ Split        {} Schema         the KPI row: one fixed height, ⚠ in a label row
48           427             70/15/15       v3
Same as v2   8.9 per asset   Seed 0         Built with 0.0.1b4
────────────────────────────────────────────────────────────
⛨ Proof  ◌ Not verified                ›   folded: the answer beside the title
⬚ Export  ✓ Downloaded                 ⌄   the work's state is said open or folded
⌗ Model ⚠    [ YOLO11               ⌄ ]     a field: the icon that names it, its label, the value
⚗ Recipe +   [ yolo12-640-aug4      ⌄ ]     the "+" beside the label writes a new one
             Letterbox 640×640 · flip  ⋯    what the chosen one does; Edit recipe, Delete
[               Export                 ]     the view's one filled control
═══════════════════════════════════════════   the dock: its own region, its own height
◷ Releases                             ⌄
● Working copy        unpublished · 48       capped; scrolls inside itself
Rule Why
The numbers are the KPI row (KpiCards), four cells of one fixed height over the page, and the work row under it takes the same four columns from xl — the rail one, the wall three — so every vertical hairline continues one from the KPIs. A cell whose source has not answered shows a dash and keeps its height. The page opens on the Overview's KPI row, and opening another version changes text, never the layout.
Every panel folds, and its band is the toggle — the app's band: 48px, the icon that names the panel, the title in sentence case and semibold, its answer quieter beside it, the chevron at the line's end. The heading holds the toggle (<h2><button aria-expanded aria-controls>), never the other way round. The screen holds which panels are folded, so opening another version keeps them as the person left them. One band across the app, and folding is how a person makes room for what matters to them now.
Open, the fields answer; folded, the heading does. The answer — 48 images · 427 annotations, a state chip — comes in beside the title only while the section is folded. Said once: an open section already shows its answer in its fields.
A fold is a transition on what is always there. The body stays mounted and closes by its grid row (1fr → 0fr) with its opacity, 200 ms on the strong ease-out, and the chevron turns with it; none under reduced motion. Folded, the body is inert. A second press turns it around mid-way, nothing re-mounts, and what is folded is out of the tab order and the accessibility tree.
A field is the icon that names it, its label and the value, on one 6.5rem label column (Field). The icon is lucide at 14px and a 1.5 stroke, in the label's colour; it names the field, never the value. The column is scanned by shape before it is read, and the values start on one edge.
A field's action is a quiet button in its row — Verify beside the integrity state, the manifest's copy and download as icon buttons after the hash, each 28px with a 40px hit area. The action sits by the fact it acts on.
The action a thing is opened for is a panel, open by default, last — not a dialog over the page and not a button in the project bar. Its controls are inside it; its one filled button spans the column, and it is that view's one filled control, so the bar draws nothing beside it. It is read with the facts it depends on, and nothing has to be opened to reach the thing the page is for.
The work's state is the section's answer, open or folded — Not exported this session, then Exporting 12/48, then Downloaded — the one heading that answers while open. A job's progress is a fact about the thing, like its integrity, and folding must never hide it.
The form wraps the release's facts alone, and a fold never unmounts it. The section only lays out what the form hands it (ExportForm, a render prop); folding keeps the body mounted, so a folded Export keeps its job. The form never wraps the column or the wall: opening another version must not re-mount them. Layout and work have different lifetimes, and a re-mounted column loses its scroll and moves what the person was pointing at.
What the action needs is chosen inside it. A recipe exists for an export, so it is chosen in the Export section: a select of names (Detail cards in a list), a "+" beside the field's label that writes a new one, and — once one is chosen — what it does on a line under the select, with Edit recipe and Delete behind the "⋯" at its end. Writing opens its own dialog over the page — one deep, never a dialog over a dialog. A thing chosen where it is used needs no shelf of its own, and a single modal is a single place to be.
Controls are the app's size — 28px controls, names alone in lists with the detail on the highlighted option. The section is a form among facts; it reads as one column of labels and one of values.
Warnings are glyphs, problems are sentences. What holds nothing back — a lossy format, recipes that could not be read, images without labels — is a warning beside its label (Warnings); what blocks — a refusal, the consent a format asks for, a download that failed — is a sentence in the panel, under what it is about, and a stale report never stays under a failed one. The person finds the reason where the action is (ui-capabilities: no swallowed refusal), and a one-line row stays one line.
The list a thing is picked from is docked, never under what changes. The facts scroll in the column's top region; the releases sit in a region of their own at its foot, capped (min(38dvh, 18rem)) and scrolling inside themselves, so their place is set by their own height and never by the facts. Folding the dock hands its height to the facts. The facts differ in height from one version to the next; a list under them moves under the pointer every time an entry is opened.

Settings

Settings is one page of bands, read top to bottom, with its index in a column at the left (screens/SettingsScreen.tsx, screens/settings/). It speaks the sheet language of Models, Projects and the Dataset rather than a form's: full-bleed, the 48px header band with the page's icon, and no cards.

⚙ Settings
┌ index ──────────┐┌──────────────────────────────────────────────────────────────┐
│ This browser ⓘ  ││ ◐ Appearance                                                 │  a 48px band per section
│▌◐ Appearance    ││   ◐ Theme          [▣ System][☼ Light][☾ Dark]  Follows …     │  icon · label column · value · action
│  ▤ Layout & tips││ ▤ Layout and tips                                            │
│  ⚿ Access       ││   ▤ Layout         Panel widths return to …   [Reset layout] │
│ Workspace ⓘ     ││ ⚿ Access                                                     │
│                 ││   ⚿ Credential     Browser session   Signed in by this server │
│  ⚲ Integrations ││ ⚲ Integrations                                               │
│  ⚙ Server       ││ ⚙ Server                                                     │
│  ⓘ About        ││   ☺ Workers        1 · default  VISIONSET_JOB_WORKERS     ⧉  │
└─────────────────┘└──────────────────────────────────────────────────────────────┘
  ⓘ the scope's meaning, said once in an info card
Rule Why
Two separations, one per level: a full-width hairline between sections, a fainter one between fields. The sections are grouped by scope — This browser, Workspace — named in the index, and what a scope means (kept here only; read-only, a change takes a restart) is said once, in the info card (InfoTip) beside its name there, and is the glyph's description. The page carries the settings, not a banner per group; whose a setting is stays one hover or one Tab away, and never repeated on every section.
A field is the icon that names it, its label on one 11rem column, the value with what it means quieter after it, and its action at the row's end, on a column no wider than max-w-4xl while the bands run edge to edge. The Dataset's field, widened for settings' longer labels: the column is scanned by shape, and the values start on one edge.
The index follows the reading, marked as the Dataset marks its open release: a muted fill and a 2px ink edge, moved without motion — the scroll already moves. A press scrolls there, smoothly unless reduced motion is asked for; an address opens the page on its section and holds it there while the sections fill in, until the person scrolls, types or presses. One page reads faster than five, and the index still says where one is and lets one jump.
Row actions are quiet: outline or ghost, 28px, pressed to 97% in 100 ms, nothing on hover; a variable's name is copied by an icon button with a 40px hit area whose icon cross-fades to a check. They sit in a list the pointer sweeps; the press is the feedback.
Nothing workspace-scoped is an input. A fact names the variable that sets it, and the Workspace info card says a change takes a restart. The page says where a value is set instead of pretending it can set it.
Access names the credential and never shows it. Browser session or Token on one row, with Sign out at its end on a token only; Use a different token opens a masked field under its row, focused, closed by Cancel or Escape, and a refusal is a sentence under the field. A secret is pasted once and held by the host; a session is a cookie no page can sign out of, so it is not offered.

Context menus

A right-click on an item opens that item's menu — the same list as its ⋯, never a second one. Two anchors, one list (patterns/ItemMenu.tsx: ItemContextMenu on the item, ItemMenuButton for the ⋯, both drawing one MenuGroups). A context menu is a second door to what the surface already offers, never the only door: nothing reachable only by a right-click, because a touch screen long-presses for it and a keyboard needs Shift+F10 or the menu key.

Rule Why
The foundation's menu as it is: its dark surface, min-w-52 max-w-72, an icon at the start of each entry, the shortcut at the end where the surface binds one. It opens at the pointer, enters (fade and 95% scale, 100 ms) and leaves without motion. One menu look across the product. An exit animation keeps the closing layer mounted, and the right-click meant for the next item would be swallowed by it.
Groups, split by a separator; the destructive group last. Navigation first (Open), then what changes the item, then what removes it. An empty group leaves no separator behind. Position is a promise: the dangerous entry is always at the bottom, a long travel from where the menu opened.
Withheld stays, saying why under its name. An action meaningful here that the item does not declare stays in its place, disabled, its reason on a second line at full contrast — not a tooltip, which a disabled entry cannot open. A withheld destructive entry is drawn plain, not red. ui-capabilities: disabled with its reason over hidden. Red on a thing that cannot happen is an alarm about nothing.
Absent when the whole mode forbids it. A read-only frame leaves its writes out rather than greying them; the page states the mode once, where it is seen. A menu full of greyed verbs only repeats the mode, entry by entry.
A right-click selects what it lands on, as a press would, so the menu is always about the selected item. One rule for what "the selected item" means.
Non-modal. A right-click on another item while a menu is open opens that item's menu at once. Closing puts focus back where the keys were working — the row, or the annotator's stage. Walking down a list, one right-click per row, should not cost a dismissing click each time.
No new verbs. An entry is an action the surface already has, a navigation one hop away, or a copy. A batch row's menu holds its pointers into the panel, never the lifecycle action itself (docs/content/ui/navigation.md). The menu is a faster door, not a second place where rules live.

Detail panels

The detail of a selected item is a panel at the right of the screen's row — never a sheet over the page on a desktop. An image, a batch, a class, a model: the list stays where it was, the detail opens beside it, and the two are read together. The pattern is DetailPane (patterns/DetailPane.tsx); a screen gives it the row's last place and the detail its children.

┌ list / grid / table ─────────────────────┐┃┌ detail ────────────────────┐
│ ▣ Images  48  …                          │┃│ Frame 0 · 0:00   1/48 ‹ › ⤢ ✕│  one 48px line across the row
│                                          │┃│                            │
│                                          │┃│  the item, read at the     │
│                                          │┃│  width the person chose    │
└──────────────────────────────────────────┘┃└────────────────────────────┘
                                   the handle ┘  drag, or focus and ←/→
Rule Why
The person sets the width. The panel's left edge is a window splitter (role="separator", aria-orientation="vertical", the width as its value): drag it, or focus it and press ←/→ (Shift for 64px), Home/End for the floor and the ceiling, Enter or a double press for the screen's own width. The width is remembered per screen, between a floor that keeps the panel usable and a ceiling of 62% of the row. A wide image, a long form and a table of jobs each want a different width, and only the reader knows which they are reading.
Its header is 48px, the band's height, with the item's title, its place and its controls, and a close button at the end (X, named for what it closes; Escape does the same). The list's band and the detail's header read as one line across the row.
It comes from the right and goes back there. It takes its width at once — the list beside it moves once — and its content slides in from the right edge with its opacity, 240 ms on the strong ease-out; it leaves the same way in 180 ms, holding what it showed, inert, then gives its width back. Transform and opacity only; a fade under reduced motion. Choosing another item while it is open swaps the content in place. The motion says where the detail lives, and a selection change, made tens of times a session, never waits on an animation.
Not a dialog. It is an aside labelled for what it holds; the page beside it stays live and nothing traps focus. The list and the detail are one surface, read and used together.
Below lg, a sheet — the same content from the right, with its own close and Escape. A phone has no row to share.

One exception: the Overview's batch panel is a sheet over the page. A batch is opened to be acted on — approved, completed, added to the dataset — rather than read beside its list, so its panel comes from the right over the page's scrim, as a dialog does, and a press outside it puts it away. It keeps the rest of this pattern: its 48px top bar (with what works on the whole batch, Auto-label, at its start), J/K walking the batches, and a left edge that resizes it, remembered, with the same ResizeHandle. Its controls are icon buttons named by their tooltips (patterns/IconAction.tsx) — a withheld one stays, disabled, its tooltip saying why — and what they say is a line above them, never under a 32px square.

One image detail

An image opens in the same detail wherever it is opened. The Assets section's ImageDetail (screens/images/ImageDetail.tsx) — its well, header, arrows and focus mode, in a DetailPane that focus expands to the whole row — is the Dataset's too; what only a surface knows comes in through its two openings, overlay (drawn over the picture, in a box exactly the picture's) and children (under the picture's own facts). A second viewer for the same picture is a second set of keys, sizes and words to keep true.

The scan view

A point-cloud scan sits on the same stage ground as a photograph. Its WebGL canvas clears to transparent, so the surround is the token in either theme, not a dark viewport of its own.

Rule Where
Points are coloured by their data, not by a token: by height along the frame's up axis on a five-stop viridis ramp, by intensity on a grey ramp, or by the colour the scan recorded. Height and intensity stretch over their 2nd-98th percentiles, so one stray return does not flatten the rest. Each theme has its own ramp ends, trimmed so both stay at 1.5:1 or better against that theme's stage (a test in frontend/ui-core/src/annotator/rampContrast.test.ts): viridis loses its pale yellow top on the light stage and its near-black bottom on the dark one, and intensity runs light to dark on light and grey to white on dark. The view and the legend follow .dark on <html> (useTheme), so a theme switch recolours an open scan and its legend together. A scan opens in its own colour when it records one, else by height; a mode the scan does not record is disabled with the reason. frontend/annotator/src/core/pointcloud/ramp.ts
Labels are drawn in their class colour, over the points, never hidden inside them, so a label can always be checked against the scan. classColor, frontend/annotator/src/adapters/react/pointCloudGl.ts
The selected label and the one being drawn are their class colour on a white under-stroke, drawn over the points and the other labels (which the points draw thinner, in theirs), the edges a box's own body hides dashed — the picture's rule: nothing on the scan is black. frontend/ui-core/src/annotator/ScanHandles.tsx
Handles are the picture's grips: a face handle or a polyline vertex is a white dot ringed in the class colour, the yaw ring a dashed class-colour line; over a top-down view the footprint is the class colour at 12% and the yaw handle a class-colour dot ringed in white. frontend/ui-core/src/annotator/ScanHandles.tsx
A scan wears the picture's chrome: the rail with the scan's tools, the tool bar's tool, class and one muted hint, the selected box's floating object bar, and the frame dock — whose end holds the scan's zoom and its display menu, risen from it as the frames panel rises. Where a region has nothing to show it says so in the stage's muted voice: the close-ups with no box selected, the camera band with no linked cameras. The box close-ups are a column of orthographic views at the stage's right, each with a muted chip naming it and its two extents. frontend/ui-core/src/annotator/PointCloudStage.tsx, ScanDisplayMenu.tsx, ScanCloseUps.tsx, ScanCameraBand.tsx

The image canvas

What is drawn on a picture is its class colour and white — never black — and only the bars floating over it carry elevation. The full metrics are in ui/annotator.md; the rules are these.

Rule Where
A shape is its class colour: a 1.5px stroke with round joins over a soft fill of it (14%); the pointer and selection add weight (2px, then 3px), never a second hue. No dark under-stroke, halo, outline or shadow on a shape, a grip, a tag, a keypoint or a prompt point; a selected shape alone stands on a thin white under-stroke. frontend/annotator/src/adapters/react/Shapes.tsx
Grips and vertices are round white dots ringed in the class colour, at exactly the positions the hit test measures. Shapes.tsx (Grips, Vertices)
Every object wears a neutral chip on a leader: the popover's surface floating above its corner — a class-colour dot, the class, the number in muted tabular figures, a 1px class-colour border at 55% (whole when hovered or selected) — tied to the corner by 1px of the class colour ending in a white-ringed dot. No shadow; it gives way when crowded (collapses, climbs its leader, goes under its shape only where no other shape is). A proposal's chip carries ✦ and its confidence coloured by tier, dashed. The same chip tags a scan's labels. frontend/annotator/src/adapters/react/ShapeTags.tsx, tagStyle.ts, ScanTags.tsx
A chip selects its object, and is still drawn inert — on a picture and on a scan alike. The one exception to "nothing drawn is a control" is made in the hit test, not the markup: the picture's pane, or the scan view's canvas, hit-tests the chips from the placement the tag layer drew (chipAt) before anything else hears the press, so no drawn element is ever a press's target and the focus rule holds; the selected shape's grips win over any chip. frontend/annotator/src/adapters/react/AnnotatorCanvas.tsx, tagFacts.ts, ScanTags.tsx, frontend/ui-core/src/annotator/PointCloudStage.tsx
Actions on the canvas are icon buttons in a floating bar (28px in 32px, concentric radii, a tooltip naming each and its key), lifted with vs-float — the elevation rule's hairline and two soft shadows; it enters at 0.97 → 1 in 140ms from its anchored side, the high-frequency review bar not at all. frontend/ui-core/src/annotator/CanvasBar.tsx, styles.css
The frame dock is the stage's one pill at its bottom centre — the stepper with the frame's position (a press types a number to go to), the job's frames, and the zoom — built as the bars one size up (32px buttons in a 36px vs-float pill on popover, 8px in 10px). The picture is fitted above the band it stands in, and the position is as wide as the job's widest number, so nothing moves. Its panel of frames rises from the grid button (0.96 → 1, 200ms) with a muted segmented filter whose chosen segment is a raised surface, never an inverted fill, and marks the frame on screen with a soft ring. frontend/ui-core/src/annotator/FrameDock.tsx, styles.css

Where the brand is

Robomous coral is identity: the VisionSet logo — drawn once, in frontend/app/src/shell/Brand.tsx, as the icon on the rail and as the full logo on the sign-in screen — its styleguide swatch, Robomous's own mark where a model's weights come from the Robomous registry (frontend/ui-core/src/screens/OriginLogo.tsx, on the Models page), and the empty states' drawings (frontend/ui-core/src/patterns/EmptyArt.tsx), where it picks out the one element of a motif that the empty space is for — a mark in a decorative drawing, hidden from assistive technology, never a control, a surface behind text, or a status. The drawings read it once, as variables on their root (--vs-empty-accent and its washes, mixed from --brand), and nothing outside them uses those; the error pages' canvas, the one other drawing of the family, takes them through EmptyArt.tsx's AccentScope, so the brand is still read in that file alone. Four sites, enumerated in tests/scripts/design_tokens.test.mjs (the package exposes no bg-brand, so a site paints with var(--brand)). A functional control reaching for brand is a semantic-colour violation however many other sites already use it correctly, and the gate and this section move together or not at all.

Verification

Gate Holds
frontend/ui-core/src/tokens.test.ts The extension stylesheet and token module agree declaration for declaration; no extension shadows a foundation name
frontend/{ui-core,app}/eslint.config.js No colour inside a class string (bg-[#fff], ring-[var(--x)]); the package closes Tailwind's default palette, so a named one produces no CSS
tests/scripts/design_tokens.test.mjs brand confined to its four sites; one icon library; no tailwind.config.js
frontend/ui-core/src/screens/preprocessing.test.tsx Each fit's card draws its own fit, decoratively; the preview's stage, drawn while there is no picture, draws the chosen fit and the one pointed at, and is hidden from assistive technology; each augmentation's illustrated card opens beside its label, says it in words, and one Escape closes only it; the amount opens inside its row. The recipe's info glyphs open on hover and say the current choice; the model list shows names alone, opens a card on the highlighted option, and one Escape closes both. Where an info glyph sits on other screens is held by review, not a gate
frontend/ui-core/src/screens/dataset.test.tsx, preprocessing.test.tsx The working copy reads as four KPIs with their warnings named and described; a release's export is a panel of its facts — open, last, holding the model, the recipe and the button — and Publish is the project bar's on the working copy only; a folded section's heading says its answer and its fields stay mounted but inert; the export's answer is the job's state, open or folded, and the job keeps going while the section is folded; verify and download failures are sentences, and a stale report leaves; the recipe is a select with the "+" that writes one, the chosen one's Edit recipe and Delete are behind its "⋯", its writer opens as a single modal, and a delete asks first and falls back to no recipe. How a heading, a field's icon and its action are laid out is held by review
frontend/ui-core/src/screens/ingest.test.tsx, videoImport.test.tsx Add images walks one step at a time on its track — a reached step behind the one shown walks back, nothing walks back past a launched run; a selection is one card headed by its count, size and ✕; approving the batch is the last step's own content, never a dialog over it; closing keeps a run in flight and reopens on it, and a settled walk starts over
frontend/ui-core/src/screens/screens.test.tsx The Dataset keeps one filled control: Publish release in the bar on the working copy, and on a release none in the bar — its export's button in the column
frontend/ui-core/src/patterns/itemMenu.test.tsx, annotator/canvasShapeMenu.test.tsx A right-click and the ⋯ open one list; a withheld entry stays, says why and refuses the press, drawn plain; an empty group leaves no separator; disabled, the browser's own menu comes back. A shape's menu leaves out Class and Delete on a read-only frame and lands each entry through its other door's path
frontend/ui-core/src/screens/overview.test.tsx (auto-label over the batches) The offer's line says the waiting count only where batches declare pre_label and leaves out a batch being drafted; Not now puts it into the band, is remembered per project and returns when the count grows; a run starting closes it; both places open the dialog; on load nothing animates; Not now flies the wand onto the band's icon and shrinks the button's copy into it, cleans up on landing or unmount, and under reduced motion only fades

The foundation's own token and palette gates run in Robomous/ui-core. A rule no gate holds is a rule under review, not an exemption.