Design principles
The nine principles every screen follows, and the visual rules (volume, earned saturation, navy vs mustard, the disclosure ladder).
DESIGN.md · Handoff bundle 06-design-principles.md (January 2026), plus visual rules from the pattern workshop
Copied from the design handoff bundle's 06-design-principles.md (January 2026) on 2026-09-22, with a Visual rules section added from the pattern workshop.
Purpose: Opinionated rules that guide every UI/UX decision. When designing a feature, check your decisions against each principle. If you're making a tradeoff, name which principle you're trading against and why.
The central tension
RoasterTools is a workflow orchestration system. Users both:
- Produce data through actions (place orders, fulfill, invoice, sync)
- Consume data to ensure nothing falls through (sync status, exceptions, auditing)
The research shows:
- Action-taking works well for power users (batch operations, 998K fulfill events in 90 days, typeahead everywhere)
- Awareness is failing (~900 sync-related tickets, "did it sync?" with no indicator, mental model gaps, "reset" as the only recovery)
But we can't just add visibility everywhere—that creates noise and slows users who are already efficient.
The nine principles below resolve this tension.
The principles
1. Ambient Awareness, Not Active Checking
Users should absorb system state by glancing, not by querying.
What this means:
- State flows to the user; users don't search for it
- Badge counts, status colors, and inline indicators communicate without being asked
- "Did it sync?" should never require clicking to find out
What this doesn't mean:
- Every status visible at all times (that's noise)
- Notifications for everything (that's interruption)
Traces to: Tyler at Unity Coffee manually checking payment methods account-by-account; Anna at Buunni: "I didn't know it was being utilized"; ~900 tickets asking "did it sync?"
2. Delegation is Success—With Monitoring
The user's job is getting items off their mental plate, not completing every step themselves. But delegation without oversight is abdication.
What this means:
- An invoice on autopay is "done" from an action perspective, but not forgotten
- A synced order is "delegated" to the accounting system—and its status remains visible
- Success = user attention freed, not workflow complete
- Delegated work needs monitoring affordances
Why this matters: RoasterTools tracks workflows that span weeks (order → fulfill → invoice → payment → accounting). If "success" means end-to-end completion, users feel perpetually behind. If success means "delegated," users can mentally close loops. But if delegated items disappear into a black box, users won't trust delegation—and won't use it.
Traces to: Original 90% same-day invoice target was wrong—B2B has 30-day net terms. Revised definition: delegation rate (paid + autopay + synced). Trust erosion when users can't see what happened to delegated work.
3. Guardrails Over Gates
Warn before mistakes; don't block legitimate paths.
What this means:
- Soft blocks: "This will create negative inventory—continue?" with [Cancel] [Continue Anyway]
- Explain consequences before action, not after
- Power users can override; the system remembers their choice
What this doesn't mean:
- Let users do anything (destructive actions still need confirmation)
- Hard blocks that prevent valid edge cases
Traces to: Dan at Bird and Bear completed tasks in wrong order, created negative inventory. "Reset" is the common recovery pattern—users don't know how to undo. Valentine Coffee zeroes out inventory weekly to recover from errors.
4. Recovery Over Prevention
Every action should have an undo path. "Reset everything" is failure.
What this means:
- Design the recovery first, then the action
- Provide undo windows (10 seconds post-action minimum)
- When undo isn't possible, provide correction flows
- "Fix this" should be one click away from the error
The hierarchy:
- Undo (best): reverse the action directly
- Correction flow: guided steps to fix the result
- Manual intervention: clear instructions for what to do
- Support ticket (failure): user doesn't know how to proceed
Traces to: "Reset" as the only recovery path. 52 error recovery tickets with ~0% complexity—the fix is simple, users can't find it. One Line Coffee: 2+ months waiting for resolution.
5. Workflows Have Direction
Show users where they are in the workflow, not just what state the item is in.
What this means:
- Workflows are linear stories with a beginning and end
- The user should always see: where they came from, where they are, what's next
- "Approved → Fulfilled → Shipped → Invoiced → Paid" is a narrative, not a bucket
What this doesn't mean:
- Force linear completion (users can skip steps where legitimate)
- Hide status details (narrative + status both have value)
Traces to: Valentine Coffee training: "The act of removing inventory from your packaged inventory happens when you mark it as fulfilled. And so the ship is just another check mark." "Fulfill = Ship" mental model mismatch. Task sequencing errors creating negative inventory.
6. Three Temporal Lenses: Action, Monitoring, Review
Users operate in three cognitive modes with different temporal horizons. The same data serves all three, but the presentation differs.
The three lenses:
| Lens | Question | Horizon | UI Need |
|---|---|---|---|
| Action | "What do I need to do?" | Now (minutes) | Speed, batch operations, minimal friction |
| Monitoring | "Is delegated work progressing?" | Soon (hours) | Exceptions surfaced, status at a glance |
| Review | "What patterns should inform my decisions?" | Later (days/weeks) | Aggregates, trends, drill-down |
Same UI or separate views? Same UI, different entry points. Action is the default (batch operations on full lists). Monitoring surfaces exceptions ("needs attention" filters, delegated items dashboard). Review aggregates trends (dashboards, reports).
Who uses which lens? Depends on scale. At a 5-person roastery, the owner is all three. At a 50-person operation, the production floor is pure Action, the office manager is Monitoring, and the owner is Review. The same person may also move through all three modes in a single day.
The gap: Action mode is well-served (batch operations work). Monitoring is scattered at best—no unified "delegated items" view. Review barely exists (CSV exports aren't dashboards). This gap erodes trust.
Traces to: Power users need batch speed (998K fulfill events in 90 days). Same users ask "did it sync?"—that's Monitoring, not Action. Monday morning spike (28.5% of weekly activity) includes both catch-up Monitoring and batch Action.
7. External Systems Are Visible
Integrations should be felt, not just configured.
What this means:
- When data crosses system boundaries (QuickBooks, Shopify, Stripe), users should see it happen
- Sync status is part of the object's state, not a separate system
- Failures surface immediately and persistently
What this doesn't mean:
- Constant notifications for every sync (ambient, not interruptive)
- Technical details visible (no "Rutter webhook failed")
The visibility spectrum:
| Level | When to use |
|---|---|
| Invisible | Internal state changes (Rails callbacks) |
| Ambient | Cross-system sync in progress or complete |
| Prominent | Sync failed or needs user action |
| Blocking | Cannot proceed until sync resolves |
Traces to: ~900 accounting sync tickets (75% of UX issues). "Queued" and "Mappable" are developer terms, not user terms. AI could only resolve 10% of accounting tickets.
8. Show Why, Not Just What
Actions should be visible even when unavailable. Disabled states explain why.
What this means:
- Show buttons/actions disabled rather than hidden
- Disabled state includes reason: "Requires shipping address"
- Users discover features even in wrong context
- "Why can't I do this?" is answerable without support
What this doesn't mean:
- Show every possible action everywhere (progressive disclosure still applies)
- Disabled actions compete visually with available actions
The tension with progressive disclosure: This principle creates a challenge: show more (disabled) vs. show less (clean). Resolution:
- Primary actions: Always visible, disabled with reason when unavailable
- Secondary actions: Can be in overflow menus, but if shown, show disabled not hidden
- Sections: Can collapse, but indicate content exists ("Payments (requires shipping)")
Traces to: "Where was that button?"—hidden actions create confusion. Payment button unavailable without shipping value—but no indication why. Mental model gaps when features appear/disappear based on state.
9. Mobile is the Starting Point
Design for single-column mobile first. Desktop adds columns, not content.
What this means:
- Every view begins as a mobile layout
- Responsive breakpoints ADD structure (sidebars, detail panels, multi-column grids)
- If it doesn't work on mobile, it doesn't ship
What this doesn't mean:
- Make desktop worse to serve mobile
- Strip features for small screens
The context: 55% of views have no responsive styles. Operations users work on the production floor (tablets). Inventory counts happen in warehouses (phones). Portal customers are cafe managers on phones.
Traces to: No "Mobile" label exists in Linear (blind spot). Portal serves busy cafe managers. Operations/inventory are physical contexts.
Quick reference card
For feature design decisions, check:
- Is state ambient? Users shouldn't have to search for status. (P1)
- What counts as "done"? Delegation with monitoring, not completion. (P2)
- Are there soft blocks? Warn, don't prevent. (P3)
- Can users undo? Recovery paths for every action. (P4)
- Is the narrative clear? Users should know where they are in the workflow. (P5)
- Which lens? Action (do it), Monitoring (is it progressing?), or Review (what patterns matter?). (P6)
- Is the external system visible? Integrations should be felt. (P7)
- Is unavailability explained? Show disabled with reason, not hidden. (P8)
- Does it work on mobile? Start there, enhance for desktop. (P9)
Visual rules
The principles above say what a feature must do. These rules, taken from the pattern workshop (workshop-brutalist.html in the handoff bundle), say what it looks like. Tokens and component names are in docs/design-canon.md.
Volume control
One loud thing per view. Containers come in four volumes: featured (2px stone-dark border plus shadow-brutalist) for the element that anchors a view — on a Document page, the table the record is about; standard (2px border, no shadow) for secondary cards; quiet (a 1px stone-400 edge, its header and footer bands stone-25 over a white body — stone-25 all over without bands, 2026-10-28) for dense infrastructure, reference columns and every form container (2026-10-13; forms were standard until then — a stack of 2px boxes down a form was the loudest thing on the page, and a form's fields and its primary button already say what it is); and light (1px stone-400, or 1px stone-300 when the table sits inside a card, 8px radius) for tables and list cards (2026-10-08: they had carried the 2px frame, and on a list page the frame competed with its content). Featured has one variant, the error frame (shadow-brutalist-error, the same offset in status-error-dot), for a container whose content is what is wrong. On an Overview every section is quiet; the one loud box is Needs attention in the error frame while it has something to fix, or Get set up, featured, while payments are not set up; with nothing to fix the page has no loud box at all (2026-10-13). If two things on a page are featured, one of them is wrong.
Quieten by subtracting, not by fading (2026-10-02). When a page feels busy, take something off it or move it into the side panel. Do not answer noise by turning everything down — lighter borders, greyer headers, smaller titles and text. Each of those reads as reasonable on its own, and together they leave a page where nothing leads and every box has to be checked to find the one that matters. One area of the page leads, everything else steps back, and content that is not a container sits directly on the page. This rule exists because the prototype got it wrong the other way round first: between 2026-09-24 and 2026-09-26 the standard card was flattened onto the quiet one, the table frame and head rule were lightened, cells dropped to ui-sm and page titles to ui-xl — all to reduce noise, all of which removed the hierarchy instead. The count of containers on a page is the thing to watch; a page that needs six standard cards is a page that needs fewer sections.
Surfaces
The frame (the sidebar and the breadcrumb strip) is stone-100. The page panel is white. A card's header and footer bands are stone-25 and its body is white, as a table's head band is stone-25 over white rows (2026-10-28); a card with neither band is stone-25 all over. Tables are white.
Controls
Fields, outlined buttons and the segmented control have a 1px stone-400 edge, the same as cards and tables, so the boxes on a page look like one set. A focused field keeps that edge; the mustard ring is the only sign of focus.
Illustrations
Neo-brutalist duotone drawings (2026-10-28): heavy ink outlines, flat white and sand, exactly one mustard accent, and a hard ink shadow under the main object — the system's own shadow-brutalist, drawn. One scene per screen at most (an upsell, a page-level empty state); spots in empty states and small banners; never in a control, a table or a field. Textures (bands, grid, dots, hatching, beans) go behind a picture on a warm panel, never behind copy. The roastertools-illustrations skill has the rules and the set.
Earned saturation
Full saturation is earned, not default. Rust is the primary call to action and the brand mark, and nothing else. Mustard is reserved for current, active and focus states — where you are now; what you have chosen is navy (see Navy versus mustard). Everything else sits on the stone ramp and the surface tokens.
Warm throughout
Every colour has a warm undertone. The neutral ramp is stone, never slate or gray, and the surfaces are off-white and warm. Navy is the only cool colour in the system. It means "chosen", and it has one other job: a link to a record (an identifier or a customer, the navy link variant), because rust is the call to action and a record's link beside a red status must not read as part of the alarm.
Stone use
stone-200 and darker are for lines and text. Large areas (the frame, page panels, cards, filled bands) use white, stone-25, stone-50 or stone-100. Tailwind's stone ramp changes tint at stone-200: stone-50 and stone-100 lean yellow, while stone-200 leans orange-pink and carries three times as much colour (stone-100 is oklch(97% 0.001 106.424), stone-200 is oklch(92.3% 0.003 48.717)). A large stone-200 area beside white or stone-100 looks like a pink grey from another palette; a 1px line is too thin for the tint to show.
Semantic status colours
Success, error, warning, info, neutral and pending (with ready and shipped for the Badge) mean the same thing on every page, and universal recognition wins over palette purity: red is error, green is success. Status colours never decorate. The brutalist identity comes from structure (borders, shadows, type), not from colour.
Navy versus mustard
Navy says "you have chosen this": a persistent selection such as the active segment in a segmented control, a chosen summary card or the checked rows in a table. (Active-filter pills were navy until 2026-10-05; they are outlined controls now, and the value in ink is what says a filter is on.) Mustard says "you are here right now": the current row in a side panel, the focus ring, the current step in a lifecycle bar, today's date in the Overview's week (a mustard dot, 2026-10-27). A thing can be both (a selected row that also has focus), but the two colours never swap jobs.
The disclosure ladder
Five levels, each one step heavier than the last. Level 0, in place: one field edited where it is shown (Inline edit, 2026-10-06) — an annotation is less content than a popover is a container. Level 1, tooltip: hover, read-only, one line. Level 2, popover: click, interactive; at most three fields or five options. A level-2 card that is consulted rather than operated opens on hover and focus instead (the lifecycle bar's step cards, the sync card, 2026-10-07), with a tap to toggle on touch. Level 3, slideover: a deep edit or a record summary, opened without losing the list behind it. Level 4, a page: complex workflows. Move up a level only when the lower one cannot hold the content, and never skip a level to make something feel important.
Focus
A 3px solid mustard outline with no offset, on every interactive element: inputs, buttons, links, rows, checkboxes and switches. It is the same ring everywhere, so it is never mistaken for a selection state.
Typography
Headlines are Poppins 600, never bold, with tracking-tight above ui-xl. Body is Inter. Sizes come from the fixed text-ui-* scale, ui-2xs to ui-4xl: ui-base for body copy, ui-sm is the floor for anything a person reads (table cells, buttons, nav, labels, dense tables), and ui-xs is for micro-labels only — the canon lists every ui-xs use (Badge labels, uppercase heads, field help and error lines, provenance sub-lines, a transaction's method under its type, captions and notes under a number) so the list does not grow by accident, and the Document rail's 10/12px is its one deliberate exception. ui-4xl (40px on 44px) is the Overview's four top numbers and nothing else, and below 1280 they are ui-3xl, where four sit beside the icon rail or the tiles go two and one to a row. A list page's summary cards keep their cents and so take ui-3xl from 1280 and ui-2xl below. De-emphasise with colour (stone-light) or weight, never by shrinking.
Comparisons
A comparison with an earlier period is a Badge beside the number, coloured by whether the change is good or bad news, never by which way it moved: success when better, error when worse, neutral for no change. Its arrow says which way the number moved, so the pill still reads for someone who cannot tell green from red, and hovering it shows the earlier period's figure. Better depends on the measure: fewer days to get paid, more collected, less refunded. With no earlier period there are no pills, and the section says so once; when the earlier period had none of something, a note says that under the number instead of a pill.
Money on an Overview
On an Overview, amounts of $1,000 or more are rounded to the nearest dollar with no cents ("$66,920"): the page is read at a glance, and cents on a large total add length without changing what anyone does next. Amounts under $1,000 keep their cents, so a few cents overdue never show as "$0", and every page that lists records keeps its cents — matching a payout to a deposit, or an invoice to its payment, happens there. Every amount on the page follows the same rule, so a figure that appears twice reads the same both times.
Spacing on an Overview
Spacing alone shows what belongs together. 4px from a label to its number, a title to its description and a bar to its caption; 8px from a number to the lines under it and from a group label to its first row; 16px between rows in a list, and between a box's header text and the line under it; 24px inside a box, between groups inside a box and between boxes. A section's description is 14px stone with its numbers and dates medium stone-dark. A line under a number is a fact in the same style or a note (12px stone-light: a caption saying what a bar shows, or a line saying why a number is missing or what it covers), so a comment never reads like a figure.