Skip to content
This repository was archived by the owner on Oct 1, 2024. It is now read-only.

Typography

George edited this page Jun 3, 2018 · 2 revisions

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>

Header Responsiveness

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.

Header Styling

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.

Inline Text

There are several options for inline text: small, mark, pre, code, em, and strong elements.

Lists

Style basic list attributes like padding, margin, and list-style-type for both ol and ul elements.

Next: Buttons ►

Clone this wiki locally