From e99bb420cc9f5e9c021f478c8d84bd24fc8c2bdb Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Fri, 10 Jul 2026 00:34:11 +0000 Subject: [PATCH 1/3] Fix button text/background contrast across all themes Introduces semantic --on-accent / --on-accent-orange CSS tokens (defined per-theme in globals.css, exposed as Tailwind's text-on-accent / text-on-accent-orange) and uses them everywhere a button/link previously hardcoded text-white on top of an accent-colored background. --accent is a light-ish blue in dark theme and bright orange in Xanga theme, so white text on it only ever had real contrast in light theme (~5.4:1); in dark/Xanga it measured ~2.6-2.8:1, well under the 4.5:1 (text) / 3:1 (large text/icons) WCAG AA thresholds. --accent-orange is bright in every theme, so it always needed dark text, not white. Fixed call sites: mobile nav active/hover links, the 404 'Go Home' link, Back to Top, Share button, 'Back to Blog' link, the skip-to-content link, the Xanga sidebar restore icon, the Xanga sidebar layout/nav applets, the gradient CTA buttons (Get in touch / Request VIP Access), and the Medium 'M' + contact-page email icon badges. Also fixes several Xanga/dark-mode-only CSS overrides that were independently breaking these same buttons by permanently pinning their text or background color with !important, even during :hover/:focus, regardless of the color fix above: - Xanga's blanket header-nav link-color rule only ever matched links inside