Skip to content
Typography and layout | Omni Manual Book

Typography and layout

Reading hierarchy, density, responsive layouts, numeric alignment, and cross-channel typography for Omni.

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.

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.

RoleRecommended treatmentAvoid
Page titleShort purpose or resource name; strongest local headingA greeting replacing the task name
Section headingGroup one decision or evidence setHeadings on every individual field
Field labelPersistent, sentence case, before the controlPlaceholder-only labels
Supporting textSecondary tone, readable at zoomVery pale text carrying mandatory instructions
Financial amountRight aligned, stable precision, tabular figures where availableCentered amounts with changing decimals
Identifier/codeMono only when character comparison helpsEntire 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.

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.

AreaWide viewportNarrow viewport
HeaderTitle, context, and one dominant actionWrap context; keep action label intact
FormsRelated fields may share columnsStack labels and controls in reading order
ToolbarSearch, filters, and secondary actionsWrap groups; preserve clear-filter access
TableVisible comparison columnsProvide contained horizontal scrolling or a meaningful alternate view
ModalWidth follows task complexityInternal 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.

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.

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.

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.

  • 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.