From 2bc95279ef79d46d6c4b791590cbb814c7918dcb Mon Sep 17 00:00:00 2001 From: Locust agent Date: Tue, 3 Nov 2026 00:52:56 +0000 Subject: [PATCH] fix(design): read the theme toggle colours from the token layer The toggle was the last hard-coded palette left in the owned paths: it carried raw gray and blue utilities with explicit dark: variants instead of the semantic tokens the rest of the site uses. Replace them with text-muted-foreground, hover:text-foreground, hover:bg-muted and focus-visible:outline-accent. The tokens already swap under .dark, so the dark: variants are redundant. Measured contrast of the resulting states, light and dark: muted-foreground on background 7.58:1 and 6.96:1, foreground on muted 16.19:1 and 13.98:1, accent focus ring on background 6.70:1 and 7.02:1. --- public/src/components/theme/ThemeToggle.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/src/components/theme/ThemeToggle.vue b/public/src/components/theme/ThemeToggle.vue index 3f4deda..e864af6 100644 --- a/public/src/components/theme/ThemeToggle.vue +++ b/public/src/components/theme/ThemeToggle.vue @@ -14,7 +14,7 @@ const onToggle = () => {