Text sizes
←Type sizes are defined in a modular scale. The base is “1 rem”. From there it get’s smaller and bigger. There are text-size classes that are matching the headlines font-sizes. With CSS vars you can customize the ‘base’ and the ‘ratio’. All text on smaller screens get’s smaller.
Syntax:
.text_{size}
SCSS:
_text-sizes.scss
HTML tag | CSS class |
---|---|
h1 |
text_xxxl |
h2 |
text_xxl |
h3 |
text_xl |
h4 |
text_l |
h5, p, td, div … | text_m |
(small) | text_s |
text_xs |