For AI agents: the complete documentation index is available at https://a3s-lab.github.io/UI/en/llms.txt, the full documentation bundle is available at https://a3s-lab.github.io/UI/en/llms-full.txt, and this page is available as Markdown at https://a3s-lab.github.io/UI/en/foundations/spacing.md.

Spacing

A3S UI uses a 4px base. Tight relationships use 4, 6, 8, 12, and 16px; region relationships use 24, 32, 48, 64, and 96px. Headings receive more space above than below, and grouping must not depend on extra cards.

Live preview
4pxMicro gap
8pxAdjacent controls
12pxComponent interior
16pxSurface padding
24pxSection gap
32pxPage region

Layout benchmarks

RoleDefaultNotes
Standard control36pxButtons, fields, and compound controls
Compact control28pxRibbon and explicitly compact contexts
Coarse-pointer target44pxMinimum touch and coarse-pointer hit area
Header56pxDocumentation and workspace header
Documentation sidebar248pxPersistent documentation navigation
Reading column752pxApproximately 65–75 characters
Documentation shell1440pxMaximum content width

Page padding is 16px on phones, 24px on tablets, and 32–48px on desktop. Below 900px, secondary inspectors become overlays. Below 768px, persistent navigation becomes dismissible. Below 520px, headers retain identity and essential actions while bottom actions protect the safe area.

Application parameters

VariableDefaultComponent
--a3s-control-height2.25remStandard controls
--a3s-control-height-sm1.75remCompact controls
--a3s-touch-target2.75remCoarse-pointer hit target
--a3s-task-navigation-size15.5remApp Shell and task navigation
--a3s-task-reading-size47.5remTask transcript and composer
--a3s-task-inspector-size21remTask inspector
--a3s-activity-rail-size2.875remCollapsed navigation rail
--a3s-workspace-header-height3.5remWorkspace Header
--a3s-toolbar-height2.6875remStandalone Toolbar row
--a3s-toolbar-control-height1.8125remToolbar commands
--a3s-ribbon-tabs-height2.25remRibbon tabs
--a3s-ribbon-panel-height4.625remRibbon command panel
--a3s-status-height1.75remStatus Bar

Override public variables before internal grid selectors. Keep the 4px baseline and validate desktop, 320px width, 200% zoom, and coarse pointers whenever density changes.