Typography
Careful and consistent use of typography ensures text content is readable and accessible while providing page structure and helping create a cohesive brand experience.
See the sample page here for an example of a basic page using our typography styling for testing out line heights and spacing.
Type families
The choice of typography is a reflection of the City of Winnipeg (CW) brand personality and helps to reinforce brand characteristics in a consistent manner. Source Sans Pro and its extended family have been selected for the CW brand. The styles used include: regular 400, regular 400 italic, semi-bold 600, semi-bold 600 italic and bold 700. If a fall-back is needed, Arial should be used over Verdana.
Line length
For most people, wide lines of text are difficult to read and can make it hard to focus. While we can’t provide a perfect width for all users, it’s recommended to strive for lines that are between 60 and 100 characters long (including spacing) on larger screens.
To keep the line length of the text in the ideal character range, the font size needs to be reduced on smaller screens.
Managing line length this way will help structure content into easy to read information.
Headings
Use headings to provide page structure and context for your content. Each heading should give the reader an idea of the information they can learn from the paragraph text that follows below. The h1
heading describes a page’s main topic. It should be highly related to the content and unique across the website. A page or screen should only contain one h1
heading. h2 - h6
headings are used to further structure the content.
.h1
through .h6
classes are also available, for when you want to match the font styling of a heading but cannot use the associated HTML element.
The sizes and line heights of our typography styles have been set to a 4pt grid system for consistency and for creating vertical rhythm.
Example | Style | Usage |
---|---|---|
h1 heading |
Font weight: 700 Font size: 44px Line height: 52px |
|
h2 heading |
Font weight: 500 Font size: 36px Line height: 44px |
|
h3 heading |
Font weight: 500 Font size: 28px Line height: 36px |
|
h4 heading |
Font weight: 600 Font size: 24px Line height: 32px |
|
h5 heading |
Font weight: 600 Font size: 22px Line height: 28px |
|
h6 heading |
Font weight: 600 Font size: 18px Line height: 24px |
|
Heading links
Add links to any heading by adding an <a>
tag inside of the heading element. Heading style links could be used in cases such as search results or featured articles and would generally not be used within basic page content. Within basic pages use inline links, or buttons for more important items. As with all links, make sure that the text of the link is clear and descriptive.
Example of a h5 heading link
Text styling
Example | Usage | Guidelines |
---|---|---|
Paragraph |
|
Use for anything from a few words to long, text-heavy pages. For basic pages we have increased the font size from |
Larger paragraph |
|
Make a paragraph stand out by adding |
Bold |
|
Use sparingly to emphasize text. Use the class |
Italic |
|
Use sparingly to emphasize text but never in combination with bold. Italics should only be used to distinguish certain words from others and for quotations. Never used for large chunks of text. Use italics when the emphasis doesn't need to be as strong as bold text. Use the class |
Uppercase |
|
Avoid using all uppercase characters unless required by a specific acronym. Consider using bold, italic, or lists to emphasize text. When using all caps for anything other then acronyms make sure you use |
Small text |
|
Small text is used primarily as help text under form fields and as secondary supporting text. Use small text sparingly. Small text is set at |
While not shown above, feel free to use <b>
and <i>
in HTML5. <b>
is meant to highlight words or phrases without conveying additional importance while <i>
is mostly for voice, technical terms, the proper names of City documents, bylaws, and specific legislation, etc.
Links
Example | Usage | Guidelines |
---|---|---|
|
When creating links make sure that the text of the link is descriptive. To provide a visual tooltip on mouseover/focus use the |
|
|
Links can be displayed with icons for support. For inline links use |
|
|
Add the class |
Text colours
Example | Usage | Guidelines |
---|---|---|
#212529 |
|
Used for all default headings and body copy. |
#495057 |
|
Used for form helper text, sources and other accent copy such as dates. Not to be used for main body copy or for headings. |
#FFFFF |
|
To be used on top of darker backgrounds. |
Block quotes
Block quotes emphasize content that has a close and meaningful relationship with the surrounding content and will help users scan the page.
- Use block quotes to highlight an attributable quote that can be cited.
- Avoid block quotes if the intention is aesthetic only and/or when pulling a direct quote from page content.
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.
Lists
Numbered lists
This type of list is best used when the order of the items displayed is important. For example, the steps for applying to a program should use an ordered list because the sequence of the items matters.
The City follows these steps when designing a bike lane:
- Data collection and assessments
- Gather input from public
- Develop preliminary options
- Gather feedback on preliminary options
- Evaluate options and refine recommended design
- Share recommended design
- Recommended design report
Bulleted list
This type of list is best used for displaying items that don’t have a required order.
Designing a bike lane takes several things into consideration, including:
- National and international design standards
- Transit requirements
- Traffic volumes
- Parking and loading
- Accessibility
- Maintenance and snow removal
- Fire and paramedic services
- Waste collection
List styling
Unstyled
Remove the default list-style
and left margin on list items (immediate children only). This only applies to immediate children list items, meaning you will need to add the class for any nested lists as well.
- Lorem ipsum dolor sit amet
- Consectetur adipiscing elit
- Integer molestie lorem at massa
- Facilisis in pretium nisl aliquet
- Nulla volutpat aliquam velit
- Phasellus iaculis neque
- Purus sodales ultricies
- Vestibulum laoreet porttitor sem
- Ac tristique libero volutpat at
- Faucibus porta lacus fringilla vel
- Aenean sit amet erat nunc
- Eget porttitor lorem
Inline
Remove a list’s bullets and apply some light margin
with a combination of two classes, .list-inline
and .list-inline-item
.
- Lorem ipsum
- Phasellus iaculis
- Nulla volutpat
Text utilities
Change text alignment, transform, style, weight, and colour with Bootstrap text utilities and colour utilities.