Skip to the page content

Typography

The type scale, both typefaces and every text style.

19 types

Headings

The six heading levels, h1 to h6. Add a muted small for a secondary line, and use the .h1 to .h6 classes when the look and the outline level need to differ.

Headings

Visits this week

Open bookings by territory

Oakhaven Studio

Service schedule

Payment terms

Notes from the account team

Show code
<h1>Visits <small class="text-body-secondary">this week</small></h1>
<h2>Open bookings <small class="text-body-secondary">by territory</small></h2>
<h3>Oakhaven Studio</h3>
<h4>Service schedule</h4>
<h5>Payment terms</h5>
<h6>Notes from the account team</h6>

<!-- Looks like an h3, stays a paragraph in the outline -->
<p class="h3">Oakhaven Studio</p>

Display headings

Bigger than the headings, for the one number or greeting a page leads with. They shrink on small screens on their own.

Headings

$91,460

Good morning

1,284 visits this month

Show code
<p class="display-4">$91,460</p>
<p class="display-5">Good morning</p>
<p class="display-6">1,284 visits this month</p>

Type scale

Every text style the template uses, largest to smallest. The size, line height and weight beside each one are measured from the page as it draws, so they stay true if you change the theme. Type your own words to try them at every size.

Headings
display-1

Ninety visits

display-2

Ninety visits

display-3

Ninety visits

display-4

Ninety visits

display-5

Ninety visits

display-6

Ninety visits

h1

Visits booked this week

h2

Unassigned bookings by territory

h3

Oakhaven Studio

h4

Service schedule

h5

Payment terms

h6

Notes from the account team

lead

September was our busiest month for home care visits.

body

Maintenance plans grew by eleven accounts, most of them pet sitting firms.

small

Figures exclude repeat visits.

eyebrow
This week
mono

SKU ML-BLAZ

Show code
<!-- Each row reads its own size, line height and weight -->
<div class="basalt-type-scale" data-basalt-type-scale>
  <div class="basalt-type-scale-row" data-basalt-type-row>
    <div>
      <span class="basalt-type-scale-name">h1</span>
      <span class="basalt-type-scale-spec" data-basalt-type-spec></span>
    </div>
    <p class="basalt-type-scale-sample h1" data-basalt-type-sample>Visits booked this week</p>
  </div>
  <div class="basalt-type-scale-row" data-basalt-type-row>
    <div>
      <span class="basalt-type-scale-name">eyebrow</span>
      <span class="basalt-type-scale-spec" data-basalt-type-spec></span>
    </div>
    <span class="basalt-type-scale-sample basalt-eyebrow" data-basalt-type-sample>This week</span>
  </div>
</div>

Body text

A lead paragraph, body copy, muted supporting text and small print, all with Bootstrap classes.

Text

September was our busiest month for home care visits since we opened the Boulder office.

Maintenance plans grew by eleven accounts, most of them pet sitting firms that moved off paper visit notes. The spring campaign filled every service window in nineteen days, so a second crew starts in November.

Muted text sits back from the main copy. Use it for supporting detail.

Small print: figures exclude repeat visits.

Show code
<p class="lead">September was our busiest month for home care visits.</p>
<p>Maintenance plans grew by eleven accounts, most of them pet sitting firms.</p>
<p class="text-body-secondary">Muted text sits back from the main copy.</p>
<p class="small text-body-secondary">Small print: figures exclude repeat visits.</p>

Inline text elements

Highlights, edits, keys, code, emphasis and abbreviations inside a sentence. Plain HTML elements, themed.

Text

Search for maintenance plans to see every repeat customer.

The price per seat is $34.00 $32.00 from October 1.

Press Ctrl K to search from anywhere.

Set data-bs-theme="dark" on the <html> element to switch themes.

Invoices are due 30 days after the visit, not after the booking date.

Every garment carries its SKU and care label, printed in ML-BLAZ form.

Show code
<p>Search for <mark>maintenance plans</mark> to see every repeat customer.</p>
<p>The price is <del>$34.00</del> <ins>$32.00</ins> from October 1.</p>
<p>Press <kbd>Ctrl</kbd> <kbd>K</kbd> to search.</p>
<p>Set <code>data-bs-theme="dark"</code> to switch themes.</p>
<p>Due <strong>30 days</strong> after the visit, <em>not</em> after booking.</p>
<p>Every garment carries its <abbr title="Stock keeping unit">SKU</abbr>.</p>

Blockquote

Bootstrap's blockquote inside a figure, with the source in the caption. Text alignment classes center or right-align it.

Text

We moved the whole office team over in a week. When the app stalled on a Saturday, support answered the phone.

SMS reminders cut our no-shows in half.

Show code
<figure>
  <blockquote class="blockquote">
    <p>We moved the whole office team over in a week.</p>
  </blockquote>
  <figcaption class="blockquote-footer">
    Dana Whitlock, <cite title="Oakhaven Studio">Oakhaven Studio</cite>
  </figcaption>
</figure>

Keyboard shortcut

Key combinations built from kbd elements. The modifier shows as ⌘ on a Mac and Ctrl elsewhere, and each key lights up while you hold it down. Try pressing G, N or ?.

Text
Keyboard shortcuts
Action Keys
Search everything modK
Go to orders GthenO
New order N
Save changes modS
Show all shortcuts ?
Show code
<!-- "mod" becomes ⌘ or Ctrl; data-basalt-key lets a key light up when pressed -->
<span class="basalt-keys">
  <kbd data-basalt-key="mod">mod</kbd><kbd data-basalt-key="K">K</kbd>
</span>

<span class="basalt-keys">
  <kbd data-basalt-key="G">G</kbd>
  <span class="basalt-keys-then">then</span>
  <kbd data-basalt-key="O">O</kbd>
</span>

Line clamp

Long text stops after a set number of lines with an ellipsis. The Read more button appears only when something is actually hidden, so short text gets none.

Text

Ann Rudd on the Sculpted Shoulder Blazer

★★★★★

I bought two of these in March and both still look new after a long winter. One went through the wash on the wrong setting by mistake and only lost a little of its softness. It is warm enough for a cold platform and light enough to wear under a coat, which my old blazers never were. The buttons have stayed on all season. Next time I will order the Cat-Eye Sunglasses with it, because it goes with every color the blazer comes in.

Earl Mann on the Bar Loafers

★★★★☆

Soft from the first wash, and it still keeps its shape after a long, hot summer of wear.

Show code
<p class="basalt-clamp" id="review-1">
  I bought two of these in March and both still look new…
</p>
<!-- Shown by the script only when the text is cut off -->
<button type="button" class="basalt-clamp-toggle"
        aria-controls="review-1" aria-expanded="false"
        data-basalt-clamp-toggle hidden>
  <span>Read more</span><i class="bi bi-chevron-down" aria-hidden="true"></i>
</button>

Bulleted and numbered lists

Plain ul and ol, a nested list, and Bootstrap's list-unstyled and list-inline for lists that should not look like lists.

Lists

Bulleted

  • Home care
  • Pet care
    • Dog walking
    • Cat sitting
  • Cleaning

Numbered

  1. Let yourself in
  2. Read the care notes
  3. Give the medication
  4. Write the visit note

Unstyled

  • Morning window, 8 to 12
  • Afternoon window, 12 to 5
  • Saturday visits

Inline

  • One-offs
  • First visits
  • Check-ins
Show code
<ul>
  <li>Home care</li>
  <li>Pet care
    <ul><li>Dog walking</li><li>Cat sitting</li></ul>
  </li>
</ul>
<ol>
  <li>Isolate the power</li>
  <li>Remove the access panel</li>
</ol>
<ul class="list-unstyled">…</ul>
<ul class="list-inline">
  <li class="list-inline-item">Repairs</li>
  <li class="list-inline-item">Installs</li>
</ul>

Description list

Terms and their details side by side, using Bootstrap's grid on a dl. On a phone each term sits above its detail.

Lists
Last visit
Logged on every visit, next to the carer’s name.
Next visit due
12 months after the last visit, or sooner on a plan.
Visit types
One-off, first visit, check-in or deep clean.
Service windows
Weekdays, 8:00 am to 5:00 pm.
Show code
<dl class="row">
  <dt class="col-sm-4">Last service</dt>
  <dd class="col-sm-8">Logged on every visit, next to the carer’s name.</dd>
  <dt class="col-sm-4">Next service due</dt>
  <dd class="col-sm-8">12 months after the last service.</dd>
</dl>

Icon list

A check for what is included and a cross for what is not, with the missing items set back. A plain item gets a dot.

Lists

Pro plan

  • Free SMS credits every single month
  • Two live training sessions a year
  • Same-day phone and chat support
  • Invoices every 30 days

Basic plan

  • Free shipping over $500
  • Live training (not included)
  • Same-day phone and chat support (not included)
  • Pay by card
Show code
<ul class="basalt-list-icon">
  <li class="is-yes">Free SMS credits every single month</li>
  <li class="is-no">Live training<span class="visually-hidden"> (not included)</span></li>
  <li>Invoices every 30 days</li>
</ul>

Step list

A numbered list joined by a line, for instructions and progress. Mark finished steps with is-done and the one in hand with is-current.

Lists
  1. Check in on siteTap Arrived so the customer gets a text that you are there.
  2. Read the care notesCheck the medication chart and photograph it before you start.
  3. Record the readingsEnter blood pressure and temperature in the visit form.
  4. Get a signatureThe customer signs on your phone and the invoice goes out.
Show code
<ol class="basalt-list-steps">
  <li class="is-done">
    <span class="basalt-list-steps-title">Check in on site</span>
    Tap Arrived so the customer gets a text.
  </li>
  <li class="is-current" aria-current="step">
    <span class="basalt-list-steps-title">Record the readings</span>
    Enter blood pressure and temperature.
  </li>
  <li>
    <span class="basalt-list-steps-title">Get a signature</span>
    The invoice goes out when they sign.
  </li>
</ol>

Breadcrumb

Bootstrap's breadcrumb with its divider changed through the --bs-breadcrumb-divider property, with icons, and in a bar.

Breadcrumb
Show code
<nav aria-label="Breadcrumb">
  <ol class="breadcrumb">
    <li class="breadcrumb-item"><a href="sales-dashboard.html">Sales</a></li>
    <li class="breadcrumb-item"><a href="orders.html">Orders</a></li>
    <li class="breadcrumb-item active" aria-current="page">#4821</li>
  </ol>
</nav>

<!-- Any divider, set on the nav -->
<nav class="breadcrumb-chevron" aria-label="Breadcrumb">…</nav>

Collapsing breadcrumb

A long trail keeps its first level and the last two, and folds the rest behind a button. Pressing it opens the full path and moves focus to the first level it revealed.

Breadcrumb

3 levels folded.

Show code
<!-- Keeps the first level and the last (max - 1); folds the middle -->
<nav aria-label="Breadcrumb">
  <ol class="breadcrumb basalt-breadcrumb-collapse" data-basalt-breadcrumb-max="3">
    <li class="breadcrumb-item"><a href="products.html">Products</a></li>
    <li class="breadcrumb-item"><a href="#">Clothing</a></li>
    <li class="breadcrumb-item"><a href="#">Clothing</a></li>
    <li class="breadcrumb-item"><a href="#">Tailoring</a></li>
    <li class="breadcrumb-item"><a href="#">LTE</a></li>
    <li class="breadcrumb-item active" aria-current="page">Sculpted Shoulder Blazer, size M</li>
  </ol>
</nav>

Actionable list group

Links in a list group, with one active, counts on the right and a disabled row.

List group
Show code
<div class="list-group">
  <a href="#" class="list-group-item list-group-item-action active
     d-flex justify-content-between align-items-center" aria-current="true">
    <span><i class="bi bi-inbox" aria-hidden="true"></i>All orders</span>
    <span class="basalt-count-pill">48</span>
  </a>
  <a href="#" class="list-group-item list-group-item-action
     d-flex justify-content-between align-items-center">
    <span><i class="bi bi-box-seam" aria-hidden="true"></i>To pack</span>
    <span class="basalt-count-pill basalt-count-pill-warning">12</span>
  </a>
  <a class="list-group-item list-group-item-action disabled" aria-disabled="true">Archived</a>
</div>

List group with details

Rows that carry an avatar, a name with a second line and a figure. The numbered, flush version below drops the outer border.

List group
  • Oakhaven StudioPro plan, 42 seatsActive
  • Lakeside ApparelBasic plan, 6 seatsPaused
  • Larchwood StudiosMax plan, 120 seatsActive

Numbered, flush

  1. Sculpted Shoulder Blazer
  2. Tiered Organza Dress
  3. Bar Loafers
Show code
<ul class="list-group">
  <li class="list-group-item d-flex align-items-center gap-3">
    <span class="basalt-avatar basalt-avatar-sm" aria-hidden="true">MH</span>
    <span class="flex-grow-1">
      <strong class="d-block">Oakhaven Studio</strong>
      <small class="text-body-secondary">Pro plan, 42 seats</small>
    </span>
    <span class="basalt-count-pill basalt-count-pill-success">Active</span>
  </li>
</ul>

<ol class="list-group list-group-numbered list-group-flush">
  <li class="list-group-item">Sculpted Shoulder Blazer</li>
</ol>

Checkbox list group

Each row is a label wrapping a checkbox, so the whole row is the target. Checked items are struck through.

List group
Show code
<ul class="list-group">
  <li class="list-group-item">
    <label class="d-flex align-items-center gap-3 mb-0" for="task-1">
      <input class="form-check-input m-0" type="checkbox" id="task-1">
      Send the October renewal quotes
    </label>
  </li>
</ul>

Variable font weights

Schibsted Grotesk is a variable font, so every weight from 400 to 900 comes from one file. Drag through the range or pick a named stop. Chivo Mono, for figures and code, runs from 300 to 700.

Fonts

Sculpted Shoulder Blazer, size M

700 Bold

$1,284.50Chivo Mono 300

$1,284.50Chivo Mono 400

$1,284.50Chivo Mono 500

$1,284.50Chivo Mono 700

Show code
<!-- fw-normal, fw-medium, fw-semibold and fw-bold -->
<h2 class="fw-bold">Sculpted Shoulder Blazer, size M</h2>
<p class="fw-semibold">Semibold</p>

<!-- Figures and code -->
<p class="font-monospace fw-medium">$1,284.50</p>

Tabular figures

Numbers that change in place should line up, so every digit takes the same width. Switch to proportional figures while the totals update and watch them jiggle.

Fonts

Shop sales today

  • Sculpted Shoulder Blazer $3,894.00 3.7%
  • Tiered Organza Dress $3,360.00 2.3%
  • Leather Trench Coat $3,200.00 0.9%
  • E-Gift Card, $250 $750.00 8.4%
Show code
<span class="basalt-num">$1,284.50</span>
<span class="basalt-delta basalt-delta-up basalt-num">
  <i class="bi bi-arrow-up-short" aria-hidden="true"></i>3.7%
</span>
<span class="basalt-delta basalt-delta-down basalt-num">
  <i class="bi bi-arrow-down-short" aria-hidden="true"></i>0.9%
</span>