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

The font class sets the font property. It controls the font style, size, weight, family and line height 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-h1
font: var(--gcds-font-h1);

@media only screen and (width < 48em) {
 font: var(--gcds-font-h1-mobile);
}
font-h2
font: var(--gcds-font-h2);

@media only screen and (width < 48em) {
 font: var(--gcds-font-h2-mobile);
}
font-h3
font: var(--gcds-font-h3);

@media only screen and (width < 48em) {
 font: var(--gcds-font-h3-mobile);
}
font-h4
font: var(--gcds-font-h4);

@media only screen and (width < 48em) {
 font: var(--gcds-font-h4-mobile);
}
font-h5
font: var(--gcds-font-h5);

@media only screen and (width < 48em) {
 font: var(--gcds-font-h5-mobile);
}
font-h6
font: var(--gcds-font-h6);

@media only screen and (width < 48em) {
 font: var(--gcds-font-h6-mobile);
}
font-text
font: var(--gcds-font-text);

@media only screen and (width < 48em) {
 font: var(--gcds-font-text-mobile);
}
font-text-small
font: var(--gcds-font-text-small);

@media only screen and (width < 48em) {
 font: var(--gcds-font-text-small-mobile);
}

Examples

H1
font-h1

This element uses font styles intended for an H1.

<p class="font-h1">
  This element uses font styles intended for an H1.
</p>

H2
font-h2

This element uses font styles intended for an H2.

<p class="font-h2">
  This element uses font styles intended for an H2.
</p>

H3
font-h3

This element uses font styles intended for an H3.

<p class="font-h3">
  This element uses font styles intended for an H3.
</p>

H4
font-h4

This element uses font styles intended for an H4.

<p class="font-h4">
  This element uses font styles intended for an H4.
</p>

H5
font-h5

This element uses font styles intended for an H5.

<p class="font-h5">
  This element uses font styles intended for an H5.
</p>

H6
font-h6

This element uses font styles intended for an H6.

<p class="font-h6">
  This element uses font styles intended for an H6.
</p>

Text
font-text

This element uses font styles intended for regular text.

<p class="font-text">
  This element uses font styles intended for regular text.
</p>

Small text
font-text-small

This element uses font styles intended for small text.

<p class="font-text-small">
  This element uses font styles intended for small text.
</p>
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-text ...">
  ...
</div>
Learn more about the responsive layout prefix. 2026-02-12