Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions addon/styles/global.css
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,13 @@
--color-danger: #FFD8E1;
--color-warning: #FCFFC9;
--color-info: #E3EEFC;

--text-preset-1: 1.5rem;
--text-preset-2: 2.5rem;
--text-preset-3: 4rem;
--text-preset-4: 6rem;
--text-preset-5: 8rem;
--text-preset-2: 2.25rem;
--text-preset-3: 3.375rem;
--text-preset-4: 5.063rem;
--text-preset-5: 7.594rem;

--font-weight-1: 300;
--font-weight-2: 400;
--font-weight-3: 600;
Expand Down
8 changes: 8 additions & 0 deletions addon/styles/typography.css
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,14 @@
font-size: var(--text-preset-5);
}

h1, h2, h3 {
margin-bottom: var(--spacing-1);
}

p {
margin-bottom: var(--spacing-2);
}

.light {
font-weight: var(--font-weight-1);
}
Expand Down
10 changes: 5 additions & 5 deletions docs/concepts/colours.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# Colours

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

## Primary Colours
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.

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.
The primary palette is applied across every page of the website and contains the brand, accent and neutral colors. The purpose of the primary palette is to keep uniformity across all pages while encouraging accessibility best practices.

<div class="layout-grid">
<ColorPallet class="col-2-large" @color="#1A1A1A" @name="Dark Gray" @variable="--color-dark" @class-name="bg-dark" />
Expand All @@ -17,7 +17,7 @@ The following swatches contain a sample of each of the primary palette colours,
<ColorPallet class="col-2-large" @color="#FFFFFF" @name="Light" @variable="--color-light" @class-name="bg-light"/>
</div>

## Secondary Colours
## Secondary Colors
The secondary palette is applied to UI elements and it's not part of the base colors. The purpose of the secondary palette is to ensure the readability, usability, and accessibility of all UI elements and enhance the communication of actions, changes in state, or errors.

<div class="layout-grid">
Expand Down
8 changes: 7 additions & 1 deletion docs/concepts/typeography.md → docs/concepts/typography.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
# Typography

## Sizes
### Usage
#### Legibility
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.

Please refer to the <a href="colours">Colors</a> section for more information on color contrast and accessibility.

### Sizes

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

Expand Down