Typography and layout
Reading hierarchy, density, responsive layouts, numeric alignment, and cross-channel typography for Omni.
Foundation and evidence
Section titled “Foundation and evidence”packages/ui-shared/src/styles/main.css is the token authority, not this page.
Source inspection on 2026-09-05 confirms Inter/system sans and JetBrains Mono/system mono stacks.
It defines a 4px spacing scale and radii of 4, 6, 8, and 12px.
The layout rules below are acceptance targets; a token’s existence does not prove every page uses it.
Follow tokens for actual values rather than copying a private palette into a module.
Hierarchy by task
Section titled “Hierarchy by task”An operator should find the page purpose, active scope, primary action, and result in that order. Use one page title and meaningful section headings; do not skip heading levels for appearance. Keep document status close to its identifier, not hidden in a decorative summary card. Use medium or semibold weight for hierarchy instead of increasing every heading’s size.
| Role | Recommended treatment | Avoid |
|---|---|---|
| Page title | Short purpose or resource name; strongest local heading | A greeting replacing the task name |
| Section heading | Group one decision or evidence set | Headings on every individual field |
| Field label | Persistent, sentence case, before the control | Placeholder-only labels |
| Supporting text | Secondary tone, readable at zoom | Very pale text carrying mandatory instructions |
| Financial amount | Right aligned, stable precision, tabular figures where available | Centered amounts with changing decimals |
| Identifier/code | Mono only when character comparison helps | Entire paragraphs in monospace |
Do not infer semantic importance from font size alone. An overdue badge needs a text label even if its color and weight already stand out.
Density and spacing
Section titled “Density and spacing”Use 4–8px within a tightly coupled label/control/help group. Use 12–16px between related fields and 24–32px between major sections as layout targets. These ranges guide composition; they are not new tokens or overrides of verified component spacing. Dense finance tables may reduce whitespace, but not erase labels, focus outlines, or touch access. Avoid nested cards when a heading and thin divider provide the same grouping.
Keep instructional paragraphs to a comfortable measure, approximately 60–80 characters per line. Let transactional tables use the available width while keeping surrounding prose narrower. Do not constrain an entire ledger to a marketing-style centered text column. Use a consistent content gutter so filters, table headers, and pagination share alignment.
Responsive composition
Section titled “Responsive composition”| Area | Wide viewport | Narrow viewport |
|---|---|---|
| Header | Title, context, and one dominant action | Wrap context; keep action label intact |
| Forms | Related fields may share columns | Stack labels and controls in reading order |
| Toolbar | Search, filters, and secondary actions | Wrap groups; preserve clear-filter access |
| Table | Visible comparison columns | Provide contained horizontal scrolling or a meaningful alternate view |
| Modal | Width follows task complexity | Internal content remains reachable without page-level clipping |
Do not visually reorder fields away from DOM reading and keyboard order. Sticky headers and footers must leave focused controls visible. Test with a virtual keyboard open, not only a resized desktop window. Long Indonesian labels, English error messages, and tenant names must wrap without covering actions.
Numeric and document layout
Section titled “Numeric and document layout”Put currency in the column heading when all rows share it; identify mixed currencies per row. Keep source amount, exchange rate, and reporting amount separate rather than silently converting labels. Align decimal precision within a comparable column and distinguish zero from unavailable values. Do not abbreviate material review amounts as “1.2M” in a posting confirmation. Keep negative signs and parentheses intact when truncation or narrow layouts are tested.
Example: a payment review presents beneficiary, account suffix, currency, amount, and execution date together.
The approval note and primary action follow that evidence, not a separate unrelated card stack.
Text such as “Amount unavailable” is safer than displaying 0 when the value failed to load.
Component implications
Section titled “Component implications”BaseButton exposes size values sm, md, and lg, plus block for full width.
Its size names do not certify a minimum pointer-target dimension; measure the rendered control.
BaseModal exposes width from sm through 5xl, plus full; its default is lg.
Select width for the task, not to reproduce a screenshot’s exact dimensions.
BaseInput routes class and style to its wrapper, while most other attributes reach the input.
Account for that boundary when placing fields in a responsive grid.
Print and presentation
Section titled “Print and presentation”For PDFs, repeat table headers and keep a total with the rows or explanatory context it summarizes. Show document identity and page numbering without placing essential data in browser-only tooltips. Review font substitution and glyph coverage in generated output, including currency symbols. Slide decks need larger text and fewer columns than an operational desktop table. Email typography must remain legible with system fonts and images disabled. Do not translate CSS pixels directly into a guaranteed accessible printed type size.
Acceptance criteria
Section titled “Acceptance criteria”- At 200% text resizing, labels and actions remain available without loss of function.
- At a 320 CSS-pixel content width, prose and forms reflow; genuinely two-dimensional tables are assessed separately.
- User text-spacing overrides do not clip content or overlap controls.
- Long names, negative amounts, large totals, and multi-line errors have been tested.
- Focus is not hidden beneath sticky toolbars or dialog footers.
- Both locales use the same hierarchy without requiring identical line breaks.
- Print proof, dark theme, and narrow-screen checks are recorded where those channels apply.
See accessibility for exact WCAG levels and enterprise patterns for table behavior.