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

Line height

The line height class sets the line-height property. It controls the vertical spacing between lines of text. 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
line-h1
line-height: var(--gcds-line-heights-h1);
line-h2
line-height: var(--gcds-line-heights-h2);
line-h3
line-height: var(--gcds-line-heights-h3);
line-h4
line-height: var(--gcds-line-heights-h4);
line-h5
line-height: var(--gcds-line-heights-h5);
line-h6
line-height: var(--gcds-line-heights-h6);
line-text
line-height: var(--gcds-line-heights-text);
line-text-small
line-height: var(--gcds-line-heights-text-small);

Examples

H1
line-h1

This element uses line height intended for H1 headings.

<p class="line-h1">
  This element uses line height intended for H1 headings.
</p>

H2
line-h2

This element uses line height intended for H2 headings.

<p class="line-h2">
  This element uses line height intended for H2 headings.
</p>

H3
line-h3

This element uses line height intended for H3 headings.

<p class="line-h3">
  This element uses line height intended for H3 headings.
</p>

H4
line-h4

This element uses line height intended for H4 headings.

<p class="line-h4">
  This element uses line height intended for H4 headings.
</p>

H5
line-h5

This element uses line height intended for H5 headings.

<p class="line-h5">
  This element uses line height intended for H5 headings.
</p>

H6
line-h6

This element uses line height intended for H6 headings.

<p class="line-h6">
  This element uses line height intended for H6 headings.
</p>

Text
line-text

This element uses line height intended for body text.

<p class="line-text">
  This element uses line height intended for body text.
</p>

Small text
line-text-small

This element uses line height intended for smaller body text.

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