Articulink

Spacing & Layout

Consistent spacing creates visual harmony and improves readability.

Spacing Scale

We use a base-4 spacing scale. All spacing values are multiples of 4px for consistent vertical rhythm and alignment.

TokenValueClassPreview
00pxw-0
14pxw-1
28pxw-2
312pxw-3
416pxw-4
520pxw-5
624pxw-6
832pxw-8
1040pxw-10
1248pxw-12
1664pxw-16
2080pxw-20
2496pxw-24

Common Patterns

Component Spacing

  • Card paddingp-6
  • Button paddingpx-6 py-3
  • Input paddingpx-4 py-3
  • Badge paddingpx-4 py-1.5

Layout Spacing

  • Section gappy-12 lg:py-16
  • Grid gapgap-4 lg:gap-6
  • Stack gapspace-y-4
  • Page paddingpx-6 lg:px-12

Breakpoints

Mobile-first responsive breakpoints. Always design for mobile, then enhance for larger screens.

sm

640px

Small tablets, large phones (landscape)

md

768px

Tablets

lg

1024px

Small laptops, tablets (landscape)

xl

1280px

Desktops

2xl

1536px

Large desktops

Tip: Use sm:, md:, lg:, xl: prefixes to apply styles at specific breakpoints.

Border Radius

Rounded corners are central to Articulink's friendly aesthetic. Use larger radii for larger elements.

none

0px

sm

2px

default

4px

md

6px

lg

8px

xl

12px

2xl

16px

3xl

24px

full

9999px

Recommended
  • • Cards: rounded-2xl
  • • Buttons: rounded-full or rounded-xl
  • • Inputs: rounded-xl
  • • Badges: rounded-full
  • • Icons/Avatars: rounded-xl
Avoid
  • • Sharp corners (rounded-none)
  • • Mixing too many different radii
  • • Inconsistent rounding within a component

Grid System

Use CSS Grid for layouts. Common column configurations for different content types.

12-Column Grid

1
2
3
4
5
6
7
8
9
10
11
12
grid-cols-2

Two-column layouts

grid-cols-3

Card grids, features

grid-cols-4

Icon grids, stats

Container Widths

max-w-sm384px
max-w-md448px
max-w-lg512px
max-w-xl576px
max-w-2xl672px
max-w-4xl896px
max-w-6xl1152px
max-w-7xl1280px