Spacing
The only spacing options are 2, 4, 8, 12, 16, 20, 24 and 32. Components use the semantic names below; each one points at an option. Padding is always larger than the gap it contains.
2space/2
4space/4
8space/8
12space/12
16space/16
20space/20
24space/24
32space/32
gap
Between children: Row and Column spacing.
| Token | Value | Points at | Flutter | CSS |
|---|---|---|---|---|
| gap/text | 2 | space/2 | MoonshotGap.text | var(--gap-text) |
| gap/keypad | 4 | space/4 | MoonshotGap.keypad | var(--gap-keypad) |
| gap/inline | 8 | space/8 | MoonshotGap.inline | var(--gap-inline) |
| gap/stack | 12 | space/12 | MoonshotGap.stack | var(--gap-stack) |
| gap/section | 24 | space/24 | MoonshotGap.section | var(--gap-section) |
inset
Padding inside components: EdgeInsets.
| Token | Value | Points at | Flutter | CSS |
|---|---|---|---|---|
| inset/segment | 4 | space/4 | MoonshotInset.segment | var(--inset-segment) |
| inset/badge-x | 8 | space/8 | MoonshotInset.badgeX | var(--inset-badge-x) |
| inset/menu | 8 | space/8 | MoonshotInset.menu | var(--inset-menu) |
| inset/pill-x | 12 | space/12 | MoonshotInset.pillX | var(--inset-pill-x) |
| inset/row-y | 12 | space/12 | MoonshotInset.rowY | var(--inset-row-y) |
| inset/card | 16 | space/16 | MoonshotInset.card | var(--inset-card) |
| inset/menu-item-x | 16 | space/16 | MoonshotInset.menuItemX | var(--inset-menu-item-x) |
| inset/sheet | 16 | space/16 | MoonshotInset.sheet | var(--inset-sheet) |
| inset/control-x | 20 | space/20 | MoonshotInset.controlX | var(--inset-control-x) |
| inset/sheet-bottom | 32 | space/32 | MoonshotInset.sheetBottom | var(--inset-sheet-bottom) |
layout
Screen layout on a 440 × 956 phone. Safe areas come from MediaQuery at runtime.
| Token | Value | Points at | Flutter | CSS |
|---|---|---|---|---|
| layout/sheet-inset | 8 | space/8 | MoonshotLayout.sheetInset | var(--layout-sheet-inset) |
| layout/gutter | 20 | space/20 | MoonshotLayout.gutter | var(--layout-gutter) |
| layout/safe-bottom | 34 | — | MoonshotLayout.safeBottom | var(--layout-safe-bottom) |
| layout/header | 56 | — | MoonshotLayout.header | var(--layout-header) |
| layout/safe-top | 62 | — | MoonshotLayout.safeTop | var(--layout-safe-top) |