From d83d38cd31b2e67db438107a9af3b859c50a5c06 Mon Sep 17 00:00:00 2001 From: Marcel Date: Fri, 8 May 2026 12:49:40 +0200 Subject: [PATCH] fix(a11y): darken avatar palette teal for AA contrast against white MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit #007596 with white initials hits ~4.5:1 — at the AA threshold for small text. #005F74 lifts it comfortably above 5:1, matching the contrast margin of the other four palette entries. Co-Authored-By: Claude Opus 4.7 --- frontend/src/lib/shared/dashboard/ReaderPersonChips.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/lib/shared/dashboard/ReaderPersonChips.svelte b/frontend/src/lib/shared/dashboard/ReaderPersonChips.svelte index 36b81df5..f78a9b6a 100644 --- a/frontend/src/lib/shared/dashboard/ReaderPersonChips.svelte +++ b/frontend/src/lib/shared/dashboard/ReaderPersonChips.svelte @@ -2,7 +2,7 @@ import type { components } from '$lib/generated/api'; import * as m from '$lib/paraglide/messages.js'; -const AVATAR_PALETTE = ['#012851', '#5A3080', '#007596', '#2A6040', '#803020'] as const; +const AVATAR_PALETTE = ['#012851', '#5A3080', '#005F74', '#2A6040', '#803020'] as const; function djb2(str: string): number { let hash = 5381; for (let i = 0; i < str.length; i++) hash = (hash * 33) ^ str.charCodeAt(i);