Typography
Inline text
Carbon has several simple text utility classes.
See also font-stacks.
Bolder • Italic
Bold • Italic
Semibold • Italic
Medium • Italic
Normal • Italic
Light • Italic
Thin • Italic
Note: Users need to have certain fonts in our typeface installed on their device, or else they may not see these weights.
Text weights
-
font-bolderBolder text (default 900)
-
font-boldBold text (default 700) (same as
<b>and<strong>) -
font-semiboldSemibold text (default 600)
-
font-mediumMedium text (default 500)
-
font-normalReturns text to normal weight (default 400) and removes italicization
-
font-lightLight text (default 200)
-
font-thinThin text (default 100)
Italic text
-
font-italicItalic text (same as
<i>and<em>)
Text sizes
-
text-sm(alias: the<small>HTML tag)Small text for when you need small print
text-smshrinks text to 0.75em (75%) of its base size. (E.g., it is 12px when the default text size is 16px.)
Other text utilities
-
text-underline -
text-overline -
text-strike -
text-muted -
text-decoration-none -
text-decoration-solid -
text-decoration-double -
text-decoration-dotted -
text-decoration-dashed -
text-decoration-wavy -
text-uppercase -
text-lowercase -
text-capitalize -
text-normalcase -
letter-spacing-xs -
letter-spacing-sm(aliased totext-tight) -
letter-spacing-md(aliased totext-loose) -
letter-spacing-lg -
letter-spacing-xl