GC Design system
Components
Installation
Contact us
Get involved
GC Design System
Components
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.
GitHub
Figma
Text component preview
This is text that's related to the heading and describes in further detail the heading's subject or action. Text is typically one or several lines or paragraphs that form a section's content or introduce a bulleted list, table, or other content, like an image or video.
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.
Related components
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 primarytext-role for:
Most text content.
Content that is the main focus of the section.
Secondary
Use the secondarytext-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 lighttext-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? Something you'd change or you'd like to see? Share your feedback with us to help improve GC Design System.