diff --git a/docs/docs/tokens/color.md b/docs/docs/tokens/color.md index 4420b45ef..334a430a8 100644 --- a/docs/docs/tokens/color.md +++ b/docs/docs/tokens/color.md @@ -1,6 +1,7 @@ --- title: Color description: Ensure consistent use of color and readable contrast with Web Awesome's color properties. +wide: true --- Web Awesome's color system is made up of CSS custom properties to help with consistent color use throughout your project. @@ -64,21 +77,125 @@ You can use these numbers to ensure accessible color contrast per [WCAG 2.1 succ - A difference of 50 ensures a minimum 4.5:1 contrast ratio, suitable for normal text (AA) and large text (AAA) - A difference of 60 ensures a minimum 7:1 contrast ratio, suitable for all text (AAA) -Each Web Awesome palette defines seven literal colors each with 11 lightness values using the format `--wa-color-{hue}-{tint}`. +Each Web Awesome palette defines eight literal colors each with 11 lightness values using the format `--wa-color-{hue}-{tint}`. +Additionally, the "core" (most vibrant) color of each scale is mapped to `--wa-color-{hue}`. +{% set tints = ["95", "90", "80", "70", "60", "50", "40", "30", "20", "10", "05"] -%} + +
| + | Core tint | + {% for tint in tints -%} +{{ tint }} | + {%- endfor %} +
|---|---|---|
| {{ hue | capitalize }} | +
+
+
+ |
+ {% for tint in tints -%}
+
|
+ {%- endfor -%}
+
| + | Core tint | + {% for tint in tints_clamped -%} +max-{{ tint }} | + {%- endfor %} +
|---|---|---|
| {{ hue | capitalize }} | +
+
+ {{ palettes[paletteId][hue].maxChromaTint -}}
+
+ |
+ {% for tint in tints_clamped -%}
+
+
+
+ |
+ {%- endfor -%}
+
| + | Core tint | + {% for tint in tints_clamped -%} +min-{{ tint }} | + {%- endfor %} +
|---|---|---|
| {{ hue | capitalize }} | +
+
+ {{ palettes[paletteId][hue].maxChromaTint -}}
+
+ |
+ {% for tint in tints_clamped -%}
+
+
+
+ |
+ {%- endfor -%}
+