#Font Size
These classes control the font size of a specific element.
| Class | Styles |
|---|---|
text-xs | |
text-sm | |
text-md | |
text-lg | |
text-xl | |
These classes control the font size of a specific element.
| Class | Styles |
|---|---|
text-xs | |
text-sm | |
text-md | |
text-lg | |
text-xl | |
The text-[size] classes set the font size for a specific element.
Text-xs
The quick brown fox jumps over the lazy dog.
<p class="text-xs">The quick brown fox jumps over the lazy dog.</p>Text-sm
The quick brown fox jumps over the lazy dog.
<p class="text-sm">The quick brown fox jumps over the lazy dog.</p>Text-md
The quick brown fox jumps over the lazy dog.
<p class="text-md">The quick brown fox jumps over the lazy dog.</p>Text-lg
The quick brown fox jumps over the lazy dog.
<p class="text-lg">The quick brown fox jumps over the lazy dog.</p>Text-xl
The quick brown fox jumps over the lazy dog.
<p class="text-xl">The quick brown fox jumps over the lazy dog.</p>The classes specified above are the default utility classes for setting font sizes. You can add, change, or remove classes within the _config.scss file of Cirrus.
// _config.scss
$config: (
extend: (
fonts: (
text: (
2xl: 2rem,
)
)
)
) !default;This would generate the following additional classes.
.text-2xl {
font-size: 2rem !important;
}Learn more about how to extend Cirrus to support your use cases in the Configuration documentation.