Spacing

Tailwind spacing scale and common gap, padding, and margin patterns.

Spacing

The CESS FRSah design system uses the default Tailwind spacing scale. One unit equals 4px.

Scale

Tailwind spacing tokens used across the app.

1

4px

w-1

2

8px

w-2

3

12px

w-3

4

16px

w-4

5

20px

w-5

6

24px

w-6

8

32px

w-8

Layout

Page structure, sections, and responsive padding.

Content

Page content

p-4 sm:p-6 lg:p-8
Content

Page header

px-4 py-4 sm:px-6 lg:px-8
Content

Section stack

space-y-6
Content

Content grid

grid gap-6
Content

Mobile action bar

p-4

Gap

Spacing between sibling elements in flex and grid layouts.

A
B
C

Tight

gap-2
A
B
C

Default

gap-4
A
B
C

Relaxed

gap-6
A
B
C

Header actions

gap-3

Padding

Inner spacing for cards, panels, and controls.

Content

Card

p-6
Content

Card header

p-5
Content

Compact panel

p-4
Content

Button

px-3 py-2
Content

Primary button

px-4 py-2
Content

Badge

px-3 py-1
Content

List item

px-4 py-3
Content

Upload zone

p-4

Margin

Vertical rhythm between headings, labels, and content.

Block
Spaced element

Below heading

mt-1
Block
Spaced element

Below title

mt-2
Block
Spaced element

Below section label

mt-5
Block
Spaced element

Form label

mb-2
Block
Spaced element

Icon offset

mr-2
Block
Spaced element

Stacked fields

space-y-4