Inline Text
Codebase has several simple text utility classes.
-
.t-bolder(and alias.t-heavy)Bolder text (default 900)
-
.t-bold(and alias.t-strong)Bold text (default 700) (same as
<b>and<strong>) -
.t-semiboldSemibold text (default 600)
-
.t-normalReturns text to normal weight (default 400) and removes italicization. Perhaps you may find this useful in some circumstances.
-
.t-lighter(and alias.t-thin)Thin text (default 200)
-
.t-italic(and alias.t-em)Italic text (same as
<i>and<em>)
Bolder • Italic
Bold • Italic
Semibold • Italic
Normal • Italic
Lighter • Italic
Note: Your visitor needs to have lighter (thin), semi-bold and bolder (heavy) fonts in your website’s (or, webapp’s) typeface installed on their device, or else they may not see these differences.
-
.t-strikeStrikethrough text
-
.t-mutedMuted text (opacity set to 0.5)
-
.t-uppercaseText in uppercase (all capitals)
-
.t-lgBig text for making something stand out.
.t-lgenlarges text by 1.25em (125%) on small to medium screens and then 1.5em (150%) on medium screens up, to make the enlargement more obvious when viewed at a distance.Note:
.t-lgdoesn’t work as an inline class on headings or heading utilities. If you want a heading to be bigger, then use.t-lgon a block wrapper around the heading. See large display text. -
.t-sm(alias: the<small>HTML tag)Small text for small print.
.t-smshrinks text to 0.85em (85%) of its base size. -
.t-looseFor when you need some text to have a little extra letter-spacing.
-
.t-tightFor when you need some text to have a little less letter-spacing.
-
.t-nowrapFor when you don’t want a portion of text to wrap on to a newline (not demonstrated here).