From 40ea13d261a0ab734d102172fa5ebf16de34d81b Mon Sep 17 00:00:00 2001 From: Stephen Walsh <868017+stphnwlsh@users.noreply.github.com> Date: Wed, 18 Nov 2026 19:16:54 +0000 Subject: [PATCH] Add the accessibility statement and pass contrast with amber in the light theme --- ACCESSIBILITY.md | 11 +++++++++++ README.md | 2 +- scripts/tokens.mjs | 6 ++++-- tokens/starlight/lambda.css | 4 ++-- 4 files changed, 18 insertions(+), 5 deletions(-) create mode 100644 ACCESSIBILITY.md diff --git a/ACCESSIBILITY.md b/ACCESSIBILITY.md new file mode 100644 index 0000000..855c7e3 --- /dev/null +++ b/ACCESSIBILITY.md @@ -0,0 +1,11 @@ +# Accessibility + +Everyone should be able to read the docs, use the templates and take part here, whether that's with a mouse, a keyboard, a screen reader, a magnifier or a strong coffee and squinting. + +The full statement lives at [leanmeanclean.dev/accessibility](https://leanmeanclean.dev/accessibility/). It covers what we aim for (WCAG 2.2 AA in everything we build), the third-party tools the templates ship but we don't build, what we know isn't right yet, and what happens after you tell us. + +## Found a barrier? + +[Report an accessibility barrier](https://github.com/LeanMeanCleanApps/leanmeancleanapps.github.io/issues/new?template=accessibility_barrier.yml). Tell us where it was and what got in the way. You don't need to quote WCAG at us or tell us anything about yourself, and you'll hear back within 7 days. + +If it's in Scalar, Nitro, MCP Inspector, Open WebUI or the Aspire dashboard, tell us anyway. We'll pass it on to the people who can fix it, and find you a workaround in the meantime. diff --git a/README.md b/README.md index 2d7d5bd..3d0ed61 100644 --- a/README.md +++ b/README.md @@ -110,7 +110,7 @@ Merging into `main` updates the files that READMEs and NuGet pages link to strai ## Contributing and support -Changes are welcome: see [CONTRIBUTING.md](CONTRIBUTING.md). For help, bugs and ideas, open an issue. Security problems go through the [security policy](https://github.com/LeanMeanCleanApps/.github/blob/main/SECURITY.md), not an issue. +Changes are welcome: see [CONTRIBUTING.md](CONTRIBUTING.md). For help, bugs and ideas, open an issue. Security problems go through the [security policy](https://github.com/LeanMeanCleanApps/.github/blob/main/SECURITY.md), not an issue. If a logo, banner or colour pair gets in someone's way, the [accessibility statement](ACCESSIBILITY.md) says how to tell us. The pairs that pass contrast are on the [colour page](https://leanmeanclean.dev/brand/colour/#contrast). Everything here is built and maintained by the Lean Mean Clean Apps team, which is [Stephen Walsh](https://github.com/stphnwlsh) for now, with strong coffee and a healthy disregard for pomp and ceremony. If it saves you some time, you can [sponsor the work](https://github.com/sponsors/stphnwlsh). diff --git a/scripts/tokens.mjs b/scripts/tokens.mjs index 7cac784..6bdc75a 100644 --- a/scripts/tokens.mjs +++ b/scripts/tokens.mjs @@ -85,6 +85,8 @@ pre { const accents = [...templates.map((t) => [t.key, t.name, t.hue]), ['org', 'Lean Mean Clean Apps', 'leaf']]; for (const [key, name, hue] of accents) { const s = scales[hue]; + // Amber 700 is 4.4:1 on a raised card in the light theme, so it takes 800 to pass AA. + const light = s[hue === 'amber' ? 800 : 700]; fs.writeFileSync( path.join(dir, 'starlight', `${key}.css`), `${header(`Starlight accent for ${name} (${hue}).`)} @@ -99,10 +101,10 @@ pre { :root[data-theme='light'] { --sl-color-accent-low: ${s[100]}; - --sl-color-accent: ${s[700]}; + --sl-color-accent: ${light}; --sl-color-accent-high: ${s[900]}; --sl-color-purple-low: ${s[100]}; - --sl-color-purple: ${s[700]}; + --sl-color-purple: ${light}; --sl-color-purple-high: ${s[900]}; } `, diff --git a/tokens/starlight/lambda.css b/tokens/starlight/lambda.css index 4df9a03..70f908f 100644 --- a/tokens/starlight/lambda.css +++ b/tokens/starlight/lambda.css @@ -12,9 +12,9 @@ :root[data-theme='light'] { --sl-color-accent-low: #FEF3C7; - --sl-color-accent: #B45309; + --sl-color-accent: #92400E; --sl-color-accent-high: #78350F; --sl-color-purple-low: #FEF3C7; - --sl-color-purple: #B45309; + --sl-color-purple: #92400E; --sl-color-purple-high: #78350F; }