Bruhs home Spacing

Spacing

Use Tailwind's spacing scale for a consistent rhythm. Start with the values below for each layout.

Common values

  • Icon to text gap-1.5 6px
  • Form label to field gap-2 8px
  • Compact card padding p-4 16px
  • Form field to field gap-6 24px
  • Default card padding p-6 24px
  • Page padding p-6 md:p-8 32px
  • Section to section gap-12 md:gap-16 64px

Rules

Set gap-* on the parent to space flex or grid children.

Use shorthand such as p-4. Split the axes when a breakpoint changes only one.

Use --spacing(3) for custom spacing values to stay on the scale.

If more space doesn't clarify the grouping, use a divider or a surface.