forge-type
/forge-type — Regenerate Type Scale
Recompute the type scale:
Given base (e.g., 16px) and ratio (e.g., 1.250):
- xs: base / ratio² (rounded)
- sm: base / ratio
- base: base
- md: base × ratio
- lg: base × ratio²
- xl: base × ratio³
- 2xl: base × ratio⁴
- 3xl: base × ratio⁵
Output: CSS custom properties 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-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-bolder
Amplify the design within your system's range. Use stronger palette shades, higher type scale steps, and more dramatic shadows.
1