style(web): Modul-Kacheln einfarbig, Akzent nur fuer das Modul im Fokus

Statt bunter Modulfarben neutrale graue Kacheln; gelb (persoenliche
Akzentfarbe) nur fuer den gewaehlten Eintrag der Seitenleiste und den
Seitenkopf des Moduls. Schrift auf Akzentflaechen wird jetzt je nach
Akzentfarbe hell oder dunkel gewaehlt (readableOnAccent). Anmelde-
Mosaik und Dashboard-Hintergruende nur noch in Gelb, Grau, Graphit;
Salbei ersetzt durch Kiesel.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-09-26 13:09:05 +02:00
parent 76520b2010
commit 228112014c
9 changed files with 138 additions and 91 deletions
+4
View File
@@ -1,4 +1,5 @@
import { create } from 'zustand';
import { readableOnAccent } from '@/lib/color';
export interface AuthUser {
id: string;
@@ -31,8 +32,11 @@ function applyAccentColor(color: string | null | undefined) {
root.style.removeProperty('--sidebar-accent-foreground');
if (color) {
root.style.setProperty('--primary', color);
// Schrift auf der Akzentflaeche: hell oder dunkel, je nach Kontrast.
root.style.setProperty('--primary-foreground', readableOnAccent(color));
} else {
root.style.removeProperty('--primary');
root.style.removeProperty('--primary-foreground');
}
}