Skip to content

Sizes

The FastTrack sizing system provides a unified scale for gaps, padding, margins, and border-radius. Token definitions live in tokens/spacing.tokens.json, and legacy CSS variables are in public/assets/styles/measures.css.

Spacing Scale

Each bar is rendered at its actual pixel width.

Spacing Scale

0
0pxsizing.0
2xs
2pxsizing.2xs
xs
4pxsizing.xs
sm
8pxsizing.sm
s
12pxsizing.s
md
16pxsizing.md
lg
24pxsizing.lg
xl
32pxsizing.xl
2xl
48pxsizing.2xl
3xl
64pxsizing.3xl

Usage Guidelines

TokenValueTypical Use
00pxReset / flush alignment, sharp corners
2xs2pxIcon inner padding, tight inline elements
xs4pxCompact gaps, tag padding, subtle border-radius
sm8pxDefault inline gaps, form spacing, card border-radius
s12pxIntermediary for compact layouts
md16pxDefault content gaps, card padding, large container radius
lg24pxSection spacing, between card groups
xl32pxPage section margins, pill-ish radius
2xl48pxMajor page section divisions
3xl64pxPage-level vertical spacing

Legacy CSS Variables

The following variables from measures.css are still available. They map to similar values in the unified scale.

Padding

VariableValue
--padding-null0
--padding-xs4px
--padding-s8px
--padding-m16px
--padding-l32px
--padding-xl64px
--padding-xxl128px

Margin

VariableValue
--margin-null0
--margin-xs4px
--margin-s8px
--margin-m16px
--margin-l32px
--margin-xl64px
--margin-xxl128px

Border Radius

VariableValue
--border-radius-xxs2px
--border-radius-xs4px
--border-radius-s8px
--border-radius-m16px
--border-radius-l32px
--border-radius-xl64px

Utility classes (.padding-m, .margin-s, .border-radius-xs, etc.) are also available for quick prototyping.