Spacing

A 4px-base scale, mirroring Tailwind defaults so existing app code keeps working without rewrites.

One rhythm across every product is Valor: consistent breathing room that gives each screen the same calm, durable feel.

TokenValueUse
spacing.14pxHairline gap
spacing.28pxTight inline gap
spacing.312pxCompact inline gap
spacing.416pxDefault (1× rhythm)
spacing.624pxSection gap
spacing.832pxCard padding / layout gap
spacing.1248pxLarge layout gap
spacing.1664pxPage padding (mobile)
spacing.2496pxHero padding

In Tailwind

<div class="p-4 gap-6">  <!-- padding 16px, gap 24px -->

The Tailwind preset wires the full scale. you can use any of p-0.5 (2px) up to p-32 (128px).

Don’t

  • Don’t introduce odd values (p-[14px], p-[5]). they break the rhythm.
  • Don’t fight the scale. If gap-4 is too tight and gap-6 too loose, the answer is not gap-5. pick one and adjust the surrounding layout.