Skip to content

Spacing & Layout

Spacing & Layout

Spacing follows the Tailwind scale defined in @perido/tailwind-config, with a focus on even rhythm and predictable component density.

Spacing scale

Use multiples of 4px (1rem == 16px) for predictable layouts.

TokenValue
14px
28px
312px
416px
624px
832px
1248px
1664px

Layout tips

  • Keep form group spacing to mt-4 or mt-6.
  • Use max-w-6xl and mx-auto for wide sections.
  • In dense tables, use px-3 and py-2 for legibility.

Example

<section class="max-w-6xl mx-auto px-6 py-12">
<div class="grid gap-6 md:grid-cols-2">
<article class="bg-white p-6 rounded-lg shadow">...</article>
</div>
</section>