Design canon

What is canon and in what order, the token set, and the component vocabulary with its props and enum values.

docs/design-canon.md · Shared with the app team; the source of truth for tokens and the component vocabulary

Reference for agents and people building or converting RoasterTools UI. Same content is meant to live in the design repo (roastertools/design) and in the app (roastertools/roastertools, as .claude/rules/design-system.md). Stack-neutral: it says what is canonical and what the vocabulary is, not how to build.

What is canon, in order

  1. Tokens in tailwind.config.js under the comment Design-system tokens and Area spokes, and the spec sheets in Lookbook's Design System section (spec/components/previews/design_system/tokens_preview.rb).
  2. Merged Ui:: ViewComponents in app/components/ui/ with their Lookbook previews. Canon is established by merging: a merged component outranks every design file. Merged today: Ui::IconComponent.
  3. The component catalog for units not yet merged: components.html plus components/rt-*.js and rt-fields.css (in the design handoff bundle; same content as planning/design-system-existing/ in the app repo). The rt-* attribute names are the vocabulary.
  4. Page shapes: page-layouts.md (regions ① top bar to ⑨ footer; templates Index, Entity, Document; five widths) and the sidebar tree in mock/index-payments.html. The mocks' sidebar supersedes the ④ secondary nav in the text and the shell nav in variant-a-fullpage.html.
  5. Principles: 06-design-principles.md.

Where two sources disagree, the lower number wins.

What is legacy: do not copy

  • The live Tool chrome: Bootstrap 3 markup and reset, the teal palette (tw-*-teal-*), Fira Sans, the 14px root, the dark top bar, and everything under app/views/** and app/assets/stylesheets/** that is not listed above.
  • Bare tw-text-* sizes (root-relative). Use tw-text-ui-*.
  • .tw-checkbox, .tw-radio, .tw-form-input (teal). The brutalist field styles in rt-fields.css replace them.
  • Portal and Admin are out of scope.

Tokens

GroupNamesValues
Brandrust, rust-dark, navy, mustard#C2410C, #9A3412, #1E3A5F, #E6B800
Stone rampstone-25 to stone-950, plus stone (DEFAULT), stone-light, stone-dark25 #FBFBFB, 50 #FAFAF9, 100 #F5F5F4, 200 #E7E5E4, 300 #D6D3D1, 400 #A8A29E, 500 #79716B, 600 #57534D, 700 #44403B, 800 #292524, 900 #1C1917 (Tailwind's stone-900; it was #18181B, zinc-900, a cool blue-grey, until 2026-10-23 — the app's copy is DEV-3654), 950 #0C0A09; DEFAULT #44403B, light #78716C, dark #0C0A09 (was #292524; changed 2026-09-24 in the design repo, see HANDOFF)
Surfacessurface-bg, surface-card, surface-warm, surface-muted#FAFAF9, #FFFFFF, #FDF4E7, #F5F5F4
Statusstatus-{success,error,warning,info,neutral,pending,ready,shipped}-{bg,text,dot}success #ECFDF5/#047857/#10B981; error #FEF2F2/#B91C1C/#EF4444; warning #FEF9E7/#92400E/#F59E0B; info #EFF6FF/#1E40AF/#3B82F6; neutral #F5F5F4/#57534E/#A8A29E; pending #FDF4E7/#9A3412/#EA580C; ready #F0FDF4/#166534/#22C55E; shipped #EDE9FE/#6B21A8/#A855F7 (ready and shipped added 2026-09-22 for Badge; not yet in the app)
Area spokes{sales,inventory,production,invoicing}-{tint,DEFAULT,deep}sales #F7E7DF/#C77B5F/#7A4431; inventory #F2E9DB/#A6824A/#6B5430; production #E8EADB/#7A8A45/#4F5A32; invoicing #E5EBF2/#5A7FA8/#2F4A6B
Severityseverity-ok, severity-low, severity-medium, severity-high, severity-critical#10B981, #FBBF24, #F97316, #B91C1C, #701A1A. An ordered good-to-bad scale, green to red, for any measure whose buckets mean how bad — days past due, sync lag, utilisation — in a bar, a chart or a cell (added 2026-10-15, first caller the Overview's aging bar; proposal, not yet in the app). Pick steps by meaning, not by position: fewer than five buckets still start at ok and end where the worst one belongs (three: ok, medium, high). Never to tell chart series apart: a series drawn red reads as a problem, so identity needs its own categorical set. ok and high share the success dot's and the error text's values. Checked as a set so neighbours stay apart under colour-vision deficiency; low and medium are under 3:1 on white, so a severity colour always sits beside its label, never alone
Fontsfont-headline, font-body, font-monoPoppins (600, 700), Inter (400, 500, 600). Mono is for identifiers and values you copy (CopyValue, processor IDs): Geist Mono in the prototype, not yet a token — open whether the app adopts it or takes the system stack (HANDOFF, Open decisions)
Sizestext-ui-2xs to text-ui-4xl10/14, 12/16, 14/20, 16/24, 18/28, 20/28, 24/32, 30/36, 40/44 (px size / line height). ui-4xl was added 2026-10-23 for the Overview's four top numbers and nothing else, so "where I stand today" leads the page (proposal, not yet in the app); below xl they are ui-3xl (2026-10-27; it was 1024–1279 only, where four sit beside the icon rail, and below 1024 they went back up to 40px, which read as too big for a tile two or one to a row). ui-2xs was added 2026-10-06 for the Document rail's labels and nothing else — see the Document page rule
Radiusrounded-brutalist, rounded-brutalist-sm8px, 6px. Cards and floating panels are 12px (Surfaces), which the prototype spells rounded-lg: there rounded-sm/md/lg/xl are shadcn's --radius scale (7.2 / 9.6 / 12 / 16.8px), not Tailwind's (2 / 6 / 8 / 12), so they translate by pixel — tw-rounded-[12px] — never by name. No 12px token yet (open)
BreakpointsTailwind's defaults plus 3xlsm 640, md 768, lg 1024, xl 1280, 2xl 1536, 3xl 2200 (the shell stops growing and centres). The sidebar's 1440 threshold is a matchMedia listener, not a breakpoint (see Widths)
Shadowshadow-brutalist, shadow-brutalist-sm, shadow-brutalist-stone, shadow-brutalist-error5px 5px 0 0 #0C0A09, 3px 3px 0 #0C0A09 (follow stone-dark); the stone one is 6px 6px 0 0 #A8A29E52, the same hard offset in stone-400 at 32%, for a surface too large to carry a black bar (added 2026-09-25 for the app frame; the 2026-10-01 frame does not float, so nothing uses it yet — keep it for the next surface that outgrows a black bar); the error one is 5px 5px 0 0 #EF4444, the brutalist offset in status-error-dot, for a container whose content is what is wrong (added 2026-10-09 for the Overview's Needs attention, from the Overview page pattern's .sec.naF; proposal, not yet in the app)
Illustrationillustration-ink, illustration-paper, illustration-tint, illustration-accent#0C0A09, #FFFFFF, #F3E6D3, #E6B800 (added 2026-10-28; proposal, not yet in the app). The four paints the illustration set is drawn in, read by a drawing as --illustration-* variables so a container can recolour the accent (rust is the tested alternative). Ink and accent are stone-dark and mustard; tint is a sand a step deeper than surface-warm, so a drawing's two tones still part on a warm panel. Mustard in a drawing is decoration, not "you are here": an illustration never sits in a control. Drawn with the roastertools-illustrations skill

Notes: stone-light (#78716C) is its own value, not stone-500. Area order is Sales, Inventory, Production, Invoicing; DEFAULT is the identity color (fills, dots, borders), tint is the wash, deep is for text and labels. In the app every class carries the tw- prefix (tw-bg-navy, tw-text-ui-sm).

Typography and layout rules

  • Headlines: Poppins 600, never bold, tracking-tight above ui-xl. Weights: 400 body, 500 labels, 600 headings.
  • Body copy ui-base; table cells, dense tables, buttons, nav and form labels ui-sm; ui-xs is for micro-labels only. De-emphasize with color (stone-light) or weight, never by shrinking below ui-sm. Table cells are ui-sm (2026-10-06): they were ui-sm until 2026-09-24 and ui-base from the 2026-10-02 reset, which read the foundation right — the workshop sets no size class on a cell, so it inherits a 16px root — but the rest of the page moved underneath it since. The Document rail is now 10/12px, the list chrome and a document's transaction rows are ui-sm, and a 16px cell was the one thing on a record page set larger than the prose around it. This is not the 2026-09-24 mistake DESIGN.md warns about: that one turned everything down at once — frame to 1px, head rule lighter, heads to sentence case, page title to ui-xl — and left nothing leading, whereas here the frame, the head rule, the uppercase heads and the page title were left where they were and only the cell moved. (Since then the 2px frame and head rule belong to the featured table alone, 2026-10-08, and the title is ui-2xl, 2026-10-13 — the point stands: one thing moved, not everything.) py-3 against the 20px line keeps the ~44px row; dense is py-2.5, ~40px. The breadcrumb was the one exception from 2026-09-25, at ui-xs, and went back to ui-sm on 2026-10-23, as the catalog's rt-breadcrumb sets it: since 2026-10-01 it sits in the App band on the frame, not above the title, and at 12px it got lost there. The full list of ui-xs uses (2026-10-15, so it stops growing by accident; the breadcrumb left it 2026-10-23): Badge labels (medium, px-2 py-0.5, a 22px pill — a status mark, not prose); uppercase column heads and their group bands; a field's help and error lines; a provenance sub-line under a row ("Applied by … · Feb 9") and a refund's Reason cell, both read once; a transaction's method under its Type on Transactions ("Credit Card" under "Payment", 2026-11-05: the qualifier a roaster filters by, set under the kind it qualifies); the Document rail's values (with its labels at ui-2xs, see Document page); and, on an Overview (2026-10-23), a note or caption under a number ("49% of $26,070 that came due", "None in the previous period"). Anything else a person reads is ui-sm or larger. Text under a heading is stone, not stone-light (2026-10-08): a section's description and a page's meta strip are read, so they take the darker value; stone-light is for labels and provenance.
  • New pages use a 16px root; mock widths carry into the app unchanged.
  • Widths: wide desktop 1920 and laptop 1440 (sidebar expanded with labels), 1024 (sidebar collapsed to icons), tablet 768 (sidebar as a drawer, one column), phone 390 (everything stacks; a list stacks too — below lg for the four Invoicing lists and a payment's refunds, md for a record's other item tables and the settings lists — rather than scrolling sideways, 2026-10-15: see Stacked list). The expanded threshold moved 1920 → 1440 on 2026-10-05. It had been 1920 since 2026-10-01 because a 220px column at 1440 cost the Payments table its Status and Sync Status columns (P1); that is still true — measured at 1440, the table wants 1493px and gets 1142 expanded against 1306 collapsed — and the trade was made the other way on purpose: a laptop is where this app is used, the labels are worth more than the last columns, and the table scrolls sideways with its actions column pinned, so nothing is unreachable. The fix belongs on the table's side, not the sidebar's: at 1440 that list overflows in both states, so the rail was never really solving it. The expanded threshold is not a CSS breakpoint (noted 2026-10-05): the only ones in the config are Tailwind's defaults plus 3xl at 2200, so the expanded/rail switch is a matchMedia('(min-width: 1440px)') listener, not a variant — in the app, a small Stimulus controller doing the same listen-and-toggle. The two states are different markup rather than one element restyled, which is the other reason it cannot be a variant. Past 2200 (3xl) the shell stops growing and centres in the backdrop; it does not change shape, because the backdrop is visible down the left at every width (see Workspace frame).
  • Light mode only.
  • Print (2026-10-01): a printed page is the record, not the application around it. The shell nav, the breadcrumb, a page header's or section header's actions, the list toolbar, pagination's controls, a table's actions column and the toast stack all drop out; the title, the meta strip, the content and the result count stay. The workspace frame gives up its fixed height so the document flows past one screen, and loses its backdrop, padding, hairline, radius and shadow. Status colours are kept (print-color-adjust: exact), because a badge's colour is its meaning. Three classes carry it — .print-hidden, .print-flow, .print-plain — rather than a print: variant, which Tailwind 2.2 does not have.
  • Color lives in content, not in menus. Two exceptions. The Setup guide card at the foot of the sidebar (2026-09-26) is the shell's one featured surface, with a rust progress meter — the app's standing call to action, and so a page cannot put a second featured card beside it. And a takeover level's Back link (2026-10-28, Danielle) is the navy link the Overview's links are — navy, semibold, underlined — because the way out of Settings is the one row a person has to find, and in stone it read as part of the list. Navy because it is a link, never rust.
  • Amounts (2026-10-13). A deduction is a minus sign, -$200.00, in ink: never parentheses (a screen reader reads "($45.00)" as forty-five dollars, and they knock a right-aligned column's decimals out of line) and never red — a refund or a fee is a normal deduction, and red is for something that went wrong. Zero is never -$0.00. Figures are tabular wherever they line up in a column. On an Overview (2026-10-23) an amount of $1,000 or more is rounded to the nearest dollar with no cents ("$66,920"), and one under $1,000 keeps them, so a few cents never show as "$0"; every page that lists records keeps its cents.
  • Focus ring: 3px solid mustard, no offset, on every interactive element.
  • The hand cursor on everything you can click (2026-10-08): buttons and the ARIA roles that act as buttons (tabs, radios, menu items, options, summary, a label[for]), not-allowed on a disabled control. Links already have it.
  • Height ladder (2026-09-24): controls are fixed heights, not padding — and not type: a smaller control is a smaller box around the same ui-sm label (2026-10-05). Buttons sm 32 / md 36 / lg 40; inputs and selects 36 in a form and 32 in a list toolbar, where they sit beside the 32px triggers (size="sm", added 2026-09-25); filter, sort and bulk triggers 32; the list card's top strip 64, the taller of the toolbar and the bulk bar that swap through it, so selecting a row never moves the table (2026-10-05); table rows ~44 (dense ~40) with px-4 (2026-10-02; was px-3), which is what a single-line cell comes to at ui-sm with py-3 (2026-10-06; it had been ui-base with py-2.5, the same 44px) — a cell that stacks a sub-line under its value runs taller, and that is a sign the column is carrying two things; table head 40; card spacing 24. Text sizes stay on the ui-* scale.
  • Workspace frame (rewritten 2026-10-01; was "one card holds the sidebar and the page"): the app is one screen tall, not a scrolling document. The sidebar is not in a container — it sits directly on the stone-100 backdrop, with no fill, no hairline and no radius, so it reads as furniture rather than as a panel. The page is the only card on screen: white, inset 6px from the right and bottom edges, 8px radius, a 1px stone-300 hairline, and it is the scroll container, so the sidebar and the band never scroll away. Above it, on the backdrop, sits a 48px band with a 12px gutter — the breadcrumb at its left, the account-level utilities at its right. The band is the application's strip, not the page's, which is why it lines up with the card's edge rather than with the title inside it. Below lg the sidebar becomes a drawer over the page and takes its own surface-muted surface back, because an overlay has to be a surface to be legible; the card loses its radius and fills the width. Past 2200 the shell centres (max-w-[2200px]) and nothing else changes.
  • Document page (2026-10-02): the shape of a record page — Payment, Credit Memo, Payout — from the foundation's R6955 order page. The main column leads and reads top to bottom: the record's identity and the common actions, then what the record did, then detail. The right column is a smaller, muted, read-only panel (surface-bg, one stone-200 hairline down its left, flush to the page card's top, right and bottom edges and running its full height, 288px (320px from 2026-10-07 to 2026-10-08, when it came back a step thinner; the label column stays 112px, so values get 124px) — which is why a Document page lays itself out instead of sitting inside the content container's gutter) for the facts you consult rather than act on; every action lives in the page header or in the banner that raises it. The main column's sections are not cards — they sit on the page, told apart by the gap between them and a heading at ui-lg (2026-10-08; ui-base until then — one size up by request, so a section reads as a step under the ui-3xl title rather than as body text in bold) with a stone-200 rule under it — and exactly one element carries a frame: the table the page is about, at 2px with shadow-brutalist, which is the view's one loud thing — and the record's totals sit inside that frame, under the rows, in a footer band with the head's rule mirrored (2026-10-05, as the reference order page has them: the totals are what the items come to, not a second thing on the page). A Document page reaching for a second frame has two subjects. The rule is under the heading, not above the section (2026-10-06): it had been a separator between sections, which left the page running heading → content → rule → heading → content, so one section opened with a line and the next did not depending on what its own content drew. One order everywhere — heading, rule, content — and a section whose content brings its own opening line draws no second one: any table, whose head closes on its own rule — 2px stone-dark on the featured table, a stone-200 hairline on a light one. Same reasoning as the page header's rule: a hairline a dozen pixels above a 2px line is a line that nearly matches and misses. The reading column caps at max-w-5xl. Below lg the rail stops being a column and stacks under the content. A record page names the record in its title: a letterhead block repeating the document type belongs to the PDF, not the page. The title names the record and the party it belongs to (2026-10-06): the record's own number at the page title's size (ui-2xl since 2026-10-13; ui-3xl before), a stone-300 dot (4px; a 24px hairline until 2026-10-08), then the customer as a navy entity-name link at ui-xl (20px, unchanged when the title came down to 24px on 2026-10-13) — close enough in weight to read as the title's second half, because for an invoicing document "which customer" is half of what the record is, and it is the link you actually want next. 20 against 30 is what the reference sets (the title has been 24 since 2026-10-13; the name stayed at 20) (text-lg lg:text-xl beside text-2xl lg:text-3xl at a 16px root); ui-2xl was tried first and overshot, the name competing with the record rather than belonging to it. From the foundation's order page ("R6955 | Crave Coffee & Tea"). Under sm the pair stacks and the dot drops out. It holds the record and the party and nothing else (2026-10-06): it used to take a status Badge, and two of them on the payment page put a pill beside a 24px link beside a 30px amount — three weights in one line, which stops reading as a title, and the page header rule's whole point is that the bar is the same shape from page to page. The badges moved down one row into the meta strip, which leads on the record's state and then gives its facts — [Partial Refund] · $3,890.50 · Credit Card · Feb 9 at 10:00pm · Created by Maria S., [Partially applied] · $206.08 credit · $86.08 unapplied. No sync badge in the strip (2026-10-08): a green Synced beside a green Succeeded read as two statuses of one thing; the sync is the rail's Accounting row. The amount is the first fact after the state since 2026-10-13, when the identifier became the title. That order is P1's: state is the thing to absorb at a glance, and what follows is provenance you read when you want it. The rest of the state stays where it was — the lifecycle bar under the strip, where a page uses one, tells the status as a narrative (the payment page hides its bar since 2026-10-08; the component and its wiring stay), the rail carries the sync state, and a banner raises a failure above both. The rail is label/value rows and nothing else (2026-10-06): every value right-aligned on one edge, the label a fixed 112px column that wraps, nothing in it larger (80px until 2026-10-07, when the rail widened 32px so the longest label, "Convenience fee" at 102px, fits on one line and the value column kept its 156px) — because the moment one entry is a 16px link or a full-width paragraph the column reads as content rather than as reference. Its sizes are the foundation's own: the label ui-2xs (10px) in stone-light (2026-10-08; it had been stone-600 — stone-light is 4.59:1 on the rail's surface-bg, the lightest value that clears AA for small text) at weight 500, the value ui-xs (12px) in stone-dark at weight 500 — the label stepped down from 600 and the value up from 400 on 2026-10-08, to put the focus on the content. That is a deliberate exception to the typography rule, in one place: the floor is ui-sm for anything a person reads and ui-xs is for micro-labels, and the rail is neither — it is a key you glance at to answer a question you already have, beside a main column that is read. The reference order page sets it at exactly these sizes, and the column pays the difference back in wrapping: at 12px a note or an address stops running to four lines in the rail. Nothing outside the rail uses ui-2xs. Nothing is reserved on a value's right (2026-10-06, after three tries). A value runs to the column's edge; an affordance that needs room takes it in the flow, after the value. The copy glyph does, and it is always visible, because a copy is only useful if you can see it is there — the row still ends where every other row ends, the glyph simply takes that edge instead of the text. An editable value carries no glyph at rest: its affordance is the hover treatment — the dashed-underline reveal on a single line, a stone-100 wash on a wrapped one — with a Tooltip saying what the hover means, which is the disclosure ladder's own answer, since "this responds" is exactly one read-only line. What was tried and rejected: a pencil in the flow on either side pushed the value off the rail's right edge; a pencil out of the flow with the value sliding left to let it in re-flowed a wrapped note, so a two-line note became three the moment the pointer touched it and every row under it jumped; and a 20px gutter held open on every row for the few that use one read as an indent on all the rest. Group headings go with it: where every row names itself, a heading over three of them names the same facts twice, and the reference page has none. Keep a heading only for a group whose content is not rows (a status badge). The payment's amount breakdown was the example here until 2026-10-07, when it lost its "Amount" heading and moved onto the row grid — uppercase labels in the label column, with qualifiers like "incl." or a fee rate set quietly before the figure rather than as a parenthetical on the label: the figures say what the group is. Prose belongs in a row too — a note or an address wraps inside the value column. A document page's tab title is "<identity> · <record type>" (R-CM1011 · Credit Memo), because a row of open tabs is mostly truncated and a bare record number does not say which kind of record it is. The rail folds and resizes (2026-10-08): from lg a 28px round handle folds it away and back, and its left edge drags between 256 and 420px (double-click resets to 288; 256 keeps "Convenience fee" on one line), remembered per browser — a cookie in the app, so the server renders the right width on first paint. An empty section is not drawn (2026-10-08): no heading over "Nothing refunded"; the rail's rows already say it. A payout is titled by its deposit date (2026-10-13), the net amount as the title's second half at ui-xl in ink (not navy: it is not a link), and its one heavy frame is the breakdown of payments, refunds, fees and net — a featured card of divided figures — not a table.
  • Page header (2026-09-25; the breadcrumb left it on 2026-10-01 for the shell's band): one slim bar on every page — the title at ui-2xl (24px since 2026-10-13, by request; ui-3xl from the 2026-10-02 reset, matching the foundation's ~30px page title, and ui-xl from 2026-09-25 before that, which left the title smaller than the record it named), semibold and tracking-tight — never bold, which is the one place the foundation's own markup is not followed — with its actions right-aligned and the primary action last, on the row's right edge, so every page ends on the one thing it is for (2026-10-01), then a stone-200 rule at the content gutter that marks where the page starts. The bar holds nothing else, so its height is the same from page to page. No rule where the page opens on a framed container (2026-10-05) — an Index page's list card, a Document page's one table — because the frame's own edge already says where the page starts, and a hairline a few pixels above it is a line that nearly matches and misses. Nothing sits under the rule by default: a Document page puts the record's meta strip there, and explanatory prose about what a page is for is the deliberate exception, not the habit — Index and settings pages carry none.
  • Surfaces (2026-09-24): flat surfaces are quiet, floating surfaces are loud. A standard card carries the workshop's 2px stone-dark line; tables and list cards are light (2026-10-08) — a white fill and a 1px stone-400 frame (2026-10-23; stone-200 until then), stone-300 for a table inside a card so the card reads first, with rounded-brutalist, the head a stone-25 band on a stone-200 hairline, the foot opening on one, and a list card's controls on a surface-muted band (white fields) closed by a hairline — except the page's one featured table (Table featured: 2px stone-dark, 12px radius, shadow-brutalist, head and foot at 2px), which is a Document page's subject; and quiet (a 1px stone-400 edge since 2026-10-23, white on stone-300 before, 1.5:1 against the white page, which barely separated it; its header and footer bands stone-25 over a white body since 2026-10-28, the way a light table's head band sits over white rows — it had been stone-25 all over from 2026-10-23, and a quiet card with neither band still is, or it would be only an outline) is for dense infrastructure, reference columns and every form container (2026-10-13, the client's call: forms had been standard, and on the credit memo form five 2px boxes stacked down the page were its loudest thing; a form's fields, its light tables and its one primary button already carry it, so its sections sit on the hairline, header and footer rules included) (2026-10-02 reset: between 2026-09-24 and today standard was flattened onto quiet at 1px, to answer pages that had grown six cards; the foundation answers that by having fewer cards, so the line came back and the card count became the thing to watch). Lines inside a container are stone-200 — row dividers, menu dividers, the list footer — except the bars that bound a card's regions (2026-10-05): a card header's bottom rule and a card footer's top rule take the frame's own weight, 2px stone-dark on a standard or featured card, which is also what the featured table's head closes at (a light table's head and a list card's control band close on a stone-200 hairline since 2026-10-08). At the hairline they read as belonging to a lighter container than the one around them. A quiet card keeps the hairline, because inside a 1px stone-400 frame a black 2px rule is the loudest line on the page; popovers, tooltips, dialogs and menus keep the 2px stone-dark line and the brutalist shadow, as does the one featured card per view (primary/secondary buttons keep the shadow but went to a 1px line on 2026-10-08). Radius: 12px on cards and floating panels, 8px (rounded-brutalist) on controls, pills on badges. The shell's page card is the exception at 8px (2026-10-01): it holds the brutalist cards rather than sitting among them, and at 12px its curve read soft against them.
  • Outlined controls (2026-09-26): a bordered control is a control, not a surface, so it takes a line of its own — 1px stone-400 since 2026-10-23, the same edge as cards and tables (it was stone-300 from 2026-10-08, 1.5:1 against white, which left fields and buttons hard to find; 2px from 2026-09-26; the client asked for thin borders on buttons, then on the fields and triggers beside them, so the whole family moved together and a toolbar stays one weight) — tertiary and split buttons, the filter, sort and bulk triggers, pagination's Prev/Next, active-filter pills, the segmented control and every field (.input-brutalist). The dividers inside a control stay a step lighter: between segments, before a split button's or the sort control's caret, inside a pill. The line is stone-400, not stone-dark: at full ink a row of them shouted over the one primary action, so the thickness carries the weight and the value keeps the volume down. A button's line darkens to stone-500 on hover; a field's does not, because a field answers to focus — and a focused field keeps its stone-400 edge: the mustard ring is the only sign of focus. Flat, white (fields keep the surface-muted fill), no shadow: the middle rung of the volume ladder, one step under the primary, which keeps the colour and the lift. Button labels are font-semibold in stone-dark, and their icons follow the Button row: duotone where the glyph is a picture, solid where it is a mark (2026-10-05; they were solid-only before). Disclosure carets on these controls are the shell nav's: angle-down, regular, sm. What stays off the outline: ghost buttons, which have no border at all. Active-filter pills joined the outlined controls on 2026-10-05 — 32px, stone-400 (2px stone-300 then, 1px with the family since 2026-10-08, stone-400 since 2026-10-23), flat, ui-sm — having been the one hairline exemption (28px, 1px, ui-xs, a small shadow). In a strip where the trigger that makes them and the sort control beside them had both moved to the 2px ladder, a pill read as a thinner, shorter, lighter thing, and the rule's own reasoning covers it: a bordered thing is a control, and you press a pill's × to drop the filter. What tells a pill from a trigger is its content, not its frame — the label stays stone-light and only the value is ink.

Component vocabulary

Names, props and enum values. A component in any stack uses these names.

UnitProps and valuesApp target
Buttonvariant: primary, secondary, tertiary, contrast, ghost, ghost-destructive, ghost-success, link (contrast added 2026-09-25: ink on colour, flat, for the action inside a status Banner where rust and navy fight the status colour; see HANDOFF). size: sm, md, lg — the box changes, the type does not go below the floor (2026-10-05): sm and md are both ui-sm at 32 and 36px, lg is ui-base at 40. md is the default. sm had been ui-xs, which contradicted the typography rule in two places — ui-xs is for micro-labels only, and buttons are named as a ui-sm thing — so a small button was being made small by shrinking its label. The same correction went through every control that sits beside one at 32px: the filter and sort triggers, the bulk bar's secondary buttons, and the action-menu items, which match the button that opens them. disabled, href (renders a link), icon (icon name), title (required when icon-only), split (kebab trigger). Icon-only: color, hover-color. Every variant's border is 1px (2026-10-08, the client's call): primary, secondary and contrast at 1px stone-dark with the brutalist shadow kept, tertiary and split at 1px stone-400 (stone-300 until 2026-10-23), flat. They had been 2px since 2026-09-26 (see Outlined controls). Icons are duotone where the glyph is a picture, solid where it is a mark (2026-10-05), which is the workshop's own spelling (fa-duotone fa-regular fa-pen-to-square for the picture, fa-duotone fa-solid fa-ellipsis-vertical for the handle; duotone outnumbers solid 130 to 80 across the bundle). Duotone splits a glyph into a primary path and a secondary at 40%: between a body and its detail that reads as depth, across a stroke it reads as a rendering fault — one bar of plus, one leg of check, half a chevron, and minus has no primary path at all. So plus/minus/xmark/check, chevrons, angles, carets, ellipses, arrows, percent and sliders render solid; everything else duotone (filter left the marks on 2026-10-08 and is duotone; the list is spelled in Font Awesome 7's names since 2026-10-15). Built outside this row: a link-navy variant (2026-10-07: the link in navy, for links among status colour, where rust beside red reads as one signal; inside a status Banner a text link takes the banner's own colour instead, its dashed underline showing at rest, 2026-10-28), icon_position (start, end — at the end on a link variant the icon is a 12px mark that nudges on hover) and external (a new tab). Disabled is grey, never a faded brand colour: stone-200 fill, the border the fill's value, label stone-400, and no lift; the filled variants keep their 1px border so the primary still reads as the primary (P8). icon_family overrides both. This replaced solid-only (2026-10-01, when a light stroke beside a 2px edge read as a mistake) and the regular default that followed it (2026-10-02). Badge keeps regular: its icons are 12px status marks where a 40% secondary costs legibility. The split kebab is sm, not base, so the handle never out-weighs the label. Icon-only takes its colours from color/hover_color, not from variant — except ghost-destructive, which rests quiet and turns status-error-text on status-error-bg on hover and focus (2026-10-01).Ui::ButtonComponent (to build)
Badgestatus: success, error, warning, info, neutral, pending, ready, shipped. icon: dot (default), none (the label alone, for an off state with nothing to mark: a processor's Inactive, 2026-11-05) or an icon name. icon_family: regular (default since 2026-10-02; the icon is not fixed-width). label. Set at ui-xs medium, px-2 py-0.5, a 22px pill. Also the comparison pill (2026-10-23): beside an Overview figure, the change from the earlier period, arrow-up/arrow-down as icon and the change as label ("12%", "4 days"; "No change" with the dot). Its status says whether the change is good or bad news, never which way it moved: success when better, error when worse, neutral for no change. A Tooltip on it gives the earlier period's figure.Ui::BadgeComponent (to build)
Iconname (a current Font Awesome 7 name), family: light (default), regular, solid, duotone (fa-duotone fa-regular), duotone-solid (fa-duotone fa-solid), brands. fixed_width (default true: a 1.25em box so a column of icons lines up; Badge turns it off). size: xs, sm, base, lg, xl, 2xl (12, 14, 16, 20, 24, 30px). color: stone-light (default), stone, mustard, rust, navy, current. hover_secondary_color: mustard, rust, navy. interactive when the icon is the click target.Ui::IconComponent (merged)
Tooltiptext, placement (default top), offset (8), delay (300ms), max-width. Dark panel: bg-stone-dark text-white border-2 border-mustard shadow-brutalist-sm rounded-md, arrow matches. Hover-triggered, read-only.Ui::TooltipComponent (to build); behavior floating-tooltip Stimulus controller
Popoverplacement (default bottom-start), offset (8), interaction: click (default), hover (renamed from trigger 2026-10-15, so the mode does not share a name with the trigger slot — the app's PopoverComponent and the Lifecycle bar row already say interaction). anchor (click only: the trigger positions the panel but does not toggle it, open/onOpenChange drive it — for a panel opened by one part of a larger control, like the Overview period's Custom segment). arrow-inset, no-arrow. Slots: trigger, content. Panel: border-2 border-stone-dark shadow-brutalist-sm rounded-lg.Ui::PopoverComponent (to build); behavior popover Stimulus controller
Breadcrumbui-sm (ui-xs from 2026-09-25 to 2026-10-23), in stone-600 with stone-300 separators (the links were stone-light and the current page stone-400: on the frame's stone-100 those are 4.4:1 and 2.3:1, under the 4.5:1 small text needs; stone-600 is 7.0:1), and the separator is the shell nav's angle-right at sm so the two carets match. Children are the ancestor links, then the current page as the last segment (2026-10-13; it had been ancestors only, "never the current page"): no href, the links' stone-600 with aria-current="page", so it says where you are without pretending to be somewhere to go. The client's call, from the Overview (Invoicing › Overview): a trail that ends one step short reads as unfinished, and with the page named last it has the same shape on every page. A record page ends on the record's identity — its number, a payment's identifier (R-PM1002) as the title has it since 2026-10-13, or a payout's deposit date, which is its title (Invoicing › Payouts › February 9, 2026; its ID until it is deposited); a sub-page ends on a short name (New, Edit) under the record or section it belongs to; a list's view ends on the view (Invoicing › Transactions › Refunds, 2026-10-30; All ends on the list), because the trail's band is pinned and the view's control scrolls away; a settings section ends on the section (Invoicing › Settings › Payment Types). This repeats the title a line below, which is what the old rule avoided; the trail sits on the frame, outside the page card, so the repeat costs little. (Flag in the PR: canon change.) Home icon first, chevron separators — except in the shell's band, where the sidebar handle took that slot on 2026-10-05 and the trail opens on its first ancestor instead. Wherever the trail stands alone the home icon still leads. Under sm, three or more segments collapse to [home] › … › parent › current, the "…" a popover listing the rest. Rendered by the shell in the band above the page card, not by the page header (2026-10-01): the view declares the trail, the layout places it — content_for :breadcrumb.Layout yield + content_for :breadcrumb; no new component (decision on record)
Paginationcurrent, total, per-page (25), items, window (2). Pagy-compatible structure. Numbers hidden under sm, compact "current / total" shown instead. It renders at one page too, Prev and Next disabled, so a short list still says "1–3 of 3" and a page of one looks like a page of nine. It sits on the page under the list's card, not inside it (2026-10-05): no fill, no rule, no rounding and no horizontal padding, so the result count and the Prev/Next group line up with the card's own edges. The card is the list and ends on its last row; the pager is the view's control over it, which is also why it is the one part of region ⑨ that is page furniture.Ui::PaginationComponent (to build)
Lifecycle barentity, current; steps with group, state, date, detail, card. Observational state progression, not a wizard. Dot over label, left-aligned (2026-10-07): each step is a dot with its label under it, starting on the title's left edge as the foundation's R6955 order page sets it, rather than the catalog's grid stretched and centred. Each step is a column as wide as its label, with the line running dot to dot through it and a 40px connector between columns (80px across a group boundary), about R6955's 100px pitch. Dots are 20px, 24px on the current step. No dates on the bar, as R6955 has none: a step's date goes in its card with who and how. The current step's detail ("Sync failed") is the one line under a label: it is a reason, and P7 wants a failure on the bar rather than behind a click. A step can open a card (2026-10-07): card makes it a Popover — a heading, a quiet line under it, label/value rows and a footer band for the step's one action — as R6955 does for "Pending Approval". It opens on hover (2026-10-07; it was a click): the bar is consulted, not operated, and a card that needs a click to say when a step happened is a query rather than a glance (P1). It also opens on keyboard focus, stays open while the pointer crosses into it so the footer's action is reachable, and on touch a tap toggles it and a tap outside closes it. It is the disclosure ladder's level 2: what the state means for this record (who, when, through what), which a tooltip cannot hold. A step with a card shows the dashed-underline reveal on its label; a step without one is plain text. This replaced the compact form of 2026-10-05 — one row of [dot] Label pairs with the dates in hover tooltips — which read as a strip of tags rather than a sequence, .Ui::LifecycleBarComponent (to build); a step with a card wraps Ui::PopoverComponent with interaction: :hover, plus a tap-to-toggle for touch
Shell navactive: home, sales, inventory, production, invoicing, reports (the code's NavAreaKey; this row said dashboard until 2026-10-15, and an account page sets none). collapsed (desktop) — driven by the width, not a default: expanded from 1440 (was 1920 until 2026-10-05; see Widths), the icon rail from lg to 1439, the drawer below lg, with the toggle overriding until the window crosses the threshold again (2026-10-01). The nav carries no handle of its own (2026-10-05): one control in the App band collapses the column from lg and opens the drawer below it, so the state has one place to be changed from at every width. It replaced three — a collapse arrow in the brand row, an expand button on the rail and the drawer's bars — each reachable in only one of the three renderings. The collapse animates: the column's width runs 220 ⇄ 56 over 200ms while the tree and the rail crossfade, both pinned to the column's left edge so neither reflows and the page card's edge glides. What stays in the sidebar is the drawer's close, because below lg the backdrop covers the band. user-initials, user-name, account-name. Drawer under lg (corrected 2026-10-05: this row said md, which contradicted the Workspace frame rule's "below lg the sidebar becomes a drawer" and the widths above, where 1024 is still a rail and 768 is the drawer. lg is what ships). Tree structure from the mocks. From lg it carries no fill, hairline or radius — it sits on the backdrop (2026-10-01, see Workspace frame) — while the drawer keeps its surface-muted surface. Takeover levels (2026-10-02): a Settings or entity level replaces the tree from lg, with a Back link out, its name, and its sections — the Sept 15 shell mock's behaviour. Each section is its own page, URL and save. A level also forces the sidebar expanded, so the icon rail never shows one. A section can carry a tag (2026-10-28): a neutral Badge after its label — "Later" for a section that is planned, or what a section needs, "RoasterPay" on Convenience Fee (2026-11-12) — and when a label and its tag don't fit the column together the tag drops under the label rather than break the name (2026-11-12; until then the label wrapped, which split "Convenience / Fee"). A section sold as part of a plan ends on a gem, one sold as an add-on on a puzzle piece, whether or not the account has it: the mark says what it is, the page says whether you have it (the add-on's pitch or PlanGate's upsell when not, a PlanBadge in the container's header when so) — except where the account's plan includes it (2026-11-12): Advanced Invoicing is an add-on that Scale includes, and on Scale nothing looks different, so neither the mark nor the badge shows. Invoicing Settings opens on an Overview and groups its sections Payments, Invoices & Credits, Customers, Notifications, Tax, Accounting, Access (2026-11-12; HANDOFF, "Invoicing Settings, restructured" and "Invoicing Settings, regrouped"). Below lg there are no slide-outs (2026-10-07): the drawer keeps the global tree, and on a section page the title becomes the level's name and the sections are a select list under the page header (<optgroup>s for the level's groups; choosing one navigates). Chosen over stacking every section on one page as an accordion, which was prototyped beside it. Until then the drawer carried the level. This replaced the two-column settings layout, where the sections sat in a rail inside the content column. Workflows are pinned to the foot of the tree in both renderings: they are quick actions, not a branch of it. The tree fades into the backdrop above the footer rather than stopping at a rule. Resting rows are stone-600, not stone-light (2026-10-06): on the stone-100 backdrop #78716C measures 4.40:1, just under WCAG AA's 4.5 for normal text, and the nav is text a person reads at every width. #57534D is 7.00:1 and still reads as quiet, because what separates the current row is the white card, the shadow, the area's deep colour and the medium weight, not the resting value. The same move covers the group labels, the rail buttons and the account line, which are ui-xs and so had the least to spare. This is a wider question than the nav: stone-light is the system's de-emphasis colour everywhere, and it measures 4.40 on the backdrop, 4.59 on surface-bg and 4.80 on white — on the line, and under it on two of the three. The Document rail's labels and every text-stone-light caption sit there. Needs a decision: move the de-emphasis value to stone-600 system-wide, or keep stone-light and say which surfaces it is allowed on.shell-nav (to build)
App bandThe strip above the page card: the sidebar handle and the breadcrumb left, account utilities right, 48px tall with a 12px gutter. Pinned below lg, under a logo bar that scrolls away (2026-10-07): below lg the shell nav's fixed 48px header bar is gone. Once the drawer's opener moved into the band it held nothing but the brand mark, which put 96px of fixed chrome above the content on a 390 phone. The brand now sits in a 48px logo bar at the top of the page, which scrolls away with it, and the band is sticky, so the trail, the handle and the utilities stay in reach while the brand gives its height back to the content. Below lg the page column is the scroll container; from lg it is still the page card. (Settled the open question recorded here on 2026-10-05.) The handle leads it (2026-10-05), in the slot the trail's home icon held: the band is the application's strip, so the control that moves the application's furniture belongs at its left edge, over the sidebar it governs — and Home is already the tree's first row. It is a 32px icon button like the utilities, and where a takeover level holds the sidebar open it stays put and says why rather than disappearing (P8). The utilities are production's top-bar set, which the shell has no top bar to hold — planning abacus, a plus to the new order form, notification bell, help menu (Support articles / Status / Latest Updates over a Share feedback / Contact support footer). All four are 32px icon buttons at stone-light: the abacus is not production's red, because one coloured glyph among three quiet ones reads as an error, and rust is the primary action and the brand mark. The bell carries a dot, never a count — a number nobody can act on from the band is noise (P1: ambient, not interruptive). Added 2026-10-01.Layout partials replacing the top bar
Fields.input-brutalist (text, select, textarea), .checkbox-brutalist (rust when checked), .radio-brutalist (navy when checked), .switch-brutalist (navy when on). surface-muted background (stone-200 when disabled), mustard focus outline, .input-error variant. Borders are 1px stone-400 (2026-10-23; stone-300 from 2026-10-08, 2px from 2026-09-26, see Outlined controls), and focus keeps the border, the same as the triggers beside them in a toolbar, so the two are still one weight. Vertical padding is py-1.5 so a 36px field still fits its 20px line. On a touch screen (pointer: coarse) a field's text is 16px (2026-10-15), line height unchanged: iOS Safari zooms the page into any field under 16px on focus and leaves it zoomed. A mouse keeps ui-sm. Never answer it with maximum-scale=1, which takes pinch-zoom away. A disabled field's border is stone-200, the same value as its fill, so there is no edge to catch the eye. The small marks — checkbox, radio, switch — stay 2px stone-dark: a mark is all border, and at 18px a light line disappears. A container a field sits in stays lighter than the field — white, a quiet card's white body (2026-10-28), or a band-less quiet card's stone-25 (2026-10-23) — so the field is always a shade apart from it — or the inverse, a surface-muted band holding white fields (a list card's control band, 2026-10-08): either way a shade apart.fields (to build)
ComboboxA Select you can type in, for lists an account makes long (products, customers, jurisdictions). options ({ value, label, description?, disabled? }), value, onChange, placeholder, search_placeholder, empty_label, size: sm, md, disabled, error. Same trigger box, height ladder and chevron as a field; the panel is the Popover shell sized to the trigger, mustard on the keyboard's row, a navy check on the chosen one. Added 2026-10-01, outside the vocabulary until this row is agreed.tom_select Stimulus controller (existing): a <select> with the controller attached, not this markup
List controlsFilter popover, active-filter pills, bulk actions bar. They are the frame's top strip, inside the table's card (2026-10-02; between 2026-09-25 and then they sat above the card, unframed), which is also where the app's own Ui::ToolbarComponent draws them. The strip is one white field with one rule under it (2026-10-05): the toolbar at px-4 py-3, the pills at px-4 pb-2.5 beneath it (no top padding of their own — the toolbar's py-3 already sets the gap, and stacking the two put 22px between the search box and the filters it describes), the bulk bar swapping into the toolbar's slot, none of them carrying a fill or a rule of their own, and a single rule closing the whole — a stone-200 hairline on a surface-muted band since 2026-10-08 (it was 2px stone-dark, the weight the table head then closed at), with the band's fields set white. Each band used to draw its own (2px under the toolbar and the bulk bar, a stone-200 hairline under the pills), which stacked three strips of chrome above the first row and made the card's top edge change weight with whichever bands were showing. It also puts the toolbar's search field back on the Fields rule: the field is a shade apart from what holds it (white on the surface-muted band since 2026-10-08). On a phone (below sm, 2026-10-15) the filter opens a sheet — the categories as a drill-in list showing what each has set, Apply pinned to the foot — and the filter and sort triggers are icon-only, so the filter, the count and the sort fit one line under the search. The strip sticks from lg (2026-10-27), with the table's head under it: the search, filters, count and sort, or the bulk bar while rows are chosen, stay at the top of the page card while the rows scroll, and the head pins under the strip (Table sticky_head); below lg both scroll away except the head of a table still drawn there, which pins under the App band. Group by (2026-10-30): a Group control between Columns and Sort gathers the rows under a heading (Transactions: by order, a TableGroupRow on a desktop, the StackedList's group band on a phone); the sort orders the groups, and each group reads in the order things happened. The row count sits beside the filter control, not at the far right: it is that control's answer, and the card reads as one object — what the list is and how many that comes to, what you do with it, then the rows. A list with bulk actions shows them before a row is chosen (2026-10-28, Danielle): a Bulk actions menu in the toolbar's right-hand group lists every action disabled under one line saying what to do first (P8), and the bulk bar still swaps in once rows are chosen; below stack_below the menu goes, as Columns does.Ui::FilterPopoverComponent, Ui::ActiveFiltersComponent, Ui::BulkActionsBarComponent (on the DEV-3250 branch)
Inline editlabel, value, onSave, layout: row (default, the Document rail's two columns), stack. appearance: reveal (default), text — text (2026-10-13, Jon's feedback, after Mercury): the value reads as the rail's own text: the label in its column and the value right-aligned in the value column beside it, wrapping inside that column however long it runs — a note wraps the way an address does, never under the label — so an editable row has exactly the shape of one that is not. On hover — anywhere on the row, which is the button — a pencil appears at the start of the value's first line, out of the flow (in the space a ragged first line leaves, or the gap after the label), so it never covers the text and nothing moves. No underline, wash or tooltip. For annotations a person reads in full — the credit memo's Reason, Detail and notes — where the reveal's pencil and "Click to edit" tooltip sat over the note. It replaced field (a quiet field box under the label, the pencil in its padding) the same day: four boxes made that part of the rail read as a form. multiline, options ({ value, label } — renders a Select), placeholder, empty_label, italic, disabled, disabled_reason. Added 2026-10-06, outside the vocabulary until this row is agreed. The rule: an annotation edits in place, a field the record's arithmetic depends on edits in the form. A credit memo's reason and notes cannot make its totals wrong, and a full edit form to fix a typo in a note is the friction P4 calls a failure. It is the disclosure ladder's level 0, under the tooltip: one field is less content than a popover is a container. Nothing is drawn at rest: on hover the affordance is the dashed-underline reveal (single line) or a stone-100 wash (multiline, where the underline repeated down four wrapped lines reads as ruled paper), with edit_label as the hover Tooltip saying what it means, and a 12px pencil that slides in over the end of the text, out of the flow, so nothing moves (a pencil in the flow cost a right-aligned column either its edge or its wrapping). Editing always stacks, even in row, because a 150px value column cannot hold a field and two buttons. Escape and Cancel discard; nothing is destructive, so there is no confirm. A save is confirmed in place (2026-10-07): the glyph slot holds a solid green circle-check for 2s, cross-faded with the pencil as CopyValue's glyphs are, and an aria-live line says "<label> saved". No toast — the new value is already where the person was looking (see docs/ux-guides.md). An unchanged value is not a save and gets no tick. disabled keeps the value visible and puts the reason in a Tooltip (P8); an empty disabled value shows the rail's dash, not its empty_label invitation (2026-11-12).inline_edit Stimulus controller (to build)
Stacked listA table's rows on a narrow screen (2026-10-15): one record per row, no sideways scroll. stack_below: md, lg — the table hides below it and the list shows (both are in the DOM; CSS picks one). Item: href (the whole row links to the record), title, value, subtitle, subtitle_end, meta, meta_end, leading (the select box), actions (only for a record with no page of its own), state (the table row's). Group: label — a day band, only while the list is in date order. Foot: label/value totals inside the frame. The anatomy is fixed: the record and its amount; who and what, with the status at the end; quieter facts, with a second state (the sync) at the end. Rows, not cards: one container with hairlines between records, as Shopify admin, Stripe and Mercury do on a phone — the count of containers is the thing to watch, and a card per record is twenty-five of them. A column that is not on the row (fees, notes, IDs) is on the record (P9: desktop adds columns, not content). Selection keeps its boxes in leading, and the bulk bar floats at the foot of the screen with a Select all. A table of inputs does not stack, it reflows (Table reflow_below: the head hides, each row becomes a grid, each cell takes its own label), because a hidden copy of an input still submits. Added 2026-10-15, outside the vocabulary until this row is agreed.Ui::StackedListComponent (to build), rendered beside Ui::TableComponent; the selectable controller counts only visible boxes
Copy valuevalue (copied and shown), children (only for a value that must stay a link), copy_label, mono (default true), size: base, sm. Added 2026-10-06; rebuilt to the workshop's Copy Button on 2026-10-08 (workshop-brutalist.html, "Copy Button"), outside the vocabulary until this row is agreed. The rule: a value you paste somewhere else gets a copy, a value you only read does not — record numbers, tracking numbers, processor IDs; not amounts, dates or names. The whole mono value plus the icon is one button (px-2 py-1 rounded-md, gap-0.5, the icon in a p-0.5 span), pulled back by its own padding so the value lines up with the text around it. The icon rests at 40% stone and goes stone-dark on hover of the whole button, which takes a surface-muted wash. Copied swaps the icon for a check and the whole button to status-success-bg (check in status-success-text) for 2 seconds, then reverts — in place, not a toast — and an aria-live line says it aloud. Icon 16px by default, 14px (sm) inline, in tables and in the Document rail. A value that must stay a link keeps the link, with the icon-only form of the same button beside it (a link cannot sit inside a button). This replaced the 2026-10-06 form — an always-visible copy glyph beside the value, a 3s solid circle-check cross-fade.clipboard Stimulus controller (to build)
Sync badgerecords (each kind: invoice, payment, credit memo; status; at), accounting_connection_name, footer (the record's one action). Added 2026-10-13, outside the vocabulary until this row is agreed. The badge names the record, then the state — INV Synced, PMT Queued, CM Reconnect — because one transaction syncs several records (a credit applied is a payment in QuickBooks linking the memo to the invoice). A record that is not synced wins (failed, then the setup states, then waiting, then queued), so a failure never hides behind an older success; all synced, it names the latest. One state vocabulary, one colour each, everywhere: in progress (Queued) is blue, waiting (Syncable) orange, failed red, synced green, skipped neutral. Hover or focus opens the sync card (state as title, the latest sync or the problem as its line, a row per record, the record's action in the footer) — a Popover with interaction: hover, level 2 of the disclosure ladder.CreditMemos::AccountingStatusComponent's popover, extended to a row per record
Summary cardlabel, value, detail, scope ("Last 30 days", "All dates", "As of today", plus whatever the one line leaves out, in a Tooltip on a circle-question after the label: 2026-10-27, it was a line at the card's foot), tone: default, negative, positive; with onSelect + selected a toggle that filters the list below; action for a card that links instead. In a Summary row with a Period control (7 / 30 / 90 / Custom). Added 2026-10-13 on Transactions, rolled out the same day to Credit Memos and Payouts; outside the vocabulary until agreed. The rule: the number on a card is the number of rows its filter shows. A card sets the list's own filters; the filter pills are its state, so removing a pill deselects the card and clicking a chosen card clears it; picking one replaces what another card set and keeps the rest (search, order, amount). Chosen is navy (border-navy ring-1 ring-navy bg-navy/5 and a navy filter mark) — chosen, not current. Every tile, filtering or not, is a card: a stone-25 fill and a 1px stone-400 edge that darkens to stone-500 on hover when it filters (2026-10-23; white on stone-300, or stone-200 for a tile that does not filter, until then). The Overview tile's anatomy (2026-10-23): 24px padding (16px on a phone, two to a row), the number ui-3xl from xl and ui-2xl below — a list page keeps its cents, so the Overview's 40px does not fit — and the detail 8px under it as a fact: 14px stone, its counts and amounts medium stone-dark, names, dates and thresholds plain. One line of detail (2026-10-27, Danielle): one key fact per card — the filter shows the rest — truncated from sm if a long name pushes it over (on a phone, two to a row, it may wrap); a negative card's label stays stone-light with its warning mark in red, as Metric's does. No status tabs beside the cards: two vocabularies for one list. Views by kind are not status tabs (2026-10-30, Transactions): All · Payments · Refunds · Credit applications stand where the Summary heading was and scope everything under them — each view has its own cards, filters and columns — so the cards are still the one vocabulary for state. Four across from lg and two below; three across from sm, and on a phone two columns with the first across both (2026-10-15).Ui::SummaryCardComponent (a filtering card is a link carrying the list's GET params, chosen when they match) and Ui::PeriodControlComponent

Built outside the vocabulary, with no row yet (2026-10-15). These are built, previewed in the Lookbook with their props and app targets, and used on the Invoicing pages, but have not been proposed as rows: Card (the volume levels in Surfaces), Table (light and featured, stack_below, reflow_below, sticky_head — a list's head pinned to the top of the page card while its rows scroll, 2026-10-27; onColumnMove — columns dragged into a new order from the head, 2026-10-27; TableGroupRow — a heading over grouped rows, 2026-10-30), ColumnsControl (the list toolbar's Columns button: show, hide and reorder a table's columns, remembered per person, 2026-10-27), PlanGate (one pattern for a feature behind a higher plan or an add-on: when locked, the feature's page is the upsell and nothing else — a centred surface-warm panel with an illustration, the plan's mark, a title, what it unlocks and the action — its settings hidden rather than disabled, a deliberate exception to P8, 2026-10-28), PlanBadge (the gem and "Pro", or the puzzle piece and "Add-on", mustard with ink text, in the header of the container a feature lives in once the account has it, 2026-10-28; the upsell's mark is the same mustard, the illustration accent above it), the add-on upgrade (2026-11-12: one page per add-on, every locked feature's route showing it in its place — AddOnPitch, the suite sold led by the capability you came for, with one-click Start free trial and its terms beside the button; AddOnCapabilities; AddOnStanding, the trial, the bill or the plan that includes it; AddOnMark; the add-on's own setup card; and CancelAddOnDialog, when it ends, what stops and keeps working, and open records as a choice defaulting to keep; Advanced Invoicing first), CollectRunBar (2026-11-12: the bar across an invoice while you go through a list one at a time — back to the list, Previous, "Invoice 3 of 12", and Skip turning into Next once something is done to the invoice; it never moves on by itself, so a payment can still be followed by the email and the sync), DownloadCsvButton (the list toolbar's Download CSV: the rows the list matches, as a file, 2026-10-28), BulkActionsMenu (the list toolbar's Bulk actions, listed disabled until rows are chosen, 2026-10-28), GroupControl (the list toolbar's Group by, 2026-10-30), TextLink (inline, entity-id, entity-name, table-action), Banner, Toast, Modal, EmptyState, DateField and Calendar, Metric, Timeline, SegmentedControl, SetupGuide, ListChrome, Meter (a 12px navy bar for how much of a whole is done or chosen, 2026-11-12). Their rules live in the rows above where they touch one (Surfaces, Outlined controls, List controls, the Document page) and in each Lookbook entry. Agreeing them, or folding them into existing rows, is an open item for the app team (HANDOFF, Open decisions).

Icons are Font Awesome Pro 7, loaded from the account's kit (2026-10-05), referenced by Font Awesome's own current names — house, not FA5's home-alt; xmark, not times. Written as <i class="fa-duotone fa-regular fa-house">; duotone is the house look — buttons default to it for pictures, and the Icon unit itself defaults to light — with the second layer at 40% (--fa-secondary-opacity) turning its hover colour at full opacity. The primary layer rests at stone-light and goes to stone on hover. This replaced the app's vendored FA5-era SVGs, which is where the heaviness behind the old solid-only rule for buttons and badges came from; the kit is not domain-locked, so one tag serves every environment. The app is still on the vendored set and the FA5 names; the rename list is LEGACY_NAMES in the design repo's components/ui/icon.tsx.

Pattern for the design repo

  • Name and shape components after the vocabulary: same names, same prop names, same enum values. One component per file.
  • Colors, fonts, sizes, radii and shadows come from the tokens. A value that is not a token is a new token: add it and say so in the pull request.
  • Icons by Font Awesome name and family. No other icon set.
  • A component outside the vocabulary is fine: build it and name it in the pull request so it becomes a new row here.
  • Every page ships with its preview link and screenshots at 1920, 1440, 1024, 768 and 390.

Pattern for conversion into the app

  • Each vocabulary unit becomes Ui::<Name>Component in app/components/ui/ with a Lookbook preview covering every variant and state, and a side-by-side screenshot (source vs Lookbook) in the pull request.
  • Classes: add the tw- prefix after variants (hover:tw-bg-navy); respell slash opacity (bg-white/50 becomes tw-bg-white tw-bg-opacity-50); arbitrary values (tw-w-[220px]) compile under JIT. Variants that exist only in Tailwind 3 and 4 (data-[state=open]:, aria-*:, has-[]:, *:) and utilities like size-* have no equivalent in Tailwind 2: use Stimulus class toggling or explicit width and height.
  • Behavior comes from existing Stimulus controllers before any new JavaScript: floating-tooltip (see .claude/rules/stimulus/floating-tooltip.md), popover, dropdown, modal and turbo_frame_modal, slideover, Tabs (tailwindcss-stimulus-components), tom_select, toast.
  • Components are CSS-first; Stimulus only where behavior requires it.