Linusite / Design
Foundations

Spacing

One unit = 8px. Every margin, padding and gap snaps to this scale. Skipping a step (e.g. 5 or 7) is forbidden — keep the visual rhythm.

Scale

Pick the lowest value that does the job. Use 1–4 for component-internal spacing, 6–8 for sections, 12+ for marketing layouts.

TokenpxremCSS variableVisualised
space-18px0.5rem--spacing-1
space-216px1rem--spacing-2
space-324px1.5rem--spacing-3
space-432px2rem--spacing-4
space-648px3rem--spacing-6
space-864px4rem--spacing-8
space-1296px6rem--spacing-12
space-16128px8rem--spacing-16
space-24192px12rem--spacing-24

Stack defaults

The Stack component only accepts these gap values — TypeScript enforces it.

<Stack gap="3">       // 24px between children
  <Heading />
  <Text />
</Stack>

<Inline gap="2">      // horizontal row, 16px gaps
  <Button />
  <Button variant="ghost" />
</Inline>