Analyze Website Spacing System
Spacing is the invisible force that makes designs feel "right." Professional websites use consistent spacing scalesβnot random values. Understanding how to analyze and extract spacing systems helps you create polished, professional interfaces.
Why Spacing Matters
- ποΈVisual Rhythm β Consistent spacing creates harmony and flow
- π§ Cognitive Ease β Users process consistent layouts faster
- β‘Developer Speed β Named spacing tokens prevent one-off values
- π±Responsive Scaling β Grid-based spacing scales predictably
Common Grid Systems
Most professional design systems use multiples of a base unit:
8px Grid (Most Common)
Used by: Material Design, Tailwind
4px Grid (Fine Control)
Used by: Apple, dense UIs
Tailwind Default
4px base, 0.25rem increments
Golden Ratio
Fibonacci-style scaling
What Spacing Analysis Reveals
- 1Margins β Outer spacing between elements
- 2Paddings β Inner spacing within containers
- 3Gaps β Flexbox/Grid gap values
- 4Grid Pattern β 4px, 8px, or custom base unit
- 5Consistency Score β How well values follow the grid
Manual Analysis (The Hard Way)
Manual spacing analysis:
- 1. Inspect each element in DevTools
- 2. Note margin/padding values
- 3. Create a spreadsheet of all values
- 4. Manually identify patterns
- 5. Convert to rem/spacing tokens
- 6. Takes 1-2 hours per page...
Automated Spacing Analysis
BrandSpy extracts and analyzes spacing automatically:
What BrandSpy extracts:
Spacing Consistency Score
BrandSpy calculates a consistency score (0-100) that measures how well a site follows its own spacing scale:
Excellent β Strict grid system
Good β Minor deviations
Inconsistent β Random values
Sample Spacing Analysis
Spacing Analysis: stripe.com
ββββββββββββββββββββββββββββ
Grid Base: 8px
Consistency: 94/100 β
Margins Found:
ββ 8px (12 occurrences)
ββ 16px (28 occurrences)
ββ 24px (15 occurrences)
ββ 32px (8 occurrences)
ββ 48px (6 occurrences)
ββ 64px (4 occurrences)
Paddings Found:
ββ 8px (18 occurrences)
ββ 12px (5 occurrences) β οΈ Off-grid
ββ 16px (32 occurrences)
ββ 24px (22 occurrences)
ββ 32px (14 occurrences)
Tailwind Spacing Export:
spacing: {
2: '8px',
4: '16px',
6: '24px',
8: '32px',
12: '48px',
16: '64px',
}Frequently Asked Questions
How do I know if a site uses an 8px or 4px grid?
BrandSpy detects this automatically by analyzing the Greatest Common Divisor (GCD) of all spacing values. If most values are divisible by 8, it's an 8px grid.
What's a good consistency score?
Top sites like Stripe, Linear, and Vercel score 85-95. Anything above 80 indicates a well-maintained design system.
Can I export spacing to Tailwind?
Yes! BrandSpy generates a complete Tailwind spacing configuration with all extracted values. See our Tailwind config guide.
Related Guides
- π¨ Extract Colors From Any Website
- βοΈ Generate Tailwind Config from Website
- π§ Extract Design Tokens from Website
Analyze Any Spacing System
Stop guessing spacing values. Extract complete spacing scales with grid detection and consistency scoring.
Try Design Analyzer βAdvanced 2026 Analysis π
Beyond basic extraction, BrandSpy now features an advanced mathematical heuristic engine:
- β’ APCA Contrast: Checks colors against the new WCAG 3.0 advanced perceptual contrast algorithm.
- β’ Color Blindness Simulation: Verifies palettes against Protanopia and Deuteranopia matrices.
- β’ Typography Scales: Mathematically detects geometric growth ratios (e.g., Major Third, Golden Ratio).
- β’ Grid Compliance: Calculates the percentage of margins/paddings that obey strict 8-point grid rules.
You can analyze any website for free to see the math behind the design.