Typography Scale Generator
Generate harmonious font sizes using mathematical ratios.
Export as CSS custom properties with optional line-height.
Live Preview
:root {
--text-5xl: 5.610rem;
--text-4xl: 4.209rem;
--text-3xl: 3.157rem;
--text-2xl: 2.369rem;
--text-xl: 1.777rem;
--text-lg: 1.333rem;
--text-base: 1.000rem;
--text-sm: 0.750rem;
--text-xs: 0.563rem;
}About Typography Scales
What is a type scale?
A typography scale is a set of font sizes that follow a mathematical ratio. This creates visual harmony and consistency across your design, similar to musical scales.
Popular Ratios
Perfect Fourth (1.333) is great for web design. Golden Ratio (1.618) creates dramatic contrast. Major Second (1.125) is subtle and works well for dense content.
How to Use
Use larger sizes (xl, 2xl) for headings, base for body text, and smaller sizes (sm, xs) for captions and labels. The ratio ensures all sizes work together harmoniously.
Explore more CSS tools
CSS Grid Generator
Create grid layouts visually
CSS Flexbox Generator
Create flex layouts visually
CSS Gradient Generator
Create custom gradients
CSS Text Gradient
Gradient text effects
CSS Gradients Collection
275+ ready-to-use gradients
CSS Box Shadow Generator
Design multi-layer shadows
CSS Selection Generator
Style text highlight colors
CSS Scrollbar Generator
Style custom scrollbars
CSS Blend Mode Generator
Mix colors with blend modes
CSS Cursor Generator
Preview all cursor styles
CSS Loader Generator
Create loading animations
CSS Button Generator
Design buttons with hover effects
CSS Glow Generator
Create neon glow effects
Fluid Typography
Scale text across screen sizes
