diff --git a/addon/styles/global.css b/addon/styles/global.css index 69d7636d..e9082a17 100644 --- a/addon/styles/global.css +++ b/addon/styles/global.css @@ -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; diff --git a/addon/styles/typography.css b/addon/styles/typography.css index ba92c21a..6dd90b24 100644 --- a/addon/styles/typography.css +++ b/addon/styles/typography.css @@ -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); } diff --git a/docs/concepts/colours.md b/docs/concepts/colours.md index f756edbb..b4aed612 100644 --- a/docs/concepts/colours.md +++ b/docs/concepts/colours.md @@ -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.
@@ -17,7 +17,7 @@ The following swatches contain a sample of each of the primary palette colours,
-## 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.
diff --git a/docs/concepts/typeography.md b/docs/concepts/typography.md similarity index 79% rename from docs/concepts/typeography.md rename to docs/concepts/typography.md index 7dfd1f53..8dd192b2 100644 --- a/docs/concepts/typeography.md +++ b/docs/concepts/typography.md @@ -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 Colors section for more information on color contrast and accessibility. + +### Sizes Use `.xsmall` for small headings or notice paragraphs.