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

Gap

The gap class sets the gap, column-gap or row-gap properties. It controls the spacing between items in a grid or flex container. Overview The value can be either one of our predefined spacing tokens (0 - 1250).
CSS Shortcut class Applied style
gap-<value>
gap: var(--gcds-spacing-<value>);
gap-x-<value>
column-gap: var(--gcds-spacing-<value>);
gap-y-<value>
row-gap: var(--gcds-spacing-<value>);

Examples

Gap
gap-<value>

Columns and rows have --gcds-spacing-400 of space between them.

1

2

3

4

<div class="d-grid grid-cols-2 gap-400">
  <p>1</p>
  <p>2</p>
  <p>3</p>
  <p>4</p>
</div>

Horizontal gap
gap-x-<value>

Columns have --gcds-spacing-400 of space between them.

1

2

3

4

<div class="d-grid grid-cols-2 gap-x-400">
  <p>1</p>
  <p>2</p>
  <p>3</p>
  <p>4</p>
</div>

Vertical gap
gap-y-<value>

Rows have --gcds-spacing-400 of space between them.

1

2

3

4

<div class="d-grid grid-cols-2 gap-y-400">
  <p>1</p>
  <p>2</p>
  <p>3</p>
  <p>4</p>
</div>
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:gap-300 ...">
  ...
</div>
Learn more about the responsive layout prefix. 2025-10-01