GC Design System
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 Foundations overview About design tokensToken namingUsing tokens ColourSpacingTypography Contact usGet InvolvedFind a demo

CSS Shortcuts

Every digital product needs some custom styling. We did the work for you. CSS Shortcuts is a CSS utility framework built to match GC Design System (GCDS) styles and Canada.ca standards. It provides predefined CSS utility classes that apply core design elements, like colours, spacing, and typography, to your HTML.

CSS Shortcuts and design tokens

Design tokens and CSS Shortcuts both relate to GC Design System styles, but they serve different purposes. Design tokens store reusable style decisions. CSS Shortcuts are predefined utility classes for applying common styles. Some CSS Shortcuts classes use design tokens for their values, and they’re automatically updated if a token value changes. For example, the mb-500 class uses the --gcds-spacing-500 design token for the bottom margin.

When to use CSS Shortcuts

Use CSS Shortcuts when you need to apply styles that GC Design System components do not cover. Use design tokens instead when there’s no CSS Shortcuts class for the style you need.

How to use CSS Shortcuts

  1. Select the framework you’re working with and follow the steps to add the CSS Shortcuts stylesheet. If you’ve already installed components, skip ahead to the CSS Shortcuts instructions.
  2. Explore the different styling options in the menu.
  3. Add the classes to their corresponding HTML to adjust the styling to meet your needs.

Benefits

Match styles

CSS Shortcuts use the same design tokens as our components, so your custom styles match other GC Design System assets.

Faster development, less maintenance

Your code becomes simpler, clearer, and easier to maintain. We handle the updates, not you.

No third-party dependency

CSS Shortcuts is built to meet the needs of the Government of Canada. Unlike other commonly used utility frameworks like Bootstrap or Tailwind, CSS Shortcuts is fully under our control.

Accessibility built in

Add custom code to meet your specific needs, with the reassurance of knowing it’s been built to meet GC accessibility standards.

Browse CSS Shortcuts

Defaults
  • Reset styles
  • Conditional styling
  • Responsive layout
  • State
  • Layout
  • Box sizing
  • Container sizing
  • Display
  • Overflow
  • Position
  • Visibility
  • Typography
  • Font
  • Font family
  • Font size
  • Font style
  • Font weight
  • Line height
  • Link colour
  • Link size
  • Link text decoration
  • List style
  • Text align
  • Text colour
  • Text overflow
  • Text transform
  • Word break
  • Spacing
  • Margin
  • Padding
  • Flexbox and grid
  • Align content
  • Align items
  • Align self
  • Flex
  • Flex direction
  • Flex grow
  • Flex shrink
  • Flex wrap
  • Gap
  • Grid columns
  • Grid rows
  • Justify content
  • Justify items
  • Justify self
  • Order
  • Place content
  • Place items
  • Place self
  • Background and border
  • Background colour
  • Border colour
  • Border radius
  • Border style
  • Border width
  • Icon and image
  • Icon names
  • Icon size
  • Image
  • Interactive
  • Cursor
  • Pointer events
  • Transition
  • Help us improve Have questions or a request? Give feedback on our contact form. Something's wrong? Raise it through GitHub with an account. You'll have access to the team's direct responses, progress made on your issue, and issues raised by others. Give feedback Report an issue on GitHub
    2026-11-02