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.

TokenValuePoints atFlutterCSS
gap/text2space/2MoonshotGap.textvar(--gap-text)
gap/keypad4space/4MoonshotGap.keypadvar(--gap-keypad)
gap/inline8space/8MoonshotGap.inlinevar(--gap-inline)
gap/stack12space/12MoonshotGap.stackvar(--gap-stack)
gap/section24space/24MoonshotGap.sectionvar(--gap-section)

inset

Padding inside components: EdgeInsets.

TokenValuePoints atFlutterCSS
inset/segment4space/4MoonshotInset.segmentvar(--inset-segment)
inset/badge-x8space/8MoonshotInset.badgeXvar(--inset-badge-x)
inset/menu8space/8MoonshotInset.menuvar(--inset-menu)
inset/pill-x12space/12MoonshotInset.pillXvar(--inset-pill-x)
inset/row-y12space/12MoonshotInset.rowYvar(--inset-row-y)
inset/card16space/16MoonshotInset.cardvar(--inset-card)
inset/menu-item-x16space/16MoonshotInset.menuItemXvar(--inset-menu-item-x)
inset/sheet16space/16MoonshotInset.sheetvar(--inset-sheet)
inset/control-x20space/20MoonshotInset.controlXvar(--inset-control-x)
inset/sheet-bottom32space/32MoonshotInset.sheetBottomvar(--inset-sheet-bottom)

layout

Screen layout on a 440 × 956 phone. Safe areas come from MediaQuery at runtime.

TokenValuePoints atFlutterCSS
layout/sheet-inset8space/8MoonshotLayout.sheetInsetvar(--layout-sheet-inset)
layout/gutter20space/20MoonshotLayout.guttervar(--layout-gutter)
layout/safe-bottom34—MoonshotLayout.safeBottomvar(--layout-safe-bottom)
layout/header56—MoonshotLayout.headervar(--layout-header)
layout/safe-top62—MoonshotLayout.safeTopvar(--layout-safe-top)