Overview
Skelementor bundles one spacing scale for margin (outside the box), padding (inside the box), and gap (between flex items). Pick the same numeric suffix across utilities to keep rhythm predictable. The table is the quick reference; the callout under it explains how* becomes real class names, and the cards link to deeper pages for each family.
| Pattern | Value |
|---|---|
m-*-0, p-*-0, gap-*-0 | 0 / 0px |
m-*-px, p-*-px, gap-*-px | 1px |
m-*-1, p-*-1, gap-*-1 | 0.25rem / 4px |
m-*-2, p-*-2, gap-*-2 | 0.5rem / 8px |
m-*-3, p-*-3, gap-*-3 | 0.75rem / 12px |
m-*-4, p-*-4, gap-*-4 | 1rem / 16px |
m-*-6, p-*-6, gap-*-6 | 1.5rem / 24px |
m-*-8, p-*-8, gap-*-8 | 2rem / 32px |
m-*-12, p-*-12, gap-*-12 | 3rem / 48px |
m-*-auto | keyword |
gap-*-14 | 3.5rem / 56px |
m-*: m, mx, my, mt, mb, ml, mr (e.g. mx-4). p-*: p, px, py, pt, pb (e.g. px-6). gap-*: gap, gap-x, or gap-y (e.g. gap-4, gap-x-8). Margin auto works on all margin families, including mt-auto and mb-auto.Margin
External spacing with positive, auto, and axis helpers
Padding
Internal spacing with all-side and directional helpers
Quick Start
Common Spacing Patterns
Card Layout
Form Layout
Section Layout
Best Practices
Use the 4px Scale
Always use the predefined spacing scale (px, 1, 2, 3, 4, 6, 8, 12) for consistency. This ensures predictable layouts and easier maintenance.
Spacing Hierarchy
- Micro spacing (1-2): Fine adjustments, icon spacing
- Small spacing (3-4): Element internal spacing, form fields
- Medium spacing (6): Section internal spacing, card padding
- Large spacing (8-12): Section spacing, major layout divisions
Related Utilities
Layout
Flexbox and display utilities for layout
Sizing
Width and height utilities for spacing
Typography
Line height and text spacing utilities

