-
Notifications
You must be signed in to change notification settings - Fork 2
Typography
Typography elements have many options for individual headers and text tags. Configuration can be found in _config.scss
.
You’ll be able to use the tags as classless wrappers, or add the class of another tag to customize it like another typography element (useful for headers).
In other words, this is visually identical:
<h3 class=“paragraph”>I’m a header styled as an paragraph!</h3>
To this:
<p>I’m an actual paragraph!</p>
Customize font-size
and margin-bottom
by breakpoint.
$type-header-sizes: (
small: (
// small breakpoint h1-h6
),
medium: (
// medium
),
large: (
// large
),
);
Add more breakpoints as defined in $breakpoints
for more flexibility.
In addition, you can style each individual header using the $type-header-styles
map.
$type-header-styles: (
h1: (
color: $gray200,
font-style: normal,
font-weight: bold,
),
// also includes h2-h6
);
Note: if you want to edit the font family of your headers, you can do so with typography helper classes.
There are several options for inline text: small
, mark
, pre
, code
, em
, and strong
elements.
Style basic list attributes like padding, margin, and list-style-type for both ol
and ul
elements.
Next: Buttons ►