Axon 911 Frontend Docs
    Loading navigation…
U
User
Switch to light mode
  1. Foundations
  2. Layout Size Scale

Layout size scale

LayoutSize steps for fixed widths and Breakpoint caps for page maxWidth on Box, FlexBox, and Grid.

CORE-1952 adds two typed scales that replace ad hoc pixel widths in product code.
LayoutSize (128–640px)
Nine fixed steps on a 4px grid, exposed as LayoutSize.Size1 … LayoutSize.Size9. Each maps to --size-layout-* in @prepared911/ui/styles.css. Use on width, minWidth, height, and minHeight (and the same fields on Grid size after the Grid size props land). Do not use Breakpoint on those axes.
StepEnumTokenpx
1LayoutSize.Size1--size-layout-1128
2LayoutSize.Size2--size-layout-2160
3LayoutSize.Size3--size-layout-3200
4LayoutSize.Size4--size-layout-4240
5LayoutSize.Size5--size-layout-5320
6LayoutSize.Size6--size-layout-6400
7LayoutSize.Size7--size-layout-7480
8LayoutSize.Size8--size-layout-8600
9LayoutSize.Size9--size-layout-9640
640px aligns with --layout-content-max. For dialog-width caps near 512px, keep using InlineSize.DialogMd rather than a layout step.
Breakpoint (page caps and queries)
Breakpoint members mirror keys in breakpoints.json. Use them on maxWidth and maxHeight only (page frames, content columns, scroll hosts).
EnumJSON keypxTypical use
Breakpoint.CenteredBlockcentered-block640Settings columns, compact centered blocks
Breakpoint.Contentcontent800Primary content max width
Breakpoint.ContentLgcontent-lg960Wider content pages
Breakpoint.Base … Breakpoint.TwoXlbase … 2xl1080–3440Desktop ladder (same px as container queries)
The same px values drive @media and @container rules in product CSS via breakpoints.json. Do not reuse Breakpoint.Sm (1280px) when you mean an 800px content cap.
Migration
pnpm ui:migrate rewrites exact px/rem literals on Box and FlexBox to LayoutSize or Breakpoint where the map lists them. Unlisted literals stay blocked for manual review.
Previous
Spacing
Next
Elevation
On this page
LayoutSize (128–640px)
Breakpoint (page caps and queries)
Migration