From 7725f01982581f7e79acf8bcec8c9b076afc9a46 Mon Sep 17 00:00:00 2001 From: wlkns-dev Date: Mon, 16 Nov 2026 10:55:02 +0100 Subject: [PATCH] Zweiter Stil: Blau statt Gold (v1.7) Co-Authored-By: Claude Sonnet 5.5 --- CLAUDE.md | 4 ++-- README.md | 4 ++-- STYLEGUIDE.md | 22 ++++++++++------------ reference.html | 8 ++++---- tokens.css | 36 ++++++++++++++++++------------------ 5 files changed, 36 insertions(+), 38 deletions(-) diff --git a/CLAUDE.md b/CLAUDE.md index 8391c94..2e6d77e 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -16,6 +16,6 @@ The guide is meant to be the shared design foundation for all of the owner's app - **Empfehlung**: marked recommendations for other products, not yet verified anywhere. - **Offener Punkt**: explicitly unresolved issues, e.g. verification of finished views (sections 4 and 12). Light-theme `--accent` has only 2.51:1 on white, so text/links/primary buttons must use `--accent-strong`. Do not claim accessibility conformance or that any app already implements the guide. - Color tokens (section 3) are the single source of truth for hex values, mirrored in `tokens.css` (dark = fallback, light via `prefers-color-scheme` and `data-theme`). Change both together. `theme.js` is the reference theme switcher that sets `data-theme`. Contrast ratios in section 4 are computed from the opaque token values, so recompute them if any color token changes. -- Styles (section 3, "Stile") only override accent tokens (`data-accent` in `tokens.css`); a new style needs the same contrast checks as Orange/Gold. Gold/z-index/sortable-list values originate from the owner's Studio app (`../Golden-Age-Wiki/studio/src/app.css`). +- Styles (section 3, "Stile") only override accent tokens (`data-accent` in `tokens.css`); a new style needs the same contrast checks as Orange/Blue. The z-index, dialog, toast and sortable-list values originate from the owner's Studio app (`../Golden-Age-Wiki/studio/src/app.css`). - `reference.html` renders every token and component from `tokens.css`/`theme.js`; update it when tokens or components change, and check it in dark/light and both styles (headless: `chromium --headless --screenshot --blink-settings=preferredColorScheme=0|1`). -- Version and date are in the header line ("Version 1.6 · Stand: 16.11.2026"; the README status line repeats the version); update it when making substantive changes. +- Version and date are in the header line ("Version 1.7 · Stand: 16.11.2026"; the README status line repeats the version); update it when making substantive changes. diff --git a/README.md b/README.md index 8bf6c4f..2765948 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ Die Ausgangswerte stammen aus der Oberfläche von Nexus 0.1.7, die sich an llm-a ## Status -Version 1.6 (Stand 16.11.2026). Der Guide enthält Farb-Tokens für ein dunkles und ein helles Theme, zwei Akzent-Stile (Orange, Gold), Typografie, Abstände, Radien, Komponenten, Responsive-Regeln und eine Prüfliste zur Barrierefreiheit. +Version 1.7 (Stand 16.11.2026). Der Guide enthält Farb-Tokens für ein dunkles und ein helles Theme, zwei Akzent-Stile (Orange, Blau), Typografie, Abstände, Radien, Komponenten, Responsive-Regeln und eine Prüfliste zur Barrierefreiheit. Bisher ist er nur aus Nexus abgeleitet. Die als *Empfehlung* markierten Regeln sind in weiteren Apps oder Websites noch nicht praktisch abgenommen. @@ -25,7 +25,7 @@ Bisher ist er nur aus Nexus abgeleitet. Die als *Empfehlung* markierten Regeln s | Bereich | Inhalt | | :--- | :--- | | **Grundidee und Marke** | Prinzipien; was gemeinsam ist und was produktspezifisch bleibt (Beispiel neXus) | -| **Farben und Themes** | Semantische Tokens für Dunkel und Hell, Stile (Orange, Gold), Kontrastwerte | +| **Farben und Themes** | Semantische Tokens für Dunkel und Hell, Stile (Orange, Blau), Kontrastwerte | | **Typografie** | Schriftliste mit Fallbacks, Größen, Zeilenhöhen | | **Layout und Formen** | Abstände, Container, Radien, Rahmen, Schatten | | **Komponenten** | Buttons, Formulare, Ebenen/Dialoge, Sortierlisten, Karten, Status, Tabellen, Fortschritt, Chat | diff --git a/STYLEGUIDE.md b/STYLEGUIDE.md index ffd4fc9..36f04f9 100644 --- a/STYLEGUIDE.md +++ b/STYLEGUIDE.md @@ -1,6 +1,6 @@ # Styleguide für Apps und Websites -Version 1.6 · Stand: 16.11.2026 · Wiederverwendbare Gestaltungsgrundlage +Version 1.7 · Stand: 16.11.2026 · Wiederverwendbare Gestaltungsgrundlage Dieser Guide beschreibt eine gemeinsame visuelle Sprache für Apps, Webanwendungen und Websites: ruhige Flächen, klare Typografie, abgerundete Komponenten und Orange als wiederkehrende Akzentfarbe. Grundlage ist das bereits in Nexus verwendete, an llm-arena orientierte Design. Inhalte, Navigation und Markenname passen sich dem jeweiligen Produkt an. @@ -79,23 +79,21 @@ Ein Stil legt die Akzentfarbe fest und ändert sonst nichts: Neutrale Flächen, | Stil | Herkunft | Aktivierung | | --- | --- | --- | | **Orange** (Standard) | Nexus | ohne Attribut | -| **Gold** | Studio | `data-accent="gold"` am ``-Element | +| **Blau** | zweiter Stil | `data-accent="blue"` am ``-Element | -Gold ersetzt nur diese Tokens: +Blau ersetzt nur diese Tokens: | Token | Dunkel | Hell | | --- | --- | --- | -| `--accent` | `#e0b84a` | `#b07d00` | -| `--accent-strong` | `#e0b84a` | `#8c5f00` | -| `--accent-soft` | `rgba(224,184,74,.14)` | `rgba(140,95,0,.14)` | -| `--accent-text` | `#141821` | `#ffffff` | -| `--bg-glow` | `rgba(224,184,74,.10)` | `rgba(224,184,74,.16)` | +| `--accent` | `#6aa9ff` | `#3b82f6` | +| `--accent-strong` | `#6aa9ff` | `#1d5fc4` | +| `--accent-soft` | `rgba(106,169,255,.14)` | `rgba(29,95,196,.14)` | +| `--accent-text` | `#0a1428` | `#ffffff` | +| `--bg-glow` | `rgba(106,169,255,.10)` | `rgba(59,130,246,.14)` | -Kontrast von Gold (berechnet wie in Abschnitt 4): Dunkel `--accent-strong` auf `--bg`, `--surface` und `--surface-2` mindestens 8,02:1, Akzenttext auf Gold 9,41:1. Hell `--accent-strong` auf diesen Flächen mindestens 4,72:1, weißer Text darauf 5,60:1. Gegenüber dem ursprünglichen Studio-Wert `#9a6b00` ist der helle Text-Akzent abgedunkelt, weil dieser auf `--bg` nur 4,24:1 und auf `--surface-2` 3,96:1 erreichte. +Kontrast von Blau (berechnet wie in Abschnitt 4): Dunkel `--accent-strong` auf `--bg`, `--surface` und `--surface-2` mindestens 6,29:1, Akzenttext auf Blau 7,64:1. Hell `--accent-strong` auf diesen Flächen mindestens 5,08:1, weißer Text darauf 6,02:1. Das helle `--accent` (`#3b82f6`) erreicht 3,10:1 bis 3,68:1 und ist nur für Flächen ohne Text gedacht. Blau ist von den Zustandsfarben `--ok`, `--warn` und `--danger` deutlich unterscheidbar. -**Bekannte Einschränkung:** Gold liegt farblich nahe an `--warn` (hell: `#8c5f00` gegen `#8a6100`, dunkel: `#e0b84a` gegen `#ffcf5c`). Aktiv/ausgewählt und Warnung sind im Stil Gold allein an der Farbe kaum zu unterscheiden. Dort tragen Warnungen ein Symbol oder ein eindeutiges Textlabel („Warnung“), und aktive Einträge zusätzlich eine zweite Markierung (Haken, Rahmen oder Fettdruck). - -**Empfehlung:** Neue Stile erhalten wie Gold nur Akzent-Tokens und werden mit denselben Kontrastprüfungen (`--accent-strong` auf allen drei Flächen, Akzenttext auf `--accent-strong`) eingeführt, bevor sie hier aufgenommen werden. +**Empfehlung:** Neue Stile erhalten wie Blau nur Akzent-Tokens und werden mit denselben Kontrastprüfungen (`--accent-strong` auf allen drei Flächen, Akzenttext auf `--accent-strong`) eingeführt, bevor sie hier aufgenommen werden. ### Verwendung diff --git a/reference.html b/reference.html index 9e7a0cc..f512782 100644 --- a/reference.html +++ b/reference.html @@ -141,7 +141,7 @@ Stil
- +
@@ -256,10 +256,10 @@ paint(current); } seg("theme-seg", styleguideTheme.get(), function (v) { styleguideTheme.set(v); }); - var acc = root.getAttribute("data-accent") === "gold" ? "gold" : "orange"; - if (acc === "orange") try { acc = localStorage.getItem("styleguide-accent") === "gold" ? "gold" : "orange"; } catch (e) {} + var acc = root.getAttribute("data-accent") === "blue" ? "blue" : "orange"; + if (acc === "orange") try { acc = localStorage.getItem("styleguide-accent") === "blue" ? "blue" : "orange"; } catch (e) {} function setAccent(v) { - if (v === "gold") root.setAttribute("data-accent", "gold"); else root.removeAttribute("data-accent"); + if (v === "blue") root.setAttribute("data-accent", "blue"); else root.removeAttribute("data-accent"); try { localStorage.setItem("styleguide-accent", v); } catch (e) {} } setAccent(acc); diff --git a/tokens.css b/tokens.css index 80be4e5..d1cb340 100644 --- a/tokens.css +++ b/tokens.css @@ -125,34 +125,34 @@ } /* - * Stil „Gold" (aus Studio): ersetzt nur die Akzent-Tokens. - * Aktivierung per data-accent="gold" am -Element; ohne Attribut gilt Orange. + * Stil „Blau": ersetzt nur die Akzent-Tokens. + * Aktivierung per data-accent="blue" am -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); +:root[data-accent="blue"] { + --accent: #6aa9ff; + --accent-strong: #6aa9ff; + --accent-soft: rgba(106, 169, 255, .14); + --accent-text: #0a1428; + --bg-glow: rgba(106, 169, 255, .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); + :root[data-accent="blue"]:not([data-theme="dark"]) { + --accent: #3b82f6; + --accent-strong: #1d5fc4; + --accent-soft: rgba(29, 95, 196, .14); --accent-text: #ffffff; - --bg-glow: rgba(224, 184, 74, .16); + --bg-glow: rgba(59, 130, 246, .14); } } -:root[data-accent="gold"][data-theme="light"] { - --accent: #b07d00; - --accent-strong: #8c5f00; - --accent-soft: rgba(140, 95, 0, .14); +:root[data-accent="blue"][data-theme="light"] { + --accent: #3b82f6; + --accent-strong: #1d5fc4; + --accent-soft: rgba(29, 95, 196, .14); --accent-text: #ffffff; - --bg-glow: rgba(224, 184, 74, .16); + --bg-glow: rgba(59, 130, 246, .14); } /* Sichtbarer Tastaturfokus für alle bedienbaren Elemente */