M Type Scale

Generate a mathematical type scale from a base size and ratio. Outputs 8 steps with px values, rem equivalents, and CSS custom properties.

dragoon0x 78c5bfa 552 B Updated

File contents

/m-type-scale — Type Scale

Usage: /m-type-scale [base] [ratio]\n\nRatios: Minor Second 1.067, Major Second 1.125, Minor Third 1.200, Major Third 1.250, Perfect Fourth 1.333, Augmented Fourth 1.414, Perfect Fifth 1.500\n\nCompute 8 stops (xs through 3xl). Round to whole pixels. Output CSS custom properties with line-height and letter-spacing recommendations per step.

dragoon0x/meridian/tree/main/source/skills/m-type-scale commit 78c5bfa1b9

Frequently asked questions

npx skillmds@latest add dragoon0x/m-type-scale