Typography
Font
Heading
--heading-m
The quick brown fox jumps over the lazy dog--heading-l
The quick brown fox jumps over the lazy dog--heading-xl
The quick brown fox jumps over the lazy dog--heading-xxl
The quick brown fox jumps over the lazy dogTitle
--title-s
The quick brown fox jumps over the lazy dog--title-m
The quick brown fox jumps over the lazy dog--title-l
The quick brown fox jumps over the lazy dog--title-xl
The quick brown fox jumps over the lazy dog--title-xxl
The quick brown fox jumps over the lazy dogBody
--body-s
The quick brown fox jumps over the lazy dog--body-m
The quick brown fox jumps over the lazy dog--body-l
The quick brown fox jumps over the lazy dog--body-xl
The quick brown fox jumps over the lazy dog--body-xxl
The quick brown fox jumps over the lazy dogUsage in CSS
Whenever you want to apply this style to text, you can use the corresponding placeholder.
.myBodyClass {
font: var(--body-m);
}
.myTitleClass {
font: var(--title-m);
}
.myHeadingClass {
font: var(--heading-m);
}
Usage in TailwindCSS
Whenever you want to apply a typography style to the block element, you can use the corresponding className.
TailwindCSS className |
---|
heading-m |
heading-l |
heading-xl |
heading-xxl |
title-s |
title-m |
title-l |
title-xl |
title-xxl |
body-s |
body-m |
body-l |
body-xl |
body-xxl |
Advanced Usage
Font Size
Token | Value |
---|---|
--font-size-12 | 12px |
--font-size-14 | 14px |
--font-size-16 | 16px |
--font-size-20 | 20px |
--font-size-24 | 24px |
--font-size-32 | 32px |
--font-size-40 | 40px |
Line Height
Token | Value |
---|---|
--lh-16 | 16px |
--lh-20 | 20px |
--lh-24 | 24px |
--lh-32 | 32px |
Font Families
Token | Value |
---|---|
--ff-base | 'Inter', Helvetica, sans-serif |
--ff-heading | 'Roobert', Helvetica, sans-serif |
Font Weight
Token | Value |
---|---|
--fw-medium | 500 |
--fw-semibold | 600 |