forge-spacing
/forge-spacing — Regenerate Spacing
Base unit: 4px (from .forge.json).
Scale: 4, 8, 12, 16, 20, 24, 32, 40, 48, 64, 80, 96, 128
Output as CSS custom properties: --space-1: 4px through --space-32: 128px
Plus Tailwind spacing config and suggested usage per step.
More from dragoon0x/forge
forge-init
Generate a complete design system from a brand color and project type. Creates .forge.json with palette, tokens, type scale, spacing, shadows, and radii. This is the starting command — everything else references what it generates.
1forge-grid
Snap all spacing values in the codebase to your system's grid. Replaces arbitrary padding, margin, and gap values.
1forge-rhythm
Enforce vertical rhythm using your system's baseline grid. Ensures heading margins, paragraph spacing, and section padding are multiples of the baseline.
1forge-diff
Show the difference between your .forge.json design system and what's actually in the code. Lists every value that drifts from the system.
1forge-dark
Generate a dark mode variant of your design system. Creates dark-mode token overrides that preserve contrast ratios from the light theme.
1forge-type
Regenerate the type scale from your .forge.json ratio and base size. Outputs 8 steps with px values and CSS custom properties.
1