GC Design SystemCSS Shortcuts
GC Design System Start to use Page templates overviewBasic page Components overviewAlertBreadcrumbsButtonCardCheckboxesContainerDate inputDate modifiedDetailsError messageError summaryFieldsetFile uploaderFooterGridHeaderHeadingIconInputLanguage toggleLinkNoticePaginationRadiosScreenreader-onlySearchSelectSide navigationSignatureStepperTableTextTextareaTheme and topic menuTop navigation CSS Shortcuts overview Reset styles Responsive layoutState Box sizingContainer sizingDisplayOverflowPositionVisibility FontFont familyFont sizeFont styleFont weightLine heightLink colourLink sizeLink text decorationList styleText alignText colourText overflowText transformWord break MarginPadding Align contentAlign itemsAlign selfFlexFlex directionFlex growFlex shrinkFlex wrapGapGrid columnsGrid rowsJustify contentJustify itemsJustify selfOrderPlace contentPlace itemsPlace self Background colourBorder colourBorder radiusBorder styleBorder width Icon namesIcon sizeImage CursorPointer eventsTransition Styles overviewDesign tokensColourSpacingTypography Contact usGet InvolvedFind a demo

Font family

The font family class sets the font-family property. It controls the typeface of a text element. In most cases you do not need to use this class. Body text and heading elements are styled to match GCDS by default. Use semantic HTML tags , like h1, h2 whenever possible. Overview
CSS Shortcut class Applied style
font-family-heading
font-family: var(--gcds-font-families-heading);
font-family-body
font-family: var(--gcds-font-families-body);
font-family-monospace
font-family: var(--gcds-font-families-monospace);

Examples

Heading
font-family-heading

This element uses the heading font family.

<h4 class="font-family-heading">
  This element uses the heading font family.
</h4>

Body
font-family-body

This element uses the body font family.

<p class="font-family-body">
  This element uses the body font family.
</p>

Monospace
font-family-monospace

This element uses the monospace font family.
<code class="font-family-monospace">
  This element uses the monospace font family.
</code>
Conditional styling Apply this style to specific screen sizes Use a responsive layout prefix to apply this class only to a specified screen size. The available breakpoints are:
  • xs: > 480px
  • sm: > 640px
  • md: > 768px
  • lg: > 1024px
  • xl: > 1280px
<div class="xs:font-family-body ...">
  ...
</div>
Learn more about the responsive layout prefix. 2026-02-12