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

State

The state prefix applies a class based on the specified interaction state. A class without a prefix will apply to all states. Adding the state prefix lets you create dynamic and user-friendly interfaces without writing custom CSS for each interaction. Overview
CSS Shortcut class Applied style
hover:
.hover:<class>:hover {
  <property-name>: <property-value>;
}
focus:
.focus:<class>:focus {
  <property-name>: <property-value>;
}

Examples

Hover
hover:<class>

<a href="#" class="link-default hover:link-hover">
  This link uses the link-default colour. On hover, the link
  will use the link-hover colour instead.
</a>

Focus
focus:<class>

<button class="bg-dark text-light focus:bg-light focus:text-primary">
  This button uses the dark background colour. On focus, the
  button will use the light background colour instead.
</button>
2025-10-01