Stile (Orange, Gold), Ebenen, Dialoge und Sortierlisten aus Studio (v1.3)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-16 10:33:26 +01:00
parent 523e89e109
commit 93ee19894f
4 changed files with 90 additions and 8 deletions

View File

@ -100,6 +100,13 @@
--card-gap: 1.1rem;
--login-max: 28rem;
/* Ebenen (aus Studio übernommen) */
--z-drag: 200;
--z-modal: 100;
--z-modal-2: 110;
--z-system: 300;
--z-toast: 400;
--breakpoint-compact: 40rem; /* nur zur Dokumentation; in @media als Literal verwenden */
--transition: 0.12s;
@ -107,6 +114,37 @@
--focus-offset: 2px;
}
/*
* Stil „Gold" (aus Studio): ersetzt nur die Akzent-Tokens.
* Aktivierung per data-accent="gold" am <html>-Element; ohne Attribut gilt Orange.
* Gleiche Theme-Logik wie oben: Dunkel ist Fallback, Hell per Systemeinstellung oder data-theme="light".
*/
:root[data-accent="gold"] {
--accent: #e0b84a;
--accent-strong: #e0b84a;
--accent-soft: rgba(224, 184, 74, .14);
--accent-text: #141821;
--bg-glow: rgba(224, 184, 74, .10);
}
@media (prefers-color-scheme: light) {
:root[data-accent="gold"]:not([data-theme="dark"]) {
--accent: #b07d00;
--accent-strong: #8c5f00;
--accent-soft: rgba(140, 95, 0, .14);
--accent-text: #ffffff;
--bg-glow: rgba(224, 184, 74, .16);
}
}
:root[data-accent="gold"][data-theme="light"] {
--accent: #b07d00;
--accent-strong: #8c5f00;
--accent-soft: rgba(140, 95, 0, .14);
--accent-text: #ffffff;
--bg-glow: rgba(224, 184, 74, .16);
}
/* Sichtbarer Tastaturfokus für alle bedienbaren Elemente */
:focus-visible {
outline: var(--focus-ring);