Typography

Documentation and examples for Butter Cake's typography.

Headings

All HTML headings, h1 through h6, are available.

Heading Example

<h1></h1>

h1. Heading

<h2></h2>

h2. Heading

<h3></h3>

h3. Heading

<h4></h4>

h4. Heading

<h5></h5>

h5. Heading

<h6></h6>

h6. Heading

        <h1>h1. Heading</h1>
        <h2>h2. Heading</h2>
        <h3>h3. Heading</h3>
        <h4>h4. Heading</h4>
        <h5>h5. Heading</h5>
        <h6>h6. Heading</h6>
        

Custom headings

.h1 through .h6 classes are also available, for when you want to match the font styling of a heading but cannot use the associated HTML element.

h1. Heading

h2. Heading

h3. Heading

h4. Heading

h5. Heading

h6. Heading


        <p class="h1">
          h1. Heading
        </p>
        <p class="h2">
          h2. Heading
        </p>
        <p class="h3">
          h3. Heading
        </p>
        <p class="h4">
          h4. Heading
        </p>
        <p class="h5">
          h5. Heading
        </p>
        <p class="h6">
          h6. Heading
        </p>
        

Display headings

Use display headings for larger, slightly more opinionated heading style.

Display 1

Display 2

Display 3

Display 4


        <h1 class="display-1">Display 1</h1>
        <h1 class="display-2">Display 2</h1>
        <h1 class="display-3">Display 3</h1>
        <h1 class="display-4">Display 4</h1>
        

Inline text elements

You can use the mark tag to highlight text.

This line of text is meant to be treated as deleted text.

This line of text is meant to be treated as no longer accurate.

This line of text is meant to be treated as an addition to the document.

This line of text will render as underlined

This line of text is meant to be treated as fine print.

This line rendered as bold text.

This line rendered as italicized text.


        <p>
          You can use the mark tag to <mark>highlight</mark> text.
        </p>
        <p>
          <del>This line of text is meant to be treated as deleted text.</del>
        </p>
        <p>
          <s>This line of text is meant to be treated as no longer accurate.</s>
        </p>
        <p>
          <ins>This line of text is meant to be treated as an addition to the document.</ins>
        </p>
        <p>
          <u>This line of text will render as underlined</u>
        </p>
        <p>
          <small>This line of text is meant to be treated as fine print.</small>
        </p>
        <p>
          <strong>This line rendered as bold text.</strong>
        </p>
        <p>
          <em>This line rendered as italicized text.</em>
        </p>
        

Blockquote

For quoting blocks of content from another source within your document. Wrap blockquote around any HTML as the quote.

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.


        <blockquote>
          <p class="mb-0">
            Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.
          </p>
        </blockquote>
        

Text utilities

Change text alignment, transform, style, weight, and color with our text utilities and color utilities.

Text Color

  • .text-primary
  • .text-secondary
  • .text-dark
  • .text-light
  • .text-white
  • .text-success
  • .text-warning
  • .text-danger
  • .text-gray
  • .text-muted

Text Helper

  • .text-center (-sm to -xl)
  • .text-left (-sm to -xl)
  • .text-right (-sm to -xl)
  • .capitalize (-sm to -xl)
  • .uppercase (-sm to -xl)
  • .lowercase (-sm to -xl)

Font Sizes

  • .display-1 (-sm to -xl)
  • .display-2 (-sm to -xl)
  • .display-3 (-sm to -xl)
  • .display-4 (-sm to -xl)

  • .h1 (-sm to -xl)
  • .h2 (-sm to -xl)
  • .h3 (-sm to -xl)
  • .h4 (-sm to -xl)
  • .h5 (-sm to -xl)
  • .h6 (-sm to -xl)

Font Weight

  • .font-normal
  • .font-bold
  • .weight-100 to .weight-900 (-sm to -xl)

We hope you have enjoyed using Butter Cake and if you feel like it has helped you out and want to support the team you can help us by donating or backing us on Patreon. Any amount would help support and continue development on this project and is greatly appreciated.

Patreon