Typography

Typography Scale

Generate harmonious type scales based on musical ratios

Type Scale Preview
text-base16px / 1rem

Typography

9xl
Aa
283.41px
8xl
Aa
212.61px
7xl
Aa
159.5px
6xl
Aa
119.66px
5xl
Aa
89.76px
4xl
Aa
67.34px
3xl
Aa
50.52px
2xl
Aa
37.9px
xl
Aa
28.43px
lg
Aa
21.33px
base
Aa
16px
sm
Aa
12px
xs
Aa
9px
Scale Values
NamepxremLine H
9xl283.4117.713425.12
8xl212.6113.288318.92
7xl159.59.969239.25
6xl119.667.478179.48
5xl89.765.61134.65
4xl67.344.209101.01
3xl50.523.15775.78
2xl37.92.36956.85
xl28.431.77742.65
lg21.331.33331.99
base16124
sm120.7518
xs90.56313.51
Font Weights

Aa

Thin

100

Aa

Light

300

Aa

Normal

400

Aa

Medium

500

Aa

Semi Bold

600

Aa

Bold

700

Aa

Black

900

CSS Variables
1/* Typography Scale - Perfect Fourth (1.333) */
2:root {
3 --text-xs: 0.563rem;
4 --text-sm: 0.75rem;
5 --text-base: 1rem;
6 --text-lg: 1.333rem;
7 --text-xl: 1.777rem;
8 --text-2xl: 2.369rem;
9 --text-3xl: 3.157rem;
10 --text-4xl: 4.209rem;
11 --text-5xl: 5.61rem;
12 --text-6xl: 7.478rem;
13 --text-7xl: 9.969rem;
14 --text-8xl: 13.288rem;
15 --text-9xl: 17.713rem;
16}
Tailwind Config
1// tailwind.config.js
2module.exports = {
3 theme: {
4 extend: {
5 fontSize: {
6 'xs': ['0.563rem', { lineHeight: '1.5' }],
7 'sm': ['0.75rem', { lineHeight: '1.5' }],
8 'base': ['1rem', { lineHeight: '1.5' }],
9 'lg': ['1.333rem', { lineHeight: '1.5' }],
10 'xl': ['1.777rem', { lineHeight: '1.5' }],
11 '2xl': ['2.369rem', { lineHeight: '1.5' }],
12 '3xl': ['3.157rem', { lineHeight: '1.5' }],
13 '4xl': ['4.209rem', { lineHeight: '1.5' }],
14 '5xl': ['5.61rem', { lineHeight: '1.5' }],
15 '6xl': ['7.478rem', { lineHeight: '1.5' }],
16 '7xl': ['9.969rem', { lineHeight: '1.5' }],
17 '8xl': ['13.288rem', { lineHeight: '1.5' }],
18 '9xl': ['17.713rem', { lineHeight: '1.5' }],
19 },
20 },
21 },
22}