Brokkr rules
Components
The parts NPC apps are built from, set with Brokkr's component tokens. Components point to the semantic tokens, never to the palette, so they follow the theme. The component audit checks every token change:
- Pass: no component references a color primitive.
- Pass: every literal size in a component is on the 4 px grid.
- Pass: every reference resolves in the light theme.
- Pass: every reference resolves in the dark theme.

Controls
Buttons, inputs and links. A button has no fill; its border carries the shape. One primary button per screen: it is the screen's Signal emphasis. Every control works from the keyboard; the rules below say how.
Everything an NPC app does with a pointer, it does from the keyboard, in the order the page reads. Brokkr gives the focus ring and the control sizes; the app gives the order, the way out and the shortcuts. A screen that passes these rules also works with a switch, with voice control and with a screen reader.
Everything works from the keyboard
Every action a pointer can take has a keyboard path: Tab reaches the control, Enter or Space uses it. What appears on hover also appears on focus.
- Write
- the × on a filter chip, reached with Tab and pressed with Enter
- Not
- a row action that shows only while the pointer is over the row
Focus follows reading order
Tab moves as the page reads, top to bottom and start to end (right to left in Arabic): header, nav, toolbar, content, inspector. The code order is the visual order, and focus never jumps without the person's action.
- Write
- Tab from the last toolbar button lands on the first row of the table
- Not
- a toolbar whose Tab order follows the code's grouping instead of the screen
Focus is visible
The focus ring (2 px, offset 2 px) shows on every control reached with the keyboard. It is never hidden, thinned or recolored, and a pointer click shows no ring.
- Write
- the ring around the focused Export button
- Not
outline: noneon a button, or a ring in a color the screen already uses for status
Escape closes what is open
A menu, a popover, a dialog, the inspector, a toast. One press closes the topmost; focus returns to the control that opened it.
- Write
- Escape closes the Export dialog and puts focus back on Export
- Not
- Escape that does nothing, or that closes the dialog and leaves focus on the page body
A link goes, a button acts
A link takes the person somewhere (another page, a section, a file) and is an <a>. A control that changes something on the page (Undo, Retry, Clear all) is a <button>, even where Brokkr draws it as the underlined link.
- Write
- Undo as a
<button>drawn as the link, read as “Undo, button” - Not
<a href=“#”>Undo</a>, which a screen reader calls a link and Enter follows
Enter sends the primary action
In a form or a dialog, Enter fires the primary button; in a text area it inserts a line. Space toggles a checkbox, a radio button or a pressed button.
- Write
- Enter in the Revision field issues the form
- Not
- Enter that issues the form from inside the Comment text area
Arrows move inside a group, Tab leaves it
A segmented control, a menu, a radio group, the board's columns and the viewer's tool strip are one Tab stop each. Arrow keys move inside, Home and End jump to the ends, and Tab moves on.
- Write
- Tab lands on the current view button; left and right change the view
- Not
- every segment of a segmented control as its own Tab stop
Shortcuts stay out of the browser's way
An app has few shortcuts, each shown in the control's tooltip, and none that the browser or the system already uses for something else. A shortcut keeps its meaning everywhere; a single letter acts only while no field has focus.
- Write
- “Save topic (Ctrl+S)” in the tooltip, saving as everywhere
- Not
- Ctrl+F taken for Filter, or a shortcut nobody can discover
Button
The default button, at full or dense height, and pressed as a single toggle. A group where one is on is a segmented control (9).
- control.button.backgroundNo fill in either themeNo fill; the border carries the shape.
- control.button.colorLight #23211E | 13.03–14.38 Pass, needs 4.5
Dark #F5F2ED | 12.83–14.38 Pass, needs 4.5 - 40pxcontrol.button.height
- 32pxcontrol.button.height-dense
- control.button.hover-backgroundLight #EBE7E0 | Dark #2C2A26
Same as control.button.pressed-background, checked there - 1remcontrol.button.icon-sizeThe dense icon size, so the icon scales with the label.
- 12pxcontrol.button.padding-inline
- control.button.pressed-backgroundLight #EBE7E0 | Dark #2C2A26
A ground: pairs are checked on itA single toggle button that is on. A group where one is on is a segmented control (segmented.*), whose current item stays visible on a panel. - control.button.typographyMedium 13/16 px. Dense size, Medium.
Primary button
The one main action on a screen.
- control.button-primary.backgroundLight #AE450A | 4.66–5.14 Pass, needs 3
Dark #EE895E | 5.71–6.40 Pass, needs 3 - control.button-primary.border-colorLight #AE450A | Dark #EE895E
Same as control.button-primary.background, checked thereSame as the fill; the shape comes from the fill. - control.button-primary.colorLight #F5F2ED | 5.14–7.36 Pass, needs 4.5
Dark #23211E | 6.40–9.91 Pass, needs 4.5 - control.button-primary.hover-backgroundLight #8A3300 | Dark #FFBCA1
A ground: pairs are checked on it
Danger button
Actions that delete or can't be undone. Its label says what happens.
- control.button-danger.backgroundLight #B43731 | Dark #B43731
A ground: pairs are checked on it - control.button-danger.border-colorLight #B43731 | 4.82–5.33 Pass, needs 3
Dark #FE8A7E | 6.24–7.00 Pass, needs 3The edge that gives the button 3:1 on the grounds: the fill in light, Brick 300 in dark, where the fill alone is too dark. - control.button-danger.colorLight #F5F2ED | 5.33 Pass, needs 4.5
Dark #F5F2ED | 5.33 Pass, needs 4.5
Disabled button
Shown only when the reason is clear from the screen.
- control.button-disabled.border-colorLight #B9B3A7 | Dark #77716A
Disabled: exempt from contrast (WCAG 1.4.3) - control.button-disabled.colorLight #5F5A53 | Dark #B9B3A7
Disabled: exempt from contrast (WCAG 1.4.3)
Busy button
While its action runs: the label in the present participle with an ellipsis, the subtle color and a progress cursor, and it can't be pressed again. The result comes back as a toast or in place.
Built from Button
- control.button-busy.border-colorLight #77716A | 3.91–4.32 Pass, needs 3
Dark #9A948A | 4.76–5.34 Pass, needs 3 - control.button-busy.colorLight #5F5A53 | 5.54–6.12 Pass, needs 4.5
Dark #B9B3A7 | 6.87–7.70 Pass, needs 4.5 - progresscontrol.button-busy.cursorThe pointer while the action runs.
Input
Text inputs and the search field. Placeholders give an example, never the label.
- control.input.backgroundLight #FBF7F5 | Dark #43403A
A ground: pairs are checked on it - control.input.colorLight #23211E | 15.08 Pass, needs 4.5
Dark #F5F2ED | 9.25 Pass, needs 4.5 - 40pxcontrol.input.height
- 32pxcontrol.input.height-dense
- 12pxcontrol.input.padding-inline
- control.input.placeholder-colorLight #5F5A53 | 6.42 Pass, needs 4.5
Dark #B9B3A7 | 4.95 Pass, needs 4.5 - control.input.typographyRegular 13/16 px.
Link
Always underlined, so color never carries it alone.
- control.link.colorLight #23211E | 13.03–14.38 Pass, needs 4.5
Dark #F5F2ED | 12.83–14.38 Pass, needs 4.5 - control.link.typographyRegular 13/16 px.
- 4pxcontrol.link.underline-offset
Border and focus
Shared by every control: a 4 px corner, a 1 px border and a 2 px focus ring set off by 2 px.
- 4pxcontrol.radius
- 1pxcontrol.border-width
- control.border-colorLight #77716A | 3.91–4.53 Pass, needs 3
Dark #9A948A | 3.43–5.34 Pass, needs 3 - 2pxcontrol.focus-width
- 2pxcontrol.focus-offset
- control.focus-colorLight #8A3300 | 6.67–7.36 Pass, needs 3
Dark #EE895E | 5.71–6.40 Pass, needs 3
Segmented control
A group of buttons where one is on: views, periods, settings tabs. The current item is raised and Medium with a 2 px rule under it, so it shows on a panel too. Each item keeps its Medium width.
Built from Button
- segmented.border-colorLight #77716A | 3.91–4.32 Pass, needs 3
Dark #9A948A | 4.76–5.34 Pass, needs 3 - 1pxsegmented.border-width
- segmented.current.backgroundLight #FBF7F5 | Dark #43403A
A ground: pairs are checked on it - segmented.current.colorLight #23211E | 15.08 Pass, needs 4.5
Dark #F5F2ED | 9.25 Pass, needs 4.5 - 500segmented.current.font-weight
- segmented.current.indicator-colorLight #23211E | 15.08 Pass, needs 3
Dark #F5F2ED | 9.25 Pass, needs 3Rule at the block-end edge of the current item. - 2pxsegmented.current.indicator-width
- segmented.divider-colorLight #77716A | 3.91–4.32 Pass, needs 3
Dark #9A948A | 4.76–5.34 Pass, needs 3The line between items. - 1pxsegmented.divider-width
- segmented.item.colorLight #23211E | 13.03–14.38 Pass, needs 4.5
Dark #F5F2ED | 12.83–14.38 Pass, needs 4.5 - segmented.item.hover-backgroundLight #EBE7E0 | Dark #2C2A26
A ground: pairs are checked on it - 12pxsegmented.item.padding-inline
- 4pxsegmented.radius
Forms
Labels sit above their fields in sentence case. Help sits below the field. An error says how to fix the problem and has an icon, so color never carries it alone. Defaults, choices, when to validate and the submit button follow the rules below.
A form asks for as little as it can, in the order the person thinks, and never punishes a half-finished answer. The words (labels, help, errors) are in docs/voice.md; these rules say what the form does.
Ask only for what the app can't know
What the system already knows (the project, the date, the author) is filled in as a default the person can change. Nothing is asked twice.
- Write
- Due date filled with next Friday; Project filled with the open project
- Not
- an empty Project field on a page that already names the project
A choice over a text field
When the answers are few and known, offer them as radio buttons, a segmented control or a menu. Free text is for what is open-ended.
- Write
- “Issue as” with the radio buttons For comment and For construction
- Not
- a text field for a status
Validate on leaving the field
A value is checked when the person leaves the field, and the error appears under it. While they type, nothing is said; once the value is right, the error goes.
- Write
- “Enter a revision with two digits, for example P02” after leaving the field
- Not
- red text on the first keystroke
Submit stays available
The primary button is never disabled to signal a missing value. Pressing it shows every error beside its field, a summary at the top of a long form, and moves focus to the first error.
- Write
- Issue pressed, “Enter a due date after today” under the field, focus on it
- Not
- a grayed-out Issue with no word about why
Keep what was typed
A failed submit keeps every value. A dialog with unsaved changes asks before it closes (see Dialogs), and a form that is left keeps its draft where the task allows it.
- Write
- after “Upload failed”, the form keeps its values and the file
- Not
- a cleared form after an error
Numbers as people type them
A number field accepts the forms people use (1284, 1,284, 1 284) and shows the value the way Brokkr's number rules do once the field is left (1,284). The unit sits in the label, never in the field.
- Write
- “Area (m²)” as the label, “1,284” after leaving the field
- Not
- “Enter a number without commas”
Shown on the cover sheet.
Enter a revision with two digits, for example P02.
Field and label
One field per row, one body line apart.
- 20pxform.field-gapBetween fields: one body line.
- form.label.colorLight #23211E | 13.03–14.38 Pass, needs 4.5
Dark #F5F2ED | 12.83–14.38 Pass, needs 4.5 - 4pxform.label.space-after
- form.label.typographyMedium 13/16 px. Sentence case, Medium. Not the caps label style.
Optional
Mark the optional fields, not the required ones.
- form.label.optional-colorLight #5F5A53 | 5.54–6.12 Pass, needs 4.5
Dark #B9B3A7 | 6.87–7.70 Pass, needs 4.5"(optional)" after the label, Regular.
Help
One short line under the field.
- form.help.colorLight #5F5A53 | 5.54–6.12 Pass, needs 4.5
Dark #B9B3A7 | 6.87–7.70 Pass, needs 4.5 - 4pxform.help.space-before
- form.help.typographyRegular 12/16 px.
Error
A 2 px border on the field and a message with an icon under it.
- form.error.border-colorLight #B43731 | 5.59 Pass, needs 3
Dark #FE8A7E | 4.50 Pass, needs 3 - 2pxform.error.border-width
- form.error.colorLight #B43731 | 4.82–5.33 Pass, needs 4.5
Dark #FE8A7E | 6.24–7.00 Pass, needs 4.5Message with an error icon, saying how to fix it. - 4pxform.error.space-before
- form.error.typographyRegular 12/16 px.
Text area
Longer answers. It grows with the text.
- 80pxform.textarea-min-height
Radio buttons
One choice from a few, all visible. The label is part of the target.
- form.choice.border-colorLight #77716A | 3.91–4.32 Pass, needs 3
Dark #9A948A | 4.76–5.34 Pass, needs 3 - 1pxform.choice.border-width
- form.choice.checkedLight #23211E | 13.03–14.38 Pass, needs 3
Dark #F5F2ED | 12.83–14.38 Pass, needs 3 - 8pxform.choice.gapBetween the control and its label.
- 20pxform.choice.group-gapBetween options in a row.
- 8pxform.choice.radio-dot
- 16pxform.choice.size
- form.choice.typographyRegular 13/16 px.
Checkbox
On or off, or several choices. Checked is filled in the text color, never Signal.
- checkbox.border-colorLight #77716A | 4.53 Pass, needs 3
Dark #9A948A | 3.43 Pass, needs 3 - 1pxcheckbox.border-width
- checkbox.checked-backgroundLight #23211E | 15.08 Pass, needs 3
Dark #F5F2ED | 9.25 Pass, needs 3Checked: filled in the text color, never Signal. - checkbox.checked-markLight #F5F2ED | 14.38 Pass, needs 3
Dark #23211E | 14.38 Pass, needs 3 - 4pxcheckbox.radius
- 16pxcheckbox.sizeThe box; the clickable target is the whole row or label, at least 24 px.
Range
A slider for a setting with many steps, such as line strength. The filled part and the thumb are in the text color, never Signal.
- form.range.fill-colorLight #23211E | 13.03–14.38 Pass, needs 3
Dark #F5F2ED | 12.83–14.38 Pass, needs 3 - form.range.thumb-colorLight #23211E | 13.03–14.38 Pass, needs 3
Dark #F5F2ED | 12.83–14.38 Pass, needs 3 - 16pxform.range.thumb-size
- form.range.track-colorLight #77716A | 3.91–4.32 Pass, needs 3
Dark #9A948A | 4.76–5.34 Pass, needs 3 - 4pxform.range.track-height
Actions
At the end of the form, primary first.
Built from Primary button and Button
- 8pxform.actions.gap
- 20pxform.actions.space-before
Filters and menus
Applied filters show as chips in one bar, with Filter to add one, Clear all and a live count of what is left. Menus are square and raised, with the UI border and a shadow. Checked items use the text color, never Signal.
Filter bar
One row above the content it filters. It wraps on narrow screens.
Built from Filter chip, Button, Clear all and Result count
- 8pxfilter.bar-gap
Filter chip
An applied filter, as "Name: value". Same type as a button.
- filter.chip.typographyMedium 13/16 px. Same as a button: 13 px Medium.
- filter.chip.colorLight #23211E | 13.03 Pass, needs 4.5
Dark #F5F2ED | 12.83 Pass, needs 4.5 - 32pxfilter.chip.height
- 12pxfilter.chip.padding-inline-start
- 4pxfilter.chip.padding-inline-endThe remove target supplies the rest.
- 4pxfilter.chip.gap
- 4pxfilter.chip.radius
- 1pxfilter.chip.border-width
- filter.chip.border-colorLight #77716A | 3.91 Pass, needs 3
Dark #9A948A | 4.76 Pass, needs 3 - filter.chip.active-backgroundLight #EBE7E0 | Dark #2C2A26
A ground: pairs are checked on itAn applied filter.
Remove
The × in each chip, a 24 px target. Its accessible name says which filter it removes.
- 24pxfilter.chip.remove-sizeThe × target, at least 24 px.
- filter.chip.remove-colorLight #5F5A53 | 5.54 Pass, needs 4.5
Dark #B9B3A7 | 6.87 Pass, needs 4.5
Clear all
A button drawn as the underlined link: it acts on the page, so it is a button element, never drawn as a button. Shown only when a filter is applied.
Built from Link
- filter.clear.colorLight #23211E | 13.03–14.38 Pass, needs 4.5
Dark #F5F2ED | 12.83–14.38 Pass, needs 4.5Underlined text link, not a button. - filter.clear.typographyRegular 13/16 px.
Result count
What is left, in tabular figures. It updates as filters change.
- filter.count.colorLight #5F5A53 | 5.54–6.12 Pass, needs 4.5
Dark #B9B3A7 | 6.87–7.70 Pass, needs 4.5 - filter.count.typographyRegular 13/16 px. Tabular figures ("1,284 of 9,610 elements").
Menu
Dropdown menus and popovers. It opens below its button, which shows it is open.
Built from Menu item
- menu.backgroundLight #FBF7F5 | Dark #43403A
A ground: pairs are checked on it - 1pxmenu.border-width
- menu.border-colorLight #77716A | 4.53 Pass, needs 3
Dark #9A948A | 3.43 Pass, needs 3 - 0pxmenu.radius
- Per thememenu.shadowLight 0px 4px 16px 0px #23211E29
Dark 0px 4px 16px 0px #23211E66 - 240pxmenu.width
- 4pxmenu.padding-block
Menu item
One line per item. Choices in a menu are checkboxes (checkbox.*), checked in the text color.
Built from Checkbox
- menu.item.colorLight #23211E | 13.03–15.08 Pass, needs 4.5
Dark #F5F2ED | 9.25–12.83 Pass, needs 4.5 - 8pxmenu.item.gap
- 32pxmenu.item.height
- menu.item.hover-backgroundLight #EBE7E0 | Dark #2C2A26
A ground: pairs are checked on it - 12pxmenu.item.padding-inline
- menu.item.typographyRegular 13/16 px.
Feedback
Feedback matches its weight, from a status word beside the item to a dialog for a decision; the rules below say which part carries what. Toasts say what happened after an action, with Undo where the action can be reversed. Empty states say what is empty and what to do. Loading shows the shape of what is coming or real progress, never a spinner alone. Notices say what happened inside a view; tags name a status in a word. All flush left, with no illustrations.
Feedback matches its weight: a message interrupts as much as it matters and no more. From quiet to loud: a status word beside the item, a notice in the view, a toast after an action, a dialog for a decision. Seijaku holds when the quiet steps carry most of the traffic, so the loud ones keep their meaning.
Status in words beside the item
A state that is true now (at risk, for comment, not started) sits next to what it describes, as a tag or a status word with its dot, and stays as long as it is true. Nothing announces it.
- Write
- “At risk” beside the package in the table
- Not
- a toast each time a package falls behind
One role per status word
A status word takes the same role on every screen. Positive is done or on track (Complete, Resolved, Approved, On track); info is open or under way with nothing wrong (Open, In progress, For information); caution is waiting on someone or near a limit (In review, Waiting for comment, For comment, Within tolerance, Watch); risk is late or failing (Behind plan, At risk, Overdue); neutral is not started or no longer active (Not started, Closed). A new word takes the role of the nearest word here and is added to this list.
- Write
- “In progress” in info in the table, on the timeline and in the model legend
- Not
- “In progress” as info in one view and caution in another
A notice for what stays wrong in a view
What happened or what is wrong inside a view, and is still true, is a notice in that view. It stays until the view changes or the problem is gone.
- Write
- “Cloudflare did not answer. Try again in a minute.” as a notice above the list
- Not
- the same words in a toast that closes after eight seconds
A toast after an action
A toast reports an action whose result isn't visible on screen, with Undo or Retry when there is one. If the result shows on screen, there is no toast.
- Write
- “Revision P02 issued”, with “Sent to the Bergen Arena design team”
- Not
- “Topic saved” while the saved topic is right there in the list
A toast waits to be seen
A positive or info toast closes on its own after eight seconds, time to notice it and read a title and one sentence. The timer runs only while the page is visible, pauses while the toast is hovered or focused, and never runs on a caution or risk toast or on a toast with an action.
- Write
- “Revision P02 issued”, closing on its own eight seconds after the tab is in front
- Not
- a toast that counts down in a background tab and is gone when the person comes back
A dialog only for a decision
A dialog interrupts, so it opens only when the person must decide before going on: a confirmation of what can't be undone, a form the task needs. Never for information alone.
- Write
- “Delete topic BCF #7?”
- Not
- “Export complete” in a dialog with OK
A failure shows where it is fixed
An error in a field sits under the field; a failed task is a risk toast that stays until closed, or a notice in the view that holds the task, with Retry. Never a toast that closes on its own.
- Write
- “Upload failed”, with “Oslo-L2.ifc is over 500 MB: split the model and try again.”, as a risk toast that stays
- Not
- the same failure as a positive-styled toast gone after eight seconds
Success is quiet
People expect an action to work, so confirm it only when the result isn't visible or the action mattered (a revision issued, an export sent). One toast; never a dialog, never a sound.
- Write
- “Revision P02 issued”
- Not
- “Success! Your revision has been issued” with a checkmark animation
Loading is feedback too: the screen says what is coming, how far it is and how to stop it. The best loading is over before it is noticed; the rest follows these rules.
Show the shape first
While content loads, a skeleton shows where it will be, the height of the text it stands for. Never a blank view, never a spinner alone, never a dialog.
- Write
- three skeleton lines where the topic list will appear
- Not
- a centered spinner on an empty page
Real progress when the work is known
A progress bar with a label that says what is loading and how far. When the duration becomes known midway, the skeleton gives way to the bar. The pace evens out: never 90% in a second and the rest in a minute.
- Write
- “Loading model | 62%”
- Not
- a bar that fills at once and then waits
Say so when it stalls
After a few seconds without progress, the label says so and what to expect. A stall never looks like a frozen app.
- Write
- “Still loading. Large models can take a minute”
- Not
- a bar stuck at 62% with no word
A long operation can be canceled
Anything that runs more than a few seconds has Cancel beside its progress. If stopping loses something, Cancel says what.
- Write
- “Cancel” beside “Uploading Oslo-L2.ifc | 40%”
- Not
- an upload with no way out
The button goes busy
An action that takes a moment shows it in the button that started it: the label becomes the present participle with an ellipsis, the button can't be pressed again, and the result comes back as a toast or in place.
- Write
- “Issue” becomes “Issuing…” until the toast “Revision P02 issued”
- Not
- a spinner elsewhere on the page, or a button that can be pressed twice
Loading never blocks the rest
What has loaded is usable. A loading panel does not lock the page, and nothing waits behind an overlay.
- Write
- the nav and the toolbar work while the model loads
- Not
- a full-page “Loading…” veil
Brokkr teaches in place and only when it helps. An app explains itself through its labels, its empty states and a tip where something isn't obvious, never through a tour.
No tours
No guided tour, no coach marks and no chain of popovers over the interface on first use. The first step lives in the empty state of the view the person is in.
- Write
- “No topics on this level. Raise a topic from the model.” as the empty state
- Not
- a five-step tour on first sign-in
A tip is a notice
A tip sits inside the view it concerns, as an info notice, one or two sentences. It never points at the interface from a popover.
- Write
- an info notice above the board: “Drag a topic to another column to change its status.”
- Not
- a popover with an arrow pointing at the first column
Where and when it applies
A tip shows the first time its feature is in reach, not all at once on opening.
- Write
- the tip about selecting several elements, the first time the person selects one
- Not
- every tip shown together the first time the app opens
Closed by the person, shown once
A tip has Close and no timer. Once closed it doesn't come back for that person, on any device.
- Write
- a tip closed on the laptop, not shown again on the tablet
- Not
- the same tip on every visit until it is closed again
Revision P02 issued
Sent to the Bergen Arena design team.
Upload failed
Oslo-L2.ifc is over 500 MB: split the model and try again.
Topic archived
BCF #7 is out of the open list.
No issues on this level
Level 2 in Trondheim has no open issues. Show every level to see the rest.
Loading model | 62%
Access updated for three people.
Cloudflare did not answer. Try again in a minute.
Toast
The raised box, and the stack of toasts on screen.
Requirements F1, B3, B4, B6, B7 and A4
- 360pxtoast.width
- toast.backgroundLight #FBF7F5 | Dark #43403A
A ground: pairs are checked on it - 1pxtoast.border-width
- toast.border-colorLight #77716A | 4.53 Pass, needs 3
Dark #9A948A | 3.43 Pass, needs 3 - Per themetoast.shadowLight 0px 4px 16px 0px #23211E29
Dark 0px 4px 16px 0px #23211E66 - 0pxtoast.radius
- 12pxtoast.padding
- 20pxtoast.padding-inline-start
- 8pxtoast.gapBetween stacked toasts.
- 20pxtoast.marginFrom the content edge and the status bar.
- 200mstoast.duration.enter
Status rule
The start rule in the status mark color, and the timer.
Requirements S1, S2, S3, B1 and B2
- 2pxtoast.indicator-width
- toast.indicator.cautionLight #8D5E04 | 5.28 Pass, needs 3
Dark #DF9F3B | 4.51 Pass, needs 3 - toast.indicator.infoLight #5B6A72 | 5.26 Pass, needs 3
Dark #9EAEB6 | 4.52 Pass, needs 3 - toast.indicator.positiveLight #586E50 | 5.24 Pass, needs 3
Dark #9AB292 | 4.50 Pass, needs 3 - toast.indicator.riskLight #B43731 | 5.59 Pass, needs 3
Dark #FE8A7E | 4.50 Pass, needs 3 - 8000mstoast.duration.dismiss-afterPositive and info toasts without an action: eight seconds, time to notice a toast and read a title and one sentence. The timer runs only while the page is visible, pauses while the toast is hovered or focused, and never runs on a caution or risk toast or on a toast with an action (Undo, Retry): those stay until closed or used.
Title and body
What happened, and the detail or the next step.
- toast.title.colorLight #23211E | 15.08 Pass, needs 4.5
Dark #F5F2ED | 9.25 Pass, needs 4.5 - toast.title.typographyMedium 13/16 px. 13 px Medium.
- toast.body.colorLight #5F5A53 | 6.42 Pass, needs 4.5
Dark #B9B3A7 | 4.95 Pass, needs 4.5 - toast.body.typographyRegular 13/16 px.
Close
The button that closes the toast.
- toast.close-colorLight #5F5A53 | 6.42 Pass, needs 4.5
Dark #B9B3A7 | 4.95 Pass, needs 4.5 - 24pxtoast.close-size
Action
Undo or Retry.
Built from Link
- toast.action.colorLight #23211E | 15.08 Pass, needs 4.5
Dark #F5F2ED | 9.25 Pass, needs 4.5 - toast.action.typographyRegular 13/16 px. Undo or Retry: an underlined link, as control.link. Never a button, never Signal.
- 4pxtoast.action.underline-offset
Empty state
A heading, one line of why and what next, and at most one outlined button.
Built from Button
- 20pxempty.action-space-beforeOne outlined button (control.button), not the primary button.
- empty.body.colorLight #5F5A53 | 5.54–6.12 Pass, needs 4.5
Dark #B9B3A7 | 6.87–7.70 Pass, needs 4.5 - 480pxempty.body.max-width
- 4pxempty.body.space-before
- empty.body.typographyRegular 16/20 px. Why, and what to do next.
- empty.title.colorLight #23211E | 13.03–14.38 Pass, needs 4.5
Dark #F5F2ED | 12.83–14.38 Pass, needs 4.5 - empty.title.typographyMedium 20/24 px. Says what is empty ("No issues on this level").
Skeleton
Lines the height of the text they stand for, with a slow pulse (none with reduced motion).
- loading.skeleton.colorLight #B9B3A7 | Dark #77716A
A placeholder, not content: no contrast ruleSkeleton lines, the height of the text they stand for. The hairline color, like the progress track, so they show on the page, a panel and a raised ground. - 4pxloading.skeleton.gap
- 16pxloading.skeleton.line-height
- 1200msloading.skeleton.pulse-durationSlow opacity pulse; none with reduced motion.
Progress
Real progress, with a label that says what is loading and how far, and Cancel beside a long operation.
Built from Button
- loading.progress.fillLight #23211E | 7.70–14.38 Pass, needs 3
Dark #F5F2ED | 4.32–14.38 Pass, needs 3Never Signal. - 2pxloading.progress.height
- loading.progress.label.colorLight #5F5A53 | 5.54–6.12 Pass, needs 4.5
Dark #B9B3A7 | 6.87–7.70 Pass, needs 4.5 - loading.progress.label.typographyRegular 12/16 px. What is loading and how far ("Loading model | 62%").
- loading.progress.trackLight #B9B3A7 | Dark #77716A
A ground: pairs are checked on it
Notice
A line inside a view that stays until the view changes: what happened or what is wrong. The start rule matches the toast's; the icon and the words say the status.
Built from Status rule
- notice.backgroundLight #EBE7E0 | Dark #2C2A26
A ground: pairs are checked on it - notice.colorLight #23211E | 13.03 Pass, needs 4.5
Dark #F5F2ED | 12.83 Pass, needs 4.5 - 8pxnotice.gapBetween the icon and the words.
- 1remnotice.icon-size
- notice.icon.cautionLight #8D5E04 | 4.56 Pass, needs 3
Dark #DF9F3B | 6.25 Pass, needs 3 - notice.icon.infoLight #5B6A72 | 4.54 Pass, needs 3
Dark #9EAEB6 | 6.26 Pass, needs 3 - notice.icon.positiveLight #586E50 | 4.53 Pass, needs 3
Dark #9AB292 | 6.25 Pass, needs 3 - notice.icon.riskLight #B43731 | 4.82 Pass, needs 3
Dark #FE8A7E | 6.24 Pass, needs 3 - 2pxnotice.indicator-width
- notice.indicator.cautionLight #8D5E04 | 4.56 Pass, needs 3
Dark #DF9F3B | 6.25 Pass, needs 3 - notice.indicator.infoLight #5B6A72 | 4.54 Pass, needs 3
Dark #9EAEB6 | 6.26 Pass, needs 3 - notice.indicator.positiveLight #586E50 | 4.53 Pass, needs 3
Dark #9AB292 | 6.25 Pass, needs 3 - notice.indicator.riskLight #B43731 | 4.82 Pass, needs 3
Dark #FE8A7E | 6.24 Pass, needs 3 - 8pxnotice.padding-block
- 12pxnotice.padding-inline
- notice.typographyRegular 13/16 px.
Tag
A short status word on its status fill, on board cards, in lists, headings and the inspector; in a table, status is the word with its dot. The word carries the status; neutral is for closed, not started and low.
- tag.caution.backgroundLight #C98A1E | Dark #C98A1E
A ground: pairs are checked on it - tag.caution.colorLight #23211E | 5.46 Pass, needs 4.5
Dark #23211E | 5.46 Pass, needs 4.5 - 4pxtag.gapBetween tags in a row.
- 20pxtag.heightMinimum height; the tag grows with larger text.
- tag.info.backgroundLight #5C6B73 | Dark #5C6B73
A ground: pairs are checked on it - tag.info.colorLight #F5F2ED | 4.94 Pass, needs 4.5
Dark #F5F2ED | 4.94 Pass, needs 4.5 - tag.neutral.backgroundLight #D8D3C9 | Dark #5F5A53
A ground: pairs are checked on it - tag.neutral.colorLight #23211E | 10.77 Pass, needs 4.5
Dark #F5F2ED | 6.12 Pass, needs 4.5 - 8pxtag.padding-inline
- tag.positive.backgroundLight #5A7052 | Dark #5A7052
A ground: pairs are checked on it - tag.positive.colorLight #F5F2ED | 4.85 Pass, needs 4.5
Dark #F5F2ED | 4.85 Pass, needs 4.5 - 4pxtag.radius
- tag.risk.backgroundLight #B43731 | Dark #B43731
A ground: pairs are checked on it - tag.risk.colorLight #F5F2ED | 5.33 Pass, needs 4.5
Dark #F5F2ED | 5.33 Pass, needs 4.5 - tag.typographyRegular 13/16 px.
Toast reference
A toast reports an action whose result isn't visible on screen: what happened and, where there is one, what next. It is the third step of the feedback ladder in docs/patterns.md: louder than a status word or a notice, quieter than a dialog.
Anatomy
- Container the raised box, with its border, shadow and width (
toast.width,toast.background,toast.border-*,toast.shadow,toast.radius,toast.padding*). - Indicator the start rule in the status mark color (
toast.indicator-width,toast.indicator.*). - Title what happened (
toast.title.*). - Body the detail or the next step (
toast.body.*). - Action Undo or Retry (
toast.action.*). - Close the button that closes the toast (
toast.close-*). - Stack the toasts on screen at once (
toast.gap,toast.margin).
Functional
- F1 A toast reports an action whose result isn't visible on screen. If the result shows on screen, there is no toast.
- F2 A routine, reversible action gets no confirmation. When its result leaves the view (the archived topic drops out of the list), the toast that reports it carries Undo as its action. When the result stays on screen, there is no toast (F1), and the person undoes it the way they did it.
- F3 A failed task is a risk toast, or a notice in the view that holds the task. Its action is Retry when trying again can work; otherwise the body says the next step and there is no action.
- F4 A toast never asks for a decision.
States
- S1 A toast has one status: positive, caution, risk or info. The indicator takes
toast.indicator.<status>. - S2 A positive or info toast without an action closes after
toast.duration.dismiss-after. - S3 A caution or risk toast, and any toast with an action, stays until it is closed or its action is used.
Behavior
- B1 The timer runs only while the page is visible.
- B2 Hovering or focusing a toast pauses its timer.
- B3 The stack sits at the bottom right of the content,
toast.marginfrom the content edge and above the status bar. Toasts aretoast.gapapart, the newest at the bottom. - B4 A toast enters over
toast.duration.enter; with reduced motion, that duration is 0. - B5 Escape closes the newest toast. If focus was in it, focus returns to the control that opened it; if that control is gone, to the control that took its place (the next row's action) or the view's heading.
- B6 At most three toasts are on screen. A fourth closes the oldest; the action that toast reported stands.
- B7 A toast leaves at once, with no animation (C5).
Content
- C1 The title says what happened, in the past tense, in two to five words.
[review] - C2 The body is one sentence with the detail or the next step.
[review] - C3 The title carries the status in words, so the indicator never carries it alone.
[review] - C4 No “we”: the system is the subject (“The topic couldn't be saved”).
[review] - C5 Success is quiet: no exclamation mark, no “Success!”, no animation beyond the entry.
[review]
Accessibility
- A1 The title, body, close and action colors pass 4.5:1 on
toast.background, and the indicator and the border pass 3:1, in both themes (component audit). - A2 Close is a
toast.close-sizetarget with the accessible name Close. - A3 The action is a
<button>drawn as the underlined link intoast.action.color: it acts on the page, so it is never an<a>, never drawn as a button and never Signal. - A4 A positive or info toast is announced politely (a status region); a caution or risk toast is announced at once (an alert). A toast never takes focus.
Integration
- I1 A toast uses
toast.*tokens only; the action's tokens point atcontrol.link.*.
Dialog
A modal dialog for settings, imports and exports: the page surface under a 2 px rule, over a veil of the page color, never black. The title says what the dialog does. Close, Escape and Cancel all leave without changes, and ask first when there are unsaved changes; the rules below say how a dialog behaves.
A dialog takes the person out of the page, so it opens only for a decision (see Feedback) and does one thing while it is open. Brokkr gives the surface, the widths and the backdrop; these rules give the behavior.
One task, one path
A dialog does one thing, named in its title, with one path through it: no tabs, no second level, no navigation inside. A task that needs more than one screen is a page, not a dialog.
- Write
- “Export topics”, a format choice and Export
- Not
- a settings dialog with five tabs and a wizard inside one of them
One dialog at a time
A dialog never opens another dialog. What happens after it closes is a toast or a notice on the page; the one exception is the question that guards unsaved changes.
- Write
- the export dialog closes, then “Export failed” as a risk toast with Retry
- Not
- an error dialog over the export dialog
Unsaved changes ask first
Close, Escape and Cancel leave without changes. When the dialog holds something the person typed or chose and has not saved, they first ask, as a confirmation: “Discard changes?”, with “Discard changes” and “Keep editing”.
- Write
- Escape on a half-mapped import asks “Discard changes?”
- Not
- Escape that throws the mapping away without a word
Focus goes in and comes back
Opening moves focus to the first control, or to the title of a confirmation; Tab stays inside the dialog while it is open; closing returns focus to the control that opened it.
- Write
- Export opens the dialog with focus on the format choice, and Cancel puts it back on Export
- Not
- focus left on the page behind the dialog, or dropped on the page body when it closes
Never on arrival
A dialog opens from the person's action, never on its own when a page loads, a sync finishes or a session starts. What a person needs to know on arrival is a notice in the view or a line in the status bar.
- Write
- “Offline” beside the sync time, and a notice in the view it affects
- Not
- a “What's new” dialog on login, or “Connection lost” as a dialog
Export topics
17 topics from Bergen Arena.
Backdrop
The page color at 80% over everything behind the dialog, so the page stays readable but quiet.
- dialog.backdrop.colorLight #F5F2ED | Dark #23211E
A ground: pairs are checked on itOver the page behind the dialog. Never black. - 0.8dialog.backdrop.opacity
Surface
The page surface with a 2 px rule border, square corners and the overlay shadow.
- dialog.backgroundLight #F5F2ED | Dark #23211E
A ground: pairs are checked on it - dialog.colorLight #23211E | 14.38 Pass, needs 4.5
Dark #F5F2ED | 14.38 Pass, needs 4.5 - 2pxdialog.border-width
- dialog.border-colorLight #5F5A53 | 6.12 Pass, needs 3
Dark #B9B3A7 | 7.70 Pass, needs 3 - 0pxdialog.radius
- Per themedialog.shadowLight 0px 4px 16px 0px #23211E29
Dark 0px 4px 16px 0px #23211E66
Width
Small for settings and short forms, medium for mapping tables and previews. On a narrow screen it keeps 16 px to the edge.
- 560pxdialog.width-smallSettings, confirmations and short forms.
- 1040pxdialog.width-mediumMapping tables and previews.
- 16pxdialog.viewport-marginThe least space between the dialog and the viewport edge.
Head and title
The H3 title and the close button, above a hairline.
- dialog.head.border-colorLight #B9B3A7 | Dark #77716A
Not checked aloneDecorative. - 1pxdialog.head.border-width
- 16pxdialog.head.padding-block
- dialog.title.colorLight #23211E | 14.38 Pass, needs 4.5
Dark #F5F2ED | 14.38 Pass, needs 4.5 - dialog.title.typographyMedium 20/24 px. Says what the dialog does ("Export topics").
Close
A 24 px target with the accessible name Close.
- dialog.close.colorLight #5F5A53 | 6.12 Pass, needs 3
Dark #B9B3A7 | 7.70 Pass, needs 3 - dialog.close.hover-colorLight #23211E | 14.38 Pass, needs 3
Dark #F5F2ED | 14.38 Pass, needs 3 - 24pxdialog.close.sizeThe close target, at least 24 px.
Body
The content and the actions, 24 px from the sides and the bottom. The primary action comes first.
Built from Actions
- 24pxdialog.padding-inline
- 24pxdialog.padding-blockBelow the body.
App shell
The frame every NPC app shares: header, side nav and status bar on the panel ground, around content on the page ground, with hairlines between them. The logo is neutral and nothing in the chrome uses Signal, so the screen's one Signal emphasis stays free for content. The rules below say how the frame behaves offline, in a narrow space and when something needs the person.
How the frame behaves when the connection drops, the space shrinks or something needs the person. The parts are on the Components page under App shell.
Offline in the status bar
A lost connection or stale data shows in words at the end of the status bar, beside the sync time, and the view it affects says so in a notice. Never a dialog.
- Write
- “Synced 14:32 | Offline”
- Not
- a dialog saying the connection was lost
The last data over an empty screen
An app that opens without a connection shows the last data it has, with the time it was synced. No alert on opening and no empty view.
- Write
- the dashboard as it was at 14:32, with “Synced 14:32 | Offline” in the status bar
- Not
- “No connection” in a dialog before anything shows
Space from the content area
Inside the shell, breakpoints follow the width of the content area (container queries), not the window, because the nav and the inspector take width.
- Write
- the cards going from three columns to two when the inspector opens
- Not
- a layout for a 1440 px window in a content area 880 px wide
Type the breakpoint widths
A media or container query can't read a custom property, so the width is typed, one pixel under the next breakpoint token: 599, 1023 or 1439 px. Never a width of the screen's own.
- Write
@container (max-width: 1023px), below--npc-breakpoint-lg- Not
@container (max-width: 899px), a width no token names
Nothing disappears
As the space shrinks, actions move into More, the nav folds to icons with tooltips and the inspector moves below the content. Every function stays one step away; only text repeated elsewhere (the project name, also in the status bar) may drop.
- Write
- Export moving into More in a narrow frame
- Not
- Export hidden on a tablet
The view's name is in the header
Inside the shell, the header's context line names the project and the view (“Bergen Arena / Topics”), and the view's one H1 says the same, hidden from sight but read by assistive technology. No visible page title over the toolbar: the H1 type is for pages and documents, not app views.
- Write
- “Bergen Arena / Topics” in the header, and a hidden H1 “Topics”
- Not
- a 40 px “Topics” over the toolbar, or a view with no H1 at all
Three toolbar groups
A toolbar has three groups at most, and its primary action stays in view at every width.
- Write
- the period, the actions, the inspector toggle
- Not
- five groups wrapping onto a second line
A count only for attention
A count beside a nav item shows what needs the person, such as topics open for their comment. Never a total, and one count per item.
- Write
- “Topics 3”, three topics waiting for comment
- Not
- “Drawings 1,284”
The count goes when it's done
The count falls as the items are dealt with and goes at zero. It never shows 0.
- Write
- no count beside Topics once nothing waits
- Not
- “Topics 0”
Chrome and content
The chrome sits on the panel ground and the content on the page ground, a hairline between them.
- shell.chrome-backgroundLight #EBE7E0 | Dark #2C2A26
A ground: pairs are checked on itHeader, side nav and status bar. - shell.content-backgroundLight #F5F2ED | Dark #23211E
Not checked alone - 1pxshell.divider-width
- shell.divider-colorLight #B9B3A7 | Dark #77716A
Not checked aloneBetween chrome and content.
Header
The solid neutral logo (Charcoal on light, Chalk on dark, never Signal), the app name, then the project and where you are.
- shell.header.app-name.colorLight #23211E | 13.03 Pass, needs 4.5
Dark #F5F2ED | 12.83 Pass, needs 4.5 - shell.header.app-name.typographyMedium 16/20 px. Body size, Medium.
- shell.header.context.colorLight #5F5A53 | 5.54 Pass, needs 4.5
Dark #B9B3A7 | 6.87 Pass, needs 4.5 - shell.header.context.typographyRegular 13/16 px. Project and location ("Riyadh Arena / Project controls").
- 20pxshell.header.gap
- 48pxshell.header.height
- 20pxshell.header.logo-heightSolid mark, never the line version at this size.
- 20pxshell.header.padding-inline
Avatar
The user's initials at the end of the header.
- shell.avatar.backgroundLight #FBF7F5 | Dark #43403A
A ground: pairs are checked on it - shell.avatar.colorLight #23211E | 15.08 Pass, needs 4.5
Dark #F5F2ED | 9.25 Pass, needs 4.5 - 9999pxshell.avatar.radius
- 32pxshell.avatar.size
- shell.avatar.typographyMedium 12/16 px. Initials.
Side nav
240 px, or 56 px with icons only. Section labels group the items.
- 240pxnav.widthExpanded.
- 56pxnav.width-collapsedIcons only; labels as tooltips.
- 20pxnav.padding-block
- nav.section-label.colorLight #5F5A53 | 5.54 Pass, needs 4.5
Dark #B9B3A7 | 6.87 Pass, needs 4.5 - 8pxnav.section-label.space-after
- 20pxnav.section-label.space-beforeOne body line above every section label but the first.
- nav.section-label.typographyBold 12/16 px.
Nav item
One line per item, with its icon. Hover lifts it to the raised ground.
- nav.item.colorLight #5F5A53 | 5.54 Pass, needs 4.5
Dark #B9B3A7 | 6.87 Pass, needs 4.5 - 40pxnav.item.height
- nav.item.hover-backgroundLight #FBF7F5 | Dark #43403A
A ground: pairs are checked on it - nav.item.hover-colorLight #23211E | 15.08 Pass, needs 4.5
Dark #F5F2ED | 9.25 Pass, needs 4.5 - 20pxnav.item.padding-inline
- nav.item.typographyRegular 13/16 px.
Active item
Medium text with a 2 px rule at the start edge, never Signal.
- nav.active.colorLight #23211E | 13.03 Pass, needs 4.5
Dark #F5F2ED | 12.83 Pass, needs 4.5 - 500nav.active.font-weight
- nav.active.indicator-colorLight #23211E | 13.03 Pass, needs 3
Dark #F5F2ED | 12.83 Pass, needs 3Rule at the inline-start edge. - 2pxnav.active.indicator-width
Toolbar
At the top of the content, on the page ground with a hairline below. Three groups at most, set apart by space, not divider lines. In a narrow frame the actions that don't fit move into More; the primary action stays.
Built from Button and Segmented control
- toolbar.backgroundLight #F5F2ED | Dark #23211E
Not checked alone - toolbar.border-colorLight #B9B3A7 | Dark #77716A
Not checked alone - 1pxtoolbar.border-width
- 32pxtoolbar.control-height
- 8pxtoolbar.gapBetween controls in a group.
- 16pxtoolbar.group-gapBetween groups. No divider lines.
- 48pxtoolbar.height
- 20pxtoolbar.padding-inline
Inspector
A 320 px panel at the end edge, hidden until the info button opens it. The content resizes, so nothing is covered. Selecting an element or opening a card never opens it; while it is open, it shows what is selected.
- 320pxinspector.width
- inspector.backgroundLight #EBE7E0 | Dark #2C2A26
A ground: pairs are checked on it - 1pxinspector.border-width
- inspector.border-colorLight #B9B3A7 | Dark #77716A
Not checked aloneAt the inline-start edge, between content and inspector. - 20pxinspector.padding
- 200msinspector.toggle.durationOpen and close; 0 with reduced motion.
- cubic-bezier(0.2, 0, 0, 1)inspector.toggle.easing
- infoinspector.toggle.iconIcon name.
Inspector content
The element's name and class, then its properties as key and value rows in tabular figures.
- inspector.title.colorLight #23211E | 13.03 Pass, needs 4.5
Dark #F5F2ED | 12.83 Pass, needs 4.5 - inspector.title.typographyMedium 20/24 px. Element name ("Column C-14").
- inspector.subtitle.colorLight #5F5A53 | 5.54 Pass, needs 4.5
Dark #B9B3A7 | 6.87 Pass, needs 4.5 - 4pxinspector.subtitle.space-before
- inspector.subtitle.typographyRegular 13/16 px. Class and location ("IfcColumn | Level L02").
- inspector.section-label.colorLight #5F5A53 | 5.54 Pass, needs 4.5
Dark #B9B3A7 | 6.87 Pass, needs 4.5 - 4pxinspector.section-label.space-after
- 20pxinspector.section-label.space-before
- inspector.section-label.typographyBold 12/16 px.
- inspector.property.border-colorLight #B9B3A7 | Dark #77716A
Not checked alone - 1pxinspector.property.border-width
- inspector.property.key-colorLight #5F5A53 | 5.54 Pass, needs 4.5
Dark #B9B3A7 | 6.87 Pass, needs 4.5 - inspector.property.key-typographyRegular 13/16 px.
- 112pxinspector.property.key-width
- 4pxinspector.property.padding-block
- inspector.property.value-colorLight #23211E | 13.03 Pass, needs 4.5
Dark #F5F2ED | 12.83 Pass, needs 4.5 - inspector.property.value-typographyRegular 13/16 px. Tabular figures; values align left in the inspector.
Status bar
The screen version of the print footer: job number, document, section, revision and status, then the sync time at the end. When the connection drops, "Offline" follows the sync time ("Synced 14:32 | Offline"); never a dialog.
- status-bar.backgroundLight #EBE7E0 | Dark #2C2A26
A ground: pairs are checked on it - status-bar.border-colorLight #B9B3A7 | Dark #77716A
Not checked alone - 1pxstatus-bar.border-width
- status-bar.colorLight #5F5A53 | 5.54 Pass, needs 4.5
Dark #B9B3A7 | 6.87 Pass, needs 4.5 - 8pxstatus-bar.gap
- 32pxstatus-bar.height
- 20pxstatus-bar.padding-inline
- status-bar.separator-colorLight #B9B3A7 | Dark #77716A
Not checked aloneThe pipe between items. Decorative. - 9999pxstatus-bar.status.dot-radius
- 8pxstatus-bar.status.dot-size
- 4pxstatus-bar.status.gap
- status-bar.typographyRegular 12/16 px. Tabular figures for times and revisions.
Nav count
At the end of an item, only for what needs the person (topics waiting for their comment), never a total. Medium, in tabular figures; it goes at zero. With the nav folded to icons it sits on the icon.
- nav.count.colorLight #23211E | 13.03–15.08 Pass, needs 4.5
Dark #F5F2ED | 9.25–12.83 Pass, needs 4.5 - 500nav.count.font-weight
- nav.count.typographyRegular 13/16 px.
Viewer
The 3D model view and the overlays on it. Nothing in the viewer uses Signal: the selection is an outline in the text color, and the rest of the model fades while something is selected, so it reads on any status color. The sample is a plain massing model of an arena in Bergen.
Ground, ghosting and section cut
The model sits on the page ground. Elements outside a filter or isolation fade to 20%. Cut faces of a section plane take the subtle text color.
- viewer.backgroundLight #F5F2ED | Dark #23211E
A ground: pairs are checked on it - 0.2viewer.ghost-opacityElements outside the filter or isolation, and every element but the selected one while something is selected.
- viewer.section-cutLight #5F5A53 | Dark #B9B3A7
Same as viewer.status.neutral, checked thereCut faces of a section plane.
Selection
The element keeps its own color under a 2 px outline in the text color, and the rest of the model fades to 20%. Never Signal.
- viewer.selection.fillLight #23211E | Dark #F5F2ED
Same as viewer.hover.outline, checked thereDeprecated No fill since 1.1.0: the selected element keeps its own color. Removed in 2.0.0.Deprecated. Drawn at fill-opacity 0. - 0viewer.selection.fill-opacityDeprecated No fill since 1.1.0. Removed in 2.0.0.Deprecated. 0: the selection has no fill.
- viewer.selection.outlineLight #23211E | 14.38 Pass, needs 3
Dark #F5F2ED | 14.38 Pass, needs 32 px, at the element's silhouette. 14.38:1 on the viewer ground and the ghosted model. - 2pxviewer.selection.outline-width
Hover
A 1 px outline in the text color, never Signal.
- viewer.hover.outlineLight #23211E | 14.38 Pass, needs 3
Dark #F5F2ED | 14.38 Pass, needs 3Hovered element outline. Not Signal. - 1pxviewer.hover.outline-width
Overlay
Everything over the model: the raised ground, the UI border, the overlay shadow and square corners, 20 px from the edge.
- viewer.overlay.backgroundLight #FBF7F5 | Dark #43403A
A ground: pairs are checked on it - viewer.overlay.border-colorLight #77716A | 4.32–4.53 Pass, needs 3
Dark #9A948A | 3.43–5.34 Pass, needs 3 - 1pxviewer.overlay.border-width
- 20pxviewer.overlay.marginDistance from the viewer edge.
- 4pxviewer.overlay.padding
- 0pxviewer.overlay.radius
- Per themeviewer.overlay.shadowLight 0px 4px 16px 0px #23211E29
Dark 0px 4px 16px 0px #23211E66
Tools
Orbit, fit, section and measure as 32 px icon buttons in one vertical strip. The active tool sits on the panel ground with a 2 px rule at its start edge; a hovered tool takes the panel ground only.
- viewer.tool.active-backgroundLight #EBE7E0 | Dark #2C2A26
A ground: pairs are checked on it - viewer.tool.active-indicator-colorLight #23211E | 13.03–15.08 Pass, needs 3
Dark #F5F2ED | 9.25–12.83 Pass, needs 3Rule at the inline-start edge, as the side nav's active item. It tells the active tool from a hovered one. - 2pxviewer.tool.active-indicator-width
- viewer.tool.colorLight #23211E | 13.03–15.08 Pass, needs 4.5
Dark #F5F2ED | 9.25–12.83 Pass, needs 4.5 - 4pxviewer.tool.gap
- viewer.tool.hover-backgroundLight #EBE7E0 | Dark #2C2A26
A ground: pairs are checked on itHovered tool. - 32pxviewer.tool.size
Measure
A 2 px line in the text color, with its length in tabular figures.
- viewer.measure.label-colorLight #23211E | 15.08 Pass, needs 4.5
Dark #F5F2ED | 9.25 Pass, needs 4.5 - viewer.measure.label-typographyRegular 13/16 px. Tabular ("12.40 m").
- viewer.measure.lineLight #23211E | 14.38 Pass, needs 3
Dark #F5F2ED | 14.38 Pass, needs 3 - 2pxviewer.measure.line-width
Issue pin
A BCF issue: its number on the status fill, ringed in the page color so it reads on any part of the model. The number carries the issue, not the color. A closed issue takes the neutral fill.
- viewer.pin.ring-colorLight #F5F2ED | Dark #23211E
Same as viewer.background, checked there - 2pxviewer.pin.ring-width
- 24pxviewer.pin.size
- viewer.pin.typographyBold 12/16 px. Issue number.
Status on the model
Elements colored by status (complete, in progress, behind plan, not started) take the status mark color, in both themes. Always with a legend, and the status word in the inspector.
- viewer.status.cautionLight #8D5E04 | 5.03 Pass, needs 3
Dark #DF9F3B | 7.00 Pass, needs 3 - viewer.status.infoLight #5B6A72 | 5.02 Pass, needs 3
Dark #9EAEB6 | 7.02 Pass, needs 3 - viewer.status.neutralLight #5F5A53 | 6.12 Pass, needs 3
Dark #B9B3A7 | 7.70 Pass, needs 3 - viewer.status.positiveLight #586E50 | 5.00 Pass, needs 3
Dark #9AB292 | 7.00 Pass, needs 3 - viewer.status.riskLight #B43731 | 5.33 Pass, needs 3
Dark #FE8A7E | 7.00 Pass, needs 3
Legend
Status dots and words in an overlay box at the bottom of the view. Also for maps and plans; charts keep direct labels, with a legend only as a fallback.
Built from Overlay
- legend.colorLight #23211E | 13.03–15.08 Pass, needs 4.5
Dark #F5F2ED | 9.25–14.38 Pass, needs 4.5 - 9999pxlegend.dot-radius
- 8pxlegend.dot-size
- legend.dot.cautionLight #8D5E04 | 4.56–5.28 Pass, needs 3
Dark #DF9F3B | 4.51–7.00 Pass, needs 3 - legend.dot.infoLight #5B6A72 | 4.54–5.26 Pass, needs 3
Dark #9EAEB6 | 4.52–7.02 Pass, needs 3 - legend.dot.neutralLight #5F5A53 | 5.54–6.42 Pass, needs 3
Dark #B9B3A7 | 4.95–7.70 Pass, needs 3 - legend.dot.positiveLight #586E50 | 4.53–5.24 Pass, needs 3
Dark #9AB292 | 4.50–7.00 Pass, needs 3 - legend.dot.riskLight #B43731 | 4.82–5.59 Pass, needs 3
Dark #FE8A7E | 4.50–7.00 Pass, needs 3 - 4pxlegend.gapBetween the dot and its word.
- 4pxlegend.item-gapBetween items, stacked or in a row.
- legend.overlay.backgroundLight #FBF7F5 | Dark #43403A
A ground: pairs are checked on it - legend.overlay.border-colorLight #77716A | Dark #9A948A
Not checked alone - 1pxlegend.overlay.border-width
- 8pxlegend.overlay.padding-block
- 12pxlegend.overlay.padding-inline
- 0pxlegend.overlay.radius
- Per themelegend.overlay.shadowLight 0px 4px 16px 0px #23211E29
Dark 0px 4px 16px 0px #23211E66 - legend.typographyRegular 13/16 px.
Templates
A template is a screen's structure without its content: the parts it holds, in order, each with its role. Templates come from Gimlé's real screens. The parts are on this page and the Data page; a template says which ones a screen holds and in what order.
Start from a template
A new screen starts from the template it matches, and the plugin's UI-builder skill builds from these, never its own version of a pattern. A screen that fits none is a finding, not a new layout.
- Write
- a new Snags screen started from Register
- Not
- a list screen laid out from scratch with its own filter row
One order
The parts are listed in reading order, and that order is also the Tab order (Keyboard) and the stack on a phone, top to bottom. A wide layout may set parts side by side; the code keeps the listed order.
- Write
- the inspector after the table in the code, beside it on a wide screen, below it on a phone
- Not
- the inspector first in the code so it floats to the start
A role changes content, not layout
People with fewer rights see the same template with less in it. Actions they can't take are hidden and the group closes up; columns they can't see are left out. A disabled button stays only when the reason is on the screen.
- Write
- a viewer's Topics screen without New topic, the toolbar closing the gap
- Not
- a separate read-only layout, or a grayed-out New topic with no reason
Parts named for their structure
A part is named for what it is (board, inspector, notice), never for the app or the content it shows. An app may name an instance (“the Topics board”); a new part name is a finding. The plugin uses Brokkr's names only.
- Write
- “board card”, “tag”
- Not
- “topic card”, “erection status chip”
Overview
- App shell the header, side nav and status bar around the content. Gimlé's Overview and Program.
- Toolbar the period and the data date first, then the screen's actions.
- KPIs one row of three to five; at most one carries the Signal rule.
- Charts each with its finding as the title; the Signal series is the screen's one emphasis.
- Timeline where the screen is about the schedule.
- Tables the packages behind the numbers, last.
Register
- App shell Gimlé's Topics list and table, Documents, and Decisions and risks.
- Toolbar the view as a segmented control, then the actions, then the inspector toggle.
- Filter bar search, the applied filters, Filter, Clear all and the result count.
- Tables one row per item, sortable on its heads. With no items it is an empty state.
- Inspector the selected row in full, opened from the toolbar's info button.
Board
- App shell Gimlé's Topics board.
- Toolbar the same view switch as the register, so the person moves between the two.
- Filter bar the same filters as the register.
- Board one column per status, its count in the header.
- Inspector while it is open, the open card, with its status field so every move can be made without dragging. Opening a card never opens the inspector.
Model
Content
A part is drawn with its usual content, but it has to hold its worst content too. These are the cases every part and every template handles. Where a part handles one differently, its reference in docs/components/ says so; until a part has a reference, these rules are its answer.
None
An empty part is an empty state: what is empty and what to do next. Never a blank area, a table with only its head, or a box that shrinks to nothing.
- Write
- “No topics on this level. Raise a topic from the model.”
- Not
- an empty table with its head and no rows
One
One item reads as one: singular words, no pager, no “1 of 1”.
- Write
- “1 topic”
- Not
- “1 topics”, or a pager with one page
Many
Hundreds of items scroll inside their own area, the head stays (Tables), and a count says how many. The page around them keeps its shape.
- Write
- “1,284 of 9,610 elements” above a table that scrolls under its head
- Not
- a board column so long it pushes the status bar off the screen
Too long
Running text wraps. A name or title on one line ends in an ellipsis; a code or file name is cut in the middle (Tables). The full text is in a tooltip and in the inspector. Type never shrinks to fit.
- Write
- “Steel delivery for the north stand…” on a board card, whole in the inspector
- Not
- a title set at 11 px so it fits, or text cut by its box with no ellipsis
Missing value
A value that doesn't exist yet is an en-dash (Nil, in the number rules of docs/voice.md), never a blank, a 0 or “N/A”. A 0 means zero.
- Write
- “–” in the Forecast column of a package not yet planned
- Not
- “0” where there is no forecast
Very large numbers
A part sized for 4 figures holds 12 without breaking its row: the number rules give thousands separators and “SAR m” in heads and axes, and the column or card grows before the figure is cut. A figure is never truncated.
- Write
- “SAR 1,284.6 m” on one line in a KPI
- Not
- “SAR 1,284,6…”