forge-fix
/forge-fix — Auto-Fix Violations
Apply automatic fixes for all violations found by /forge-audit:
- Replace raw hex values with var(--token-name) references
- Snap spacing values to nearest scale value
- Replace non-system fonts with the configured display/body/mono fonts
- Normalize font-size values to type scale steps
- Replace arbitrary shadows with system elevations
Shows before/after for every change. Requires confirmation before writing.
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-spacing
Regenerate the spacing scale from your system's base unit. Outputs 13 steps from 4px to 128px.
1forge-grid
Snap all spacing values in the codebase to your system's grid. Replaces arbitrary padding, margin, and gap values.
1forge-density
Audit visual density and whitespace balance. Checks that spacing from your system creates appropriate rhythm between sections.
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-dark
Generate a dark mode variant of your design system. Creates dark-mode token overrides that preserve contrast ratios from the light theme.
1