Skip to content

Commit f456805

Browse files
improve typography and color docs
1 parent 22169d3 commit f456805

File tree

4 files changed

+26
-8
lines changed

4 files changed

+26
-8
lines changed

addon/styles/global.css

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,13 @@
1010
--color-danger: #FFD8E1;
1111
--color-warning: #FCFFC9;
1212
--color-info: #E3EEFC;
13+
1314
--text-preset-1: 1.5rem;
14-
--text-preset-2: 2.5rem;
15-
--text-preset-3: 4rem;
16-
--text-preset-4: 6rem;
17-
--text-preset-5: 8rem;
15+
--text-preset-2: 2.25rem;
16+
--text-preset-3: 3.375rem;
17+
--text-preset-4: 5.063rem;
18+
--text-preset-5: 7.594rem;
19+
1820
--font-weight-1: 300;
1921
--font-weight-2: 400;
2022
--font-weight-3: 600;

addon/styles/typography.css

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,14 @@
7171
font-size: var(--text-preset-5);
7272
}
7373

74+
h1, h2, h3 {
75+
margin-bottom: var(--spacing-1);
76+
}
77+
78+
p {
79+
margin-bottom: var(--spacing-2);
80+
}
81+
7482
.light {
7583
font-weight: var(--font-weight-1);
7684
}

docs/concepts/colours.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
# Colours
22

3-
### Here we talk about the color scheme
3+
### Usage
4+
#### Legibility
5+
Website elements like text and icons should meet accesibility standards when used against coloured backgrounds. The following swatches contain a sample of each of the primary palette colours, along with recommendations for its usage and the acceptable contrast guidelines when coupled with text.
6+
47

58
## Primary Colours
69
The primary palette is applied across every page of the website and contains the brand, accent and neutral colours. The purpose of the primary palette is to keep uniformity across all pages while encouraging accessibility best practices.
710

8-
The following swatches contain a sample of each of the primary palette colours, along with recommendations for its usage and the acceptable contrast guidelines when coupled with text.
9-
1011
<div class="layout-grid">
1112
<ColorPallet class="col-2-large" @color="#1A1A1A" @name="Dark Gray" @variable="--color-dark" @class-name="bg-dark" />
1213

docs/concepts/typeography.md renamed to docs/concepts/typography.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
# Typography
22

3-
## Sizes
3+
### Usage
4+
#### Legibility
5+
Text legibility is primarily affected by color. All text on the website should comply with the Web Content Accessibility Guidelines (WCAG 2.0) Level AA requirements.
6+
7+
8+
Please refer to the <a href="colours">Colours</a> section for more information on colour contrast and accessibility.
9+
10+
### Sizes
411

512
Use `.xsmall` for small headings or notice paragraphs.
613

0 commit comments

Comments
 (0)