Typography

Font Size

Utilities for sets the font size.


Variant

Active Checked Child-Selection Dark Mode Disabled Expand First-Last-Selection First-Letter Focus Focus-Visible Focus-Within Fullscreen Group-Focus Group-Hover Hover Landscape Light Mode Portrait Reduce-Motion Responsive Selection-Hover Visited

API

classcss
text-xsfont-size: .75remText
text-smfont-size: .875remText
text-mdfont-size: 1remText
text-lgfont-size: 1.125remText
text-xl-1font-size: 1.25remText
text-xl-2font-size: 1.5remText
text-xl-3font-size: 1.875remText
text-xl-4font-size: 2.25remText
text-xl-5font-size: 3remText
text-xl-6font-size: 4remText
text-xl-7font-size: 5remText
text-xl-8font-size: 6remText

Usage

Set font-size to an element.

<div class="text-md">
...
</div>

<span class="text-md">
...
</span>
HTML
.dummy {
@extend
text-md;
}
SCSS

Set default font-size with <body> tag.

<body class="text-md">
...
</body>
HTML
body {
@extend
.text-md;
}
SCSS