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

The spacing system uses a 4px base unit. Dense application chrome uses 4–12px gaps; content and page regions use 16–32px gaps.

Live previewHTML · CSS · JavaScript
4pxspace-1
8pxspace-2
12pxspace-3
16pxspace-4
24pxspace-6
32pxspace-8

Scale

StepValueTypical use
14pxIcon-to-label micro gap
28pxAdjacent controls
312pxToolbar and field gaps
416pxCard padding and grid gaps
624pxSection spacing
832pxPage regions

Layout parameters

Application components expose continuous values as CSS variables:

VariableDefaultComponent
--app-shell-navigation-size15remApp Shell
--settings-navigation-size14remSettings Layout
--resource-grid-min12remResource Grid
--resource-grid-gap1remResource Grid
--split-pane-min-height18remSplit Pane
--task-pane-width18remTask Pane
--task-pane-min-width14remTask Pane

Use these parameters instead of overriding internal grid selectors.

Office density contract

The A3S style pack applies the same compact chrome rhythm used by A3S Office. Override these semantic tokens only when the entire product needs a different density:

TokenDefaultUsed by
--a3s-control-height2.25remStandard controls
--a3s-control-height-sm1.75remCompact buttons and ribbon commands
--a3s-control-height-xs1.5remMicro and icon controls
--a3s-activity-rail-size2.875remCollapsed App Shell / Activity Bar
--a3s-workspace-header-height3.125remWorkspace 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

Keep the 4px baseline when changing a token and validate the complete shell at desktop and compact widths.