Typography
Use the typography modifiers to control text sizing, emphasis, and color.
Source Sans Pro is Pivotal UI's default font family. It is packaged with the typography CSS, so the import statement below includes it in your site.
Classes
In addition to the modifiers listed here, importing typography CSS gives you the type-{color-name}
modifiers listed on the Colors page.
Modifier | Purpose |
---|---|
em-low | Makes font weight thin |
em-default | Makes font weight default |
em-high | Makes font weight bold |
em-max | Makes font weight extra bold |
em-alt | Makes text uppercase |
h1 | Sets font size, family, and spacing to be the same as an <h1> tag |
h2 | Sets font size, family, and spacing to be the same as an <h2> tag |
h3 | Sets font size, family, and spacing to be the same as an <h3> tag |
h4 | Sets font size, family, and spacing to be the same as an <h4> tag |
h5 | Sets font size, family, and spacing to be the same as an <h5> tag |
h6 | Sets font size, family, and spacing to be the same as an <h6> tag |
type-lg | Makes font size larger than the default |
type-sm | Makes font size smaller than the default |
type-xs | Makes font size much smaller than the default |
Imports
Import CSS:
import 'pivotal-ui/css/typography';