Skip to main content

Chassis v5.4.0

Typography

Default styles for headings, paragraphs, semantic text elements, and horizontal rules.

Headings

All heading elements grow in size at the 768px breakpoint (with the exception of <h6>). Sizes are noted in brackets below for mobile/desktop.

h1 heading (26px/30px)

h2 heading (22px/26px)

h3 heading (18px/22px)

h4 heading (16px/18px)

h5 heading (14px/16px)
h6 heading (14px/14px)
  <h1>h1 heading (26px/30px)</h1>
  <h2>h2 heading (22px/26px)</h2>
  <h3>h3 heading (18px/22px)</h3>
  <h4>h4 heading (16px/18px)</h4>
  <h5>h5 heading (14px/16px)</h5>
  <h6>h6 heading (14px/14px)</h6>

ch-h1 to ch-h6 classes are also available for when you want to match the heading font styles but use a different HTML element.

ch-h1

ch-h2

ch-h3

ch-h4

ch-h5

ch-h6

  <p class="ch-h1">h1 heading style</p>
  <p class="ch-h2">h2 heading style</p>
  <p class="ch-h3">h3 heading style</p>
  <p class="ch-h4">h4 heading style</p>
  <p class="ch-h5">h5 heading style</p>
  <p class="ch-h6">h6 heading style</p>

Font scale

Scale 1 (12px)

Scale 2 (14px)

Scale 3 (16px)

Scale 4 (20px)

Scale 5 (24px)

Scale 6 (30px)

Scale 7 (34px)

Scale 8 (42px)

Scale 9 (50px)

Scale 10 (60px)

<p class="ch-fs--1">Scale 1 (12px)</p>
<p class="ch-fs--2">Scale 2 (14px)</p>
<p class="ch-fs--3">Scale 3 (16px)</p>
<p class="ch-fs--4">Scale 4 (20px)</p>
<p class="ch-fs--5">Scale 5 (24px)</p>
<p class="ch-fs--6">Scale 6 (30px)</p>
<p class="ch-fs--7">Scale 7 (34px)</p>
<p class="ch-fs--8">Scale 8 (42px)</p>
<p class="ch-fs--9">Scale 9 (50px)</p>
<p class="ch-fs--10">Scale 10 (60px)</p>

<!-- Responsive -->
<p class="[sl,sm,md,lg]:ch-fs--[1-10]">Responsive font sizes</p>

Paragraphs

<p> Default paragraph font size (14px)

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent risus leo, dictum in vehicula sit amet, feugiat tempus tellus. Duis quis sodales risus. Etiam euismod ornare consequat.

.ch-fs--3 Font scale utility (16px)

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent risus leo, dictum in vehicula sit amet, feugiat tempus tellus. Duis quis sodales risus. Etiam euismod ornare consequat.

.ch-body Sensible body copy styles (16px mobile/18px desktop)

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent risus leo, dictum in vehicula sit amet, feugiat tempus tellus. Duis quis sodales risus. Etiam euismod ornare consequat.

.ch-measure Sets a max width to make longer content easier to read (548px)

Climb leg rub face on everything give attitude nap all day for under the bed. Chase mice attack feet but rub face on everything hopped up on goofballs.

<p>
  Lorem ipsum dolor sit amet, consectetur adipiscing elit.
  <a href="#typography">Praesent risus leo, dictum in vehicula sit amet</a>,
  feugiat tempus tellus. Duis quis sodales risus. Etiam euismod ornare
  consequat.
</p>
<p class="ch-fs--3">
  Lorem ipsum dolor sit amet, consectetur adipiscing elit.
  <a href="#typography">Praesent risus leo, dictum in vehicula sit amet</a>,
  feugiat tempus tellus. Duis quis sodales risus. Etiam euismod ornare
  consequat.
</p>
<p class="ch-body">
  Lorem ipsum dolor sit amet, consectetur adipiscing elit.
  <a href="#typography">Praesent risus leo, dictum in vehicula sit amet</a>,
  feugiat tempus tellus. Duis quis sodales risus. Etiam euismod ornare
  consequat.
</p>
<p class="ch-measure">
  Climb leg rub face on everything give attitude nap all day for under the bed.
  Chase mice attack feet but rub face on everything hopped up on goofballs.
</p>

Semantic text elements

I18N <abbr>

Bold <strong> <b>

Citation <cite>

Hello World! <code>

Deleted <del>

Emphasis <em>

Italic <i>

Inserted <ins>

Ctrl + S <kbd>

Highlighted <mark>

Strikethrough <s>

Sample <samp>

Text Subscripted <sub>

Text Superscripted <sup>

<time>

Underline <u>

x = y + 2 <var>


Horizontal rules




<hr class="ch-mv--4" />
<hr class="ch-mv--4 ch-bg--ac-blue" />
<hr class="ch-mv--4 ch-bg--ac-green ch-width--6 ch-mh--auto" />

Text divider

A horizontal rule that includes text you specify. Utility classes can be used to change the default styling.

Cash price or Monthly payment
Black divider White
Bark or Bite
<div class="ch-card">
  <div class="ch-card__content">
    Cash price
    <span class="ch-text-divider ch-mv--2">or</span>
    Monthly payment
  </div>
</div>

<div class="ch-card">
  <div class="ch-card__content">
    Black
    <span class="ch-text-divider ch-mv--2 ch-bc--ac-teal">divider</span>
    White
  </div>
</div>

<div class="ch-card">
  <div class="ch-card__content">
    Bark
    <span class="ch-text-divider ch-mv--2 ch-mh--6 ch-bc--grey-5 ch-fs--4">
      or
    </span>
    Bite
  </div>
</div>