GC Design System Components
Home Start to use Page templates overview Basic page Components overview Breadcrumbs Button Card Checkboxes Container Date input Date modified Details Error message Error summary Fieldset File uploader Footer Grid Header Heading Icon Input Language toggle Link Notice Pagination Radios Screenreader-only Search Select Side navigation Signature Stepper Text Textarea Theme and topic menu Top navigation CSS shortcuts overview Reset styles Responsive layout State Box sizing Container sizing Display Overflow Position Visibility 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 Margin Padding 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 colour Border colour Border radius Border style Border width Icon names Icon size Image Cursor Pointer events Transition Styles overview Design tokens Colour tokens Spacing tokens Typography tokens Contact us Get involved Find a demo

Text
<gcds-text>

Also called: text block, copy, caption, body text, paragraph.

Text is a styled and formatted paragraph that displays written content in an accessible way.

Text component preview

Problems text solves

Use the text component to:

  • Convey information in small or large blocks of written content to provide essential details about a program or service without adding a high degree of structure or emphasis.
  • Insert written content after a heading with a sentence, paragraph, or caption.
  • Apply consistent font sizes, colour contrast, and white space that we've optimized for accessibility.
  • Reinforce brand identity with consistent messaging styles and formats across web pages. For example, using GC Design System typography as a standard for consistent font style.
  • Divide content into understandable sections with vertical and horizontal margins. Breaking up content supports readability, simplifies site navigation, and reduces task abandonment.

Headings for structuring content by creating levels of hierarchy that organize page content visually and mentally, using GC Design System styles.

Screenreader-only for information that is accessible for assistive technologies like screen readers, but invisible for sighted users.


Choose a text role

A role is a text sub-type that has a specific use on a page.

Primary

Use the primary text-role for:

  • Most text content.
  • Content that is the main focus of the section.

Secondary

Use the secondary text-role for:

  • Supporting content that is important but secondary to the main task.
  • When the main idea of the section can still be understood if the reader skips the secondary text.

Light

Use the light text-role for:

Content that needs to appear on a dark background when the contrast ratio between the light text and dark background meets WCAG (Web Content Accessibility Guidelines) standards.

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
2025-10-14