Make headings feel related
A type scale keeps display text, headings, body copy and small labels in one visual family instead of seven unrelated font sizes.
Choose a base font size and ratio, preview headings and body sizes, then copy clean CSS variables for your website or design system.
Preview sizes are limited to 12–76px to keep this panel readable. The numeric results and copied CSS contain the full scale; very small values may be unsuitable for reading text.
A type scale keeps display text, headings, body copy and small labels in one visual family instead of seven unrelated font sizes.
Generate rem-based CSS variables you can paste into a stylesheet, design system or prototype.
Use gentle ratios for calm interfaces or larger ratios for editorial websites, landing pages and strong typographic contrast.
A type scale is a structured set of font sizes based on a mathematical ratio. It helps designers choose sizes for headings, body text, captions and UI labels with intention.
Instead of choosing each size by eye, you define a base size and a ratio. The scale then grows upward for headings and downward for smaller text. This creates a typography system that feels coherent across a page.
A ratio is a starting point, not a verdict about good typography. Compare the same title, paragraph and caption before deciding. This generator uses size = base × ratiostep. With a 16px base and 1.25 ratio, step 1 is 20px, step 2 is 25px and step 5 is 48.83px.
Interface: 16px × 1.2. Try 23.04px for a card title and 27.65px for a section title. Keep buttons close to the body size; use weight and spacing to distinguish them. Test long labels and an error message.
Portfolio: 16px × 1.25. Try 25px for project headings and 48.83px for a page title. Place the title beside a portrait image and a landscape image. If the heading competes with the work, choose a lower step rather than shrinking all text.
Editorial: 18px × 1.5. The first three steps are 27px, 40.5px and 60.75px. These can serve an introduction, a section heading and an opening title. Step 5 is already 136.69px: you do not need to use every generated value.
Here, H4, H3, H2 and H1 use steps 2, 3, 4 and 5. Display uses step 6; Body is step 0 and Small is step −1. These are suggested visual roles, not a required HTML heading structure. Choose heading levels according to the document outline, then style them with the appropriate variable.
The rem output assumes a 16px browser root: 18px becomes 1.125rem. Keep html { font-size: 100%; } when applying these values. Setting the root to 18px as well would enlarge everything again. Visitors can change their default font size; test that setting too.
Copy the variables, then apply only the roles your layout needs: body { font-size: var(--font-base); line-height: 1.5; } and h1 { font-size: var(--font-h1); line-height: 1.15; }. Bound large headings on small screens; the CSS guide includes an example using clamp(). Record deliberate exceptions so the next page follows the same decisions.
Follow the workflow · Compare the worked examples · Apply the CSS
Een verhouding is een vertrekpunt. Vergelijk dezelfde titel, alinea en hetzelfde bijschrift voordat je kiest. Deze generator rekent met grootte = basis × verhoudingstap. Bij een basis van 16px en verhouding 1,25 is stap 1 gelijk aan 20px, stap 2 aan 25px en stap 5 aan 48,83px.
Interface: 16px × 1,2. Probeer 23,04px voor een kaarttitel en 27,65px voor een sectiekop. Houd knoppen dicht bij de bodygrootte; gebruik gewicht en witruimte om ze te onderscheiden. Test lange labels en een foutmelding.
Portfolio: 16px × 1,25. Probeer 25px voor projectkoppen en 48,83px voor een paginatitel. Zet de titel naast een staand en een liggend beeld. Concurreert de kop met het werk? Kies een lagere stap in plaats van alle tekst te verkleinen.
Redactioneel: 18px × 1,5. De eerste drie stappen zijn 27px, 40,5px en 60,75px. Die kunnen passen bij een introductie, tussenkop en openingstitel. Stap 5 is al 136,69px: je hoeft niet iedere waarde te gebruiken.
H4, H3, H2 en H1 gebruiken hier stap 2, 3, 4 en 5. Display gebruikt stap 6; Body is stap 0 en Small is stap −1. Het zijn voorstellen voor visuele rollen, geen verplichte HTML-kopstructuur. Kies kopniveaus op basis van de inhoud en geef ze daarna een passende grootte.
De rem-uitvoer gaat uit van een browserbasis van 16px: 18px wordt 1,125rem. Gebruik daarom html { font-size: 100%; }. Als je ook de root op 18px zet, vergroot je alles nogmaals. Bezoekers kunnen hun standaardlettergrootte aanpassen; test ook die instelling.
Kopieer de variabelen en gebruik alleen de rollen die je nodig hebt: body { font-size: var(--font-base); line-height: 1.5; } en h1 { font-size: var(--font-h1); line-height: 1.15; }. Begrens grote koppen op kleine schermen; de CSS-gids bevat een voorbeeld met clamp(). Noteer bewuste uitzonderingen, zodat volgende pagina’s dezelfde keuzes volgen.
Volg de werkwijze · Vergelijk uitgewerkte voorbeelden · Pas de CSS toe
Una proporción es un punto de partida. Compara el mismo título, párrafo y pie de imagen antes de decidir. El generador calcula tamaño = base × proporciónpaso. Con base de 16px y proporción 1,25, el paso 1 es 20px, el paso 2 es 25px y el paso 5 es 48,83px.
Interfaz: 16px × 1,2. Prueba 23,04px para el título de una tarjeta y 27,65px para una sección. Mantén los botones cerca del tamaño del texto y diferencia con peso y espacio. Comprueba etiquetas largas y mensajes de error.
Portfolio: 16px × 1,25. Prueba 25px para proyectos y 48,83px para el título de página. Coloca el título junto a imágenes verticales y horizontales. Si compite con la obra, usa un paso inferior en vez de reducir todo el texto.
Editorial: 18px × 1,5. Los primeros pasos son 27px, 40,5px y 60,75px: posibles tamaños para introducción, sección y título inicial. El paso 5 ya alcanza 136,69px. No necesitas utilizar todos los valores.
H4, H3, H2 y H1 usan los pasos 2, 3, 4 y 5. Display usa el paso 6; Body es el paso 0 y Small el paso −1. Son funciones visuales sugeridas, no una estructura HTML obligatoria. Elige los niveles de encabezado por el contenido y después aplica el tamaño adecuado.
La conversión a rem supone una raíz de 16px: 18px equivale a 1,125rem. Conserva html { font-size: 100%; }. Si además fijas la raíz en 18px, ampliarás todo de nuevo. Comprueba también el comportamiento cuando una persona cambia el tamaño predeterminado del navegador.
Copia las variables y aplica solo las funciones necesarias: body { font-size: var(--font-base); line-height: 1.5; } y h1 { font-size: var(--font-h1); line-height: 1.15; }. Limita los títulos en pantallas pequeñas; la guía CSS explica un ejemplo con clamp(). Documenta las excepciones para mantener las mismas decisiones en las páginas siguientes.
For most websites, 1.2 or 1.25 is a safe start. Larger ratios such as 1.333 or 1.5 create more dramatic heading contrast.
16px is a reliable default for body text. Editorial layouts can often use 18px for a calmer, more spacious reading rhythm.
Yes. Copy the CSS variables and use them for headings, body text, labels and design tokens.