Typography

Override default colors, styles, sizes and more with these utility classes.

Colors

tc--<color>

ClassProperty & Value
tc--whitecolor: $white
tc--white-alphacolor: $white-alpha
tc--blackcolor: $black
tc--black-alphacolor: $black-alpha
tc--graycolor: $gray
tc--gray-50color: $gray-50
tc--gray-100color: $gray-100
tc--gray-200color: $gray-200
tc--gray-300color: $gray-300
tc--gray-400color: $gray-400
tc--gray-500color: $gray-500
tc--gray-600color: $gray-600
tc--gray-700color: $gray-700
tc--gray-800color: $gray-800
tc--gray-900color: $gray-900
tc--redcolor: $red
tc--red-darkcolor: $red-dark
tc--red-lightcolor: $red-light
tc--orangecolor: $orange
tc--yellowcolor: $yellow
tc--greencolor: $green
tc--tealcolor: $teal
tc--bluecolor: $blue
tc--blue-darkcolor: $blue-dark
tc--purplecolor: $purple
tc--beigecolor: $beige

Font Family

ff--<family>

ClassProperty & Value
ff--sansfont-family: $type-sans
ff--seriffont-family: $type-serif
ff--monofont-family: $type-mono

Font Size

fs--<size>

ClassProperty & Value
fs--root@include type-root()
fs--xs@include type-xs(false, true)
fs--sm@include type-sm(false, true)
fs--lead@include type-lead(1)
fs--d1@include type-d1(false, true)
fs--d2@include type-d2(false, true)
fs--d3@include type-d3(false, true)
fs--d4@include type-d4(false, true)
fs--d5@include type-d5(false, true)

Font Weight

fw--<weight>

ClassProperty & Value
fw--normalfont-weight: normal
fw--boldfont-weight: bold
fw--100font-weight: 100
fw--200font-weight: 200
fw--300font-weight: 300
fw--400font-weight: 400
fw--500font-weight: 500
fw--600font-weight: 600
fw--700font-weight: 700
fw--900font-weight: 900

Letter Spacing

ls--<weight>

ClassProperty & Value
ls--noneletter-spacing: normal
ls--tightletter-spacing: $letter-spacing-tight
ls--looseletter-spacing: $letter-spacing-loose

Line Height

lh--<size>

ClassProperty & Value
lh--inheritline-height: inherit
lh--tightline-height: $line-height-tight
lh--normalline-height: $line-height-normal
lh--looseline-height: $line-height-loose

Lists

ls--<style>

ClassProperty & Value
ls--nonepadding-left: 0
list-style: none
ls--inlinepadding-left: 0
list-style: none

Measure

measure--<length>

ClassProperty & Value
measuremax-width: $measure
measure--widemax-width: $measure-wide
measure--narrowmax-width: $measure-narrow

Style & Decoration

<property>--<value>

ClassProperty & Value
Style
fs--italicfont-style: italic
fs--romanfont-style: normal
Decoration
td--utext-decoration: underline
td--linetext-decoration: line-through
td--nonetext-decoration: none
Transform
tt--normaltext-transform: none
tt--ltext-transform: lowercase
tt--utext-transform: uppercase
tt--ctext-transform: capitalize
tt--capsfont-size:92%
text-transform: uppercase
letter-spacing: 0.03rem
Smoothing(enable/disable for high-pixel-density screens)
fs--smooth-webkit-font-smoothing: antialiased
-moz-osx-font-smoothing: grayscale
fs--smooth-auto-webkit-font-smoothing: auto
-moz-osx-font-smoothing: auto

Text Alignment

ta--<value>

ClassProperty & Value
ta--ltext-align: left
ta--rtext-align: right
ta--ctext-align: center

Text Shadow

ts

ClassProperty & Value
tstext-shadow: 0 0 0.5rem rgba(0, 0, 0, 0.25)

Vertical Alignment

va--<value>

ClassProperty & Value
va--basevertical-align: baseline
va--mvertical-align: middle
va--tvertical-align: top
va--bvertical-align: bottom

Whitespace & Wrapping

ws--<value>

ClassProperty & Value
ws--normalwhite-space: normal
ws--nowrapwhite-space: nowrap
ws--prewhite-space: pre

Word Break

wb--<value>

ClassProperty & Value
wb--normalword-break: normal
wb--wrapword-break: break-all
wb--nowrapword-break: keep-all