What is a Type Scale?
A typographic scale is a predefined set of font sizes mathematically derived from a base font size. By scaling headings, body text, and captions by a set multiplier (a 'musical ratio' like Major Third), your entire UI gains an underlying structural harmony. Major design systems like Material Design rely heavily on modular scales.
Choosing the Right Ratio
- **Minor Second (1.067)**: Low contrast between sizes. Excellent for dense dashboards and data tables. - **Major Third (1.250)**: The perfect sweet spot. Ideal for standard blogs, SaaS homepages, and articles. - **Perfect Fifth (1.500) & Golden Ratio (1.618)**: High, dramatic contrast. Perfect for artistic portfolios and bold marketing hero sections.
Integrating via CSS Variables
Copy the generated `:root { ... }` CSS block. By assigning your `<h1>` tags to `var(--text-3xl)` instead of hardcoded pixel values, you ensure design consistency across your entire project instantly.