8pt Grid System
A spacing standard based on multiples of 8px (with 4px half-steps) that keeps UI rhythm consistent, scales cleanly across display densities, and speeds up handoff
Table of Contents
Structure Diagram
What is 8pt Grid System?
A spacing standard based on multiples of 8px (with 4px half-steps) that keeps UI rhythm consistent, scales cleanly across display densities, and speeds up handoff. It is a core concept in Design Systems within UI / UX.
Core Principles
The 8pt Grid System standardizes dimensions, padding, margins, and gaps on multiples of 8px (8, 16, 24, 32, 48, 64px), allowing 4px half-steps for tight micro-spacing around icons and badges.
Because 8 divides cleanly across common screen widths and pixel densities (1x, 1.5x, 2x, 3x), edges stay crisp without sub-pixel blurring—and teams stop wasting time debating whether a gap should be 13px or 15px.
Practical Takeaways
- Adopt the Soft 8pt Grid: Rather than pinning elements to rigid absolute coordinates, measure relative distances (
padding,margin,gap) in 4/8px increments so responsive flows stay effortless. - Sync Figma Big Nudge with code: Set Figma's Shift+Arrow nudge to
8pxand pair it with a 4px-based token scale (like Tailwind'sp-2,p-4,gap-6). - Keep
box-sizing: border-boxuniversal: Prevents 1px borders from turning a clean40pxbutton into an off-grid42pxcontrol.
Notable Examples
- Material Design & iOS guidelines: Standardizing icons (
16/20/24px), touch targets (40/48px), and card padding (16/24px). - Tailwind CSS spacing scale: Built natively around
0.25rem (4px)increments. - Aligned form control heights: Sizing inputs, selects, and buttons at
32 / 40 / 48pxso inline toolbars align seamlessly.