Brokkr rules
Layout
Space, grid, lines and motion for every NPC screen. Everything sits on a 4 px grid, one body line sets the vertical rhythm, and the layout audit checks the rules on every token change. Spacing stays in px; type and icons are in rem, so heights of controls and rows are minimums that grow with larger text.

Rhythm
One body line (20 px) is the unit of vertical space, as one baseline line is in print.
Seating bowl
Steel for the north stand arrives in week 12.
The roof lift keeps its date.
Bowl, 38,400 m²
Concourse, 12,600 m²
Rev P01 | For comment
Issued October 2026
space.line
One body line. Paragraph and list-end space.
- Value
- 20px
- Audit
- Pass space.line equals body leading
space.line-dense
One dense line. Paragraph space in dense areas (tables, inspectors).
- Value
- 16px
- Audit
- Pass space.line-dense equals dense leading
space.section
Two lines. Space above a section heading.
- Value
- 40px
space.gutter
Grid gutter: one body line, as print gutters are one baseline line.
- Value
- 20px
- Audit
- Pass space.gutter equals body leading
Insets
Padding inside panels, dense areas, controls and table cells. Hatching shows the inset.
Panel or card
Inspector or toolbar
space.inset.panel
Padding inside panels and cards.
- Value
- 20px
space.inset.dense
Padding inside dense panels, inspectors and toolbars.
- Value
- 12px
space.inset.control
Horizontal padding inside inputs and buttons.
- Value
- 12px
space.inset.cell-end
Right inset of table cells: one gutter, so a right-aligned figure clears the next column (print rule).
- Value
- 20px
- Audit
- Pass space.inset.cell-end equals one gutter
space.inset.cell-block
Top and bottom inset of dense table cells.
- Value
- 4px
Grid
Twelve columns on wide screens, flush left. One print module is two columns. Drawn to scale at 375, 600, 1024 and 1440 px. Inside an app shell the breakpoints follow the width of the content area, not the window (container queries), because the nav and the inspector take width. A media or container query cannot read a custom property, so type the width one pixel under the next breakpoint: 599, 1023 or 1439 px, never a width of your own.
grid.sm
From 0 px wide.
- Columns
- 4
- Margin
- 16px
- Gutter
- 16px
- Audit
- Pass 4 columns (2 print modules), margin 16, gutter 16
grid.md
From 600 px wide (--npc-breakpoint-md).
- Columns
- 8
- Margin
- 24px
- Gutter
- 20px
- Audit
- Pass 8 columns (4 print modules), margin 24, gutter 20
grid.lg
From 1024 px wide (--npc-breakpoint-lg).
- Columns
- 12
- Margin
- 40px
- Gutter
- 20px
- Audit
- Pass 12 columns (6 print modules), margin 40, gutter 20Pass Grid lg has 12 columns
grid.xl
From 1440 px wide (--npc-breakpoint-xl).
- Columns
- 12
- Margin
- 40px
- Gutter
- 20px
- Audit
- Pass 12 columns (6 print modules), margin 40, gutter 20
grid.reading-columns
Text column on lg and xl for reading pages (about 72 characters at body size). Apps and dashboards use the full width.
- Value
- 8
- Audit
- Pass Reading column is whole print modules
grid.module
Columns per print module.
- Value
- 2
Lines, corners and sizes
Rules and hairlines organize the page. Only controls get a 4 px corner; panels, cards and tables are square. An app used on tablets on site sets touch density, chosen once per app like the theme: every control and target becomes 44 px.
border-width.rule
Main rules: table heads, totals, section rules (print 1.5 pt).
- Value
- 2px
- Audit
- Pass border-width.rule is a whole pixel
border-width.hairline
Hairlines and control borders (print 0.75 pt).
- Value
- 1px
- Audit
- Pass border-width.hairline is a whole pixel
border-width.focus
Focus ring width.
- Value
- 2px
- Audit
- Pass border-width.focus is a whole pixel
border-width.focus-offset
Gap between the control and its focus ring.
- Value
- 2px
- Audit
- Pass border-width.focus-offset is a whole pixel
radius.none
Panels, cards, tables, menus, dialogs and charts.
- Value
- 0px
- Audit
- Pass radius.none is an allowed radius
radius.control
Inputs, buttons and tags.
- Value
- 4px
- Audit
- Pass radius.control is an allowed radius
radius.round
Avatars and status dots.
- Value
- 9999px
- Audit
- Pass radius.round is an allowed radius
size.control
Minimum height of inputs and buttons. A control grows with larger text; it never clips it.
- Value
- 40px
- Audit
- Pass size.control at least 24 px and on the gridPass size.control holds a dense line and grows with larger text
size.control-dense
Minimum height of inputs and buttons in toolbars, tables and inspectors. Grows with larger text.
- Value
- 32px
- Audit
- Pass size.control-dense at least 24 px and on the gridPass size.control-dense holds a dense line and grows with larger text
size.target-min
Smallest pointer target (WCAG 2.2 target size, 2.5.8).
- Value
- 24px
- Audit
- Pass size.target-min at least 24 px and on the grid
size.touch.control
size.control in touch density.
- Value
- 44px
- Audit
- Pass size.touch.control at least 44 px and on the grid
size.touch.control-dense
size.control-dense in touch density: dense controls are full touch size too.
- Value
- 44px
- Audit
- Pass size.touch.control-dense at least 44 px and on the grid
size.touch.target-min
size.target-min in touch density (WCAG 2.5.5, enhanced target size).
- Value
- 44px
- Audit
- Pass size.touch.target-min at least 44 px and on the grid
Motion and elevation
Motion is functional only and 300 ms at most. Panels never cast shadows; only overlays do, and the shadow is Charcoal, never black.
Standard easing on rows 1–4.
With reduced motion set on your computer, nothing moves.
motion.duration.instant
No transition: the change is immediate.
- Value
- 0ms
- Audit
- Pass motion.duration.instant at most 300 ms
motion.duration.fast
Hover, press, small state changes.
- Value
- 100ms
- Audit
- Pass motion.duration.fast at most 300 ms
motion.duration.base
Expand and collapse, toasts, menus.
- Value
- 200ms
- Audit
- Pass motion.duration.base at most 300 ms
motion.duration.slow
Dialogs and side panels.
- Value
- 300ms
- Audit
- Pass motion.duration.slow at most 300 ms
motion.easing.standard
Elements moving or resizing on screen.
- Value
- cubic-bezier(0.2, 0, 0, 1)
motion.easing.exit
Elements leaving the screen.
- Value
- cubic-bezier(0.4, 0, 1, 1)
elevation.overlay
Menus, popovers, toasts and dialogs, always with the UI border as well.
- Light
- 0px 4px 16px 0px #23211E29
- Dark
- 0px 4px 16px 0px #23211E66
- Audit
- Pass Overlay shadow (light) is Charcoal, not blackPass Overlay shadow (dark) is Charcoal, not black
Spacing scale
The steps the tokens above point to. Apps use the named tokens; the scale is for building new ones.