Helper Classes

Helper Classes

Defined in lib/styles/02-util/_helperclasses.scss and lib/styles/01-base/_fonts.scss.


Backgrounds

ClassEffect
.bg-gradient-2Brand gradient background
.bg-primaryPrimary brand color background
.bg-gray-10Light gray background
.dark-backgroundDark footer background with overflow hidden

Typography

.typography--sans

Applies sans-serif font to <p> and <li> elements without class attributes. Excludes .longquote p. Does not affect component elements with their own classes.

<main class="typography--sans">
    <p>Sans-serif</p>                          <!-- affected -->
    <p class="highlight-card__text">...</p>   <!-- NOT affected -->
</main>

.headings--bold

Sets h2–h6 to bold (700) instead of the default heavy (800).

<main class="headings--bold">
    <h2>Bold heading</h2>
</main>

Service pages typically combine both:

<main class="bg-gradient-2 typography--sans headings--bold">
    ...
</main>

Font Family & Style

Low-level classes for setting font family, weight, and style on individual elements. Each is also available as a Sass placeholder (%body-font-sans etc.) for @extend. Defined in lib/styles/01-base/_fonts.scss.

Use these to override component font styling when .typography--sans doesn't apply (because the element has a class).

ClassFamilyWeightStyle
.body-font-regularSerifnormalnormal
.body-font-italicSerifnormalitalic
.body-font-boldSerifboldnormal
.body-font-bold-italicSerifbolditalic
.body-font-sansSans-serifnormalnormal
.heading-font-regularSans-serifnormalnormal
.heading-font-boldSans-serifboldnormal
.heading-font-heavySans-serif800normal
.heading-font-ultraSans-serif1000normal
.monospace-font-regularMonospacenormalnormal
<!-- Override component font on a specific element -->
<p class="highlight-card__text body-font-sans">Now sans-serif</p>

Spacing

Margin Top

.m-t-0 .m-t-xxs .m-t-xs .m-t-sm .m-t-md .m-t-base .m-t-lg .m-t-xl .m-t-xxl

Margin Bottom

.m-b-0 .m-b-xxs .m-b-xs .m-b-sm .m-b-md .m-b-lg .m-b-xl .m-b-xxl

Gap (for flex/grid)

.gap-sm .gap-md .gap-lg


Flexbox

Display

ClassCSS
.flexdisplay: flex
.flex-inlinedisplay: inline-flex

Direction

ClassCSS
.flex-direction-rowflex-direction: row
.flex-direction-row-reverseflex-direction: row-reverse
.flex-direction-columnflex-direction: column
.flex-direction-column-reverseflex-direction: column-reverse

Wrap

ClassCSS
.flex-wrapflex-wrap: wrap
.flex-nowrapflex-wrap: nowrap
.flex-wrap-reverseflex-wrap: wrap-reverse

Justify Content

ClassCSS
.flex-justify-startjustify-content: flex-start
.flex-justify-endjustify-content: flex-end
.flex-justify-centerjustify-content: center
.flex-justify-betweenjustify-content: space-between
.flex-justify-aroundjustify-content: space-around
.flex-justify-evenlyjustify-content: space-evenly

Align Items

ClassCSS
.flex-align-startalign-items: flex-start
.flex-align-endalign-items: flex-end
.flex-align-centeralign-items: center
.flex-align-baselinealign-items: baseline
.flex-align-stretchalign-items: stretch

Align Content

Controls spacing of wrapped flex lines (only applies when flex-wrap is set and multiple lines exist).

ClassCSS
.flex-content-startalign-content: flex-start
.flex-content-endalign-content: flex-end
.flex-content-centeralign-content: center
.flex-content-betweenalign-content: space-between
.flex-content-aroundalign-content: space-around
.flex-content-stretchalign-content: stretch

Align Self

Overrides align-items for individual flex items.

ClassCSS
.flex-self-autoalign-self: auto
.flex-self-startalign-self: flex-start
.flex-self-endalign-self: flex-end
.flex-self-centeralign-self: center
.flex-self-baselinealign-self: baseline
.flex-self-stretchalign-self: stretch

Grow & Shrink

ClassCSS
.flex-grow-0flex-grow: 0
.flex-grow-1flex-grow: 1
.flex-shrink-0flex-shrink: 0
.flex-shrink-1flex-shrink: 1

Text

ClassEffect
.text-align-centerCenters text
.center-sectionAlias for .text-align-center

Other

ClassEffect
.faq-sectionAdjusted padding and alignment for FAQ sections