Winterlude theme
Sponsor: PCH - Nick Frenette (@nfrenette)
Accessibility statement: These colours meet the colour contrast requirements as outlined in WCAG 2.1 AA Success Criterion 1.4.3: Contrast (Minimum). Tested by Nick Frenette, nick.frenette at canada.ca. 2023-01-03.
Progressive enhancement note:
- The
bg-winterludeclass must be accompanied with another dark contrast background colour such asbg-dark - The
panel-winterludeclass must be accompanied with a fall back color such aspanel-default - Use
bg-winterlude-lightbluewith standard text colour to ensure sufficient contrast between text and background
On this page
- Customized heading 1 with larger font and a blue bottom border underline
- Blue background and white text
- Light blue background
Customized heading 1 with larger font and a blue bottom border underline
Use to increase the font size and add a blue bottom border underline to the h1.
For an example of the appearance, please see the h1 of this page that is styled with the class .winterlude.
Correct use
Compliance point(s):
- Use to style the h1 for Winterlude campaign pages
Incorrect use
Compliance point(s):
- Do not use this component in a way that conflicts with the preceding compliance point(s)
Code
<h1 class="winterlude">...</h1>
CSS classes
.winterlude- Increase the font size and add a blue bottom border underline
Blue background and white text
Use to make text appear white in colour on a blue background.
Appearance
This text is styled with .bg-dark, .bg-winterlude and .text-white.
Correct use
Compliance point(s):
- Use to introduce contrast to information
- Use
.bg-winterludein combination with.text-whiteto ensure sufficient contrast between text and background - Use a fallback colour such as
.bg-darkfor sections and paragraphs,.btn-infofor buttons or.panel-defaultfor panels to accommodate progressive enhancement - Wrap text in a <span> tag if a style does not appear as it is meant to, due to specificity reasons
Incorrect use
Compliance point(s):
- Do not use this component in a way that conflicts with the preceding compliance point(s)
- Do not use as the only way to communicate information or intent, as colour alone is not accessible
Code
<p class="bg-dark bg-winterlude text-white">...</p>
CSS classes
.bg-winterlude- Set a background colour to blue
.panel-winterlude- Set border colour for panel to blue
hr.brdr-winterlude- Set border colour for <hr> to blue
Examples
Section example
Example of a heading
This section is styled with .bg-dark, .bg-winterlude and .text-white.
Code
<section class="well bg-dark bg-winterlude text-white">
<h5 class="h2 mrgn-tp-0">Example of a heading</h5>
<p>This section is styled with <code>.bg-dark</code>, <code>.bg-winterlude</code> and <code>.text-white</code>.</p>
<p><a class="text-white" href="#">Link example</a></p>
<button class="btn-info bg-winterlude text-white" type="button">Button example</button>
</section>
<button> .btn example
Code
<button class="btn btn-info bg-winterlude text-white" type="button">Button</button>
<a> .btn example
Anchor
Code
<a href="#" class="btn btn-info bg-winterlude text-white">Anchor</a>
<hr> example
Code
<hr class="brdr-winterlude">
Standard <hr> for visual comparison reference
Panel border example
Lorem ipsum dolor sit amet.
Code
<div class="panel panel-default panel-winterlude">
<div class="panel-body">
<p>Lorem ipsum dolor sit amet.</p>
</div>
</div>
Standard default panel border for visual comparison reference
Lorem ipsum dolor sit amet.
Details/summary polyfill example
Correct use
Compliance point(s):
- Use to introduce contrast to information
- Use only with block elements
<p>,<ol>, and<ul>and inline elements<a>,<strong>and<em>.
Incorrect use
Compliance point(s):
- Do not use this component in a way that conflicts with the preceding compliance point(s)
- Do not use as the only way to communicate information or intent, as colour alone is not accessible
Code
<details class="bg-winterlude mrgn-tp-sm mrgn-bttm-sm">
<summary>Lorem ipsum</summary>
<p>Lorem ipsum <a href="#">dolor sit amet</a>, <strong>consectetur</strong> <em>adipiscing elit</em>.</p>
<ul>
<li>List item 1</li>
</ul>
</details>
Light blue background
Use to make text appear on a lightblue background.
Appearance
This text is styled with .bg-winterlude-lightblue.
Correct use
Compliance point(s):
- Use to introduce contrast to information
- Use
.bg-winterlude-lightbluewith the default text colour to ensure sufficient contrast between text and background - Use a fallback colour such as
.btn-defaultfor buttons to accommodate progressive enhancement - Wrap text in a <span> tag if a style does not appear as it is meant to, due to specificity reasons
Incorrect use
Compliance point(s):
- Do not use this component in a way that conflicts with the preceding compliance point(s)
- Do not use as the only way to communicate information or intent, as colour alone is not accessible
Code
<p class="bg-winterlude-lightblue">...</p>
CSS classes
.bg-winterlude-lightblue- Set a background colour to light blue
Examples
Section example
Example of a heading
This section is styled with .bg-winterlude-lightblue.
Code
<section class="well bg-winterlude-lightblue">
<h5 class="h2 mrgn-tp-0">Example of a heading</h5>
<p>This section is styled with <code>.bg-winterlude-lightblue</code>.</p>
<p><a href="#">Link example</a></p>
<button class="btn-default bg-winterlude-lightblue" type="button">Button example</button>
</section>
<button> .btn example
Code
<button class="btn btn-default bg-winterlude-lightblue" type="button">Button</button>
<a> .btn example
Anchor
Code
<a href="#" class="btn btn-default bg-winterlude-lightblue">Anchor</a>
Page details
- Date modified: