From d2fa2fb80982b99a1e256f4e5774c35e6ce4acd4 Mon Sep 17 00:00:00 2001
From: svemagie <869694+svemagie@users.noreply.github.com>
Date: Sat, 14 Mar 2026 15:28:43 +0100
Subject: [PATCH] fix(a11y): improve colour contrast and fix semantic heading
elements
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
- Bump all post-type label colours from -600 to -700 (light) and
-400 to -300 (dark) in blog.njk to meet WCAG AA/AAA contrast
ratios (green/teal/sky labels were failing AA at ~3-4:1)
- Replace four
in footer with
real
elements for robust screen-reader support
- Bump footer link text from surface-600 to surface-700 (light)
and surface-400 to surface-300 (dark)
- Update hero.njk accent job-title and "Read more" link from
accent-600 to accent-700 / accent-400 to accent-300
- Update Tailwind typography prose link token from accent-600/400
to accent-700/300
- Tighten .p-category and .post-meta base styles in tailwind.css
(surface-600→700 light, surface-300→200 / surface-400→300)
- Bump hashtag link colours in tailwind.css (accent-600→700)
- Fix sparkline colour in notes.njk (teal-600→700 / teal-400→300)
Co-Authored-By: Claude Sonnet 4.6
---
_includes/components/sections/hero.njk | 4 +--
_includes/layouts/base.njk | 32 ++++++++++++------------
blog.njk | 34 +++++++++++++-------------
css/tailwind.css | 6 ++---
notes.njk | 2 +-
tailwind.config.js | 4 +--
6 files changed, 41 insertions(+), 41 deletions(-)
diff --git a/_includes/components/sections/hero.njk b/_includes/components/sections/hero.njk
index 2c1a64e..2f83016 100644
--- a/_includes/components/sections/hero.njk
+++ b/_includes/components/sections/hero.njk
@@ -39,7 +39,7 @@
{{ authorName }}
{% if authorTitle %}
-
+
{{ authorTitle }}
{% endif %}
@@ -51,7 +51,7 @@
{% if siteDescription %}
{{ siteDescription }}
- Read more →
+ Read more →
{% endif %}
diff --git a/_includes/layouts/base.njk b/_includes/layouts/base.njk
index 5b0c351..8f9e111 100644
--- a/_includes/layouts/base.njk
+++ b/_includes/layouts/base.njk
@@ -333,45 +333,45 @@
{# Navigate #}
{# Content #}
{# Connect #}
{# Meta #}
- Powered by Indiekit + Eleventy
+ Powered by Indiekit + Eleventy