@ -18,4 +18,4 @@ The guide is meant to be the shared design foundation for all of the owner's app
|
|||||||
- 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.
|
- 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/Blue. The z-index, dialog, toast and 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`).
|
- `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 2.2 · 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 2.3 · Stand: 16.11.2026"; the README status line repeats the version); update it when making substantive changes.
|
||||||
|
|||||||
@ -10,7 +10,7 @@ Die Ausgangswerte stammen aus der Oberfläche von Nexus 0.1.7, die sich an llm-a
|
|||||||
|
|
||||||
## Status
|
## Status
|
||||||
|
|
||||||
Version 2.2 (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.
|
Version 2.3 (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.
|
Bisher ist er nur aus Nexus abgeleitet. Die als *Empfehlung* markierten Regeln sind in weiteren Apps oder Websites noch nicht praktisch abgenommen.
|
||||||
|
|
||||||
@ -28,7 +28,7 @@ Bisher ist er nur aus Nexus abgeleitet. Die als *Empfehlung* markierten Regeln s
|
|||||||
| **Farben und Themes** | Semantische Tokens für Dunkel und Hell, Stile (Orange, Blau), Kontrastwerte |
|
| **Farben und Themes** | Semantische Tokens für Dunkel und Hell, Stile (Orange, Blau), Kontrastwerte |
|
||||||
| **Typografie** | Schriftliste mit Fallbacks, Größen, Zeilenhöhen |
|
| **Typografie** | Schriftliste mit Fallbacks, Größen, Zeilenhöhen |
|
||||||
| **Layout und Formen** | Abstände, Container, Radien, Rahmen, Schatten |
|
| **Layout und Formen** | Abstände, Container, Radien, Rahmen, Schatten |
|
||||||
| **Komponenten** | Buttons, Formulare, Auswahlfelder, Navigation, Lade-/Leerzustände, Tabs, Aufklappmenü, Ebenen/Dialoge, Sortierlisten, Karten, Status, Tabellen, Fortschritt, Chat |
|
| **Komponenten** | Buttons, Formulare, Auswahlfelder, Navigation, Icons, Lade-/Leerzustände, Tabs, Aufklappmenü, Ebenen/Dialoge, Sortierlisten, Karten, Status, Tabellen, Fortschritt, Chat |
|
||||||
| **Responsive, Bewegung, Sprache** | Breakpoint-Ausgangswert, Rückmeldung, Ton und Beispieltexte |
|
| **Responsive, Bewegung, Sprache** | Breakpoint-Ausgangswert, Rückmeldung, Ton und Beispieltexte |
|
||||||
| **Barrierefreiheit und Pflege** | Prüfliste je Produkt, Hinweise zur Einführung |
|
| **Barrierefreiheit und Pflege** | Prüfliste je Produkt, Hinweise zur Einführung |
|
||||||
|
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
# Styleguide für Apps und Websites
|
# Styleguide für Apps und Websites
|
||||||
|
|
||||||
Version 2.2 · Stand: 16.11.2026 · Wiederverwendbare Gestaltungsgrundlage
|
Version 2.3 · 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.
|
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.
|
||||||
|
|
||||||
@ -444,6 +444,27 @@ Tabellen dienen dem Vergleich gleichartiger Werte. Dünne horizontale Linien gli
|
|||||||
|
|
||||||
**Empfehlung:** Für einfache Auswahl oder sequentielle Inhalte eine Liste verwenden. Ein enges Tabellenlayout auf kleinen Bildschirmen nicht durch immer kleinere Schrift erzwingen.
|
**Empfehlung:** Für einfache Auswahl oder sequentielle Inhalte eine Liste verwenden. Ein enges Tabellenlayout auf kleinen Bildschirmen nicht durch immer kleinere Schrift erzwingen.
|
||||||
|
|
||||||
|
### Icons
|
||||||
|
|
||||||
|
**Hinweis:** Dieser Abschnitt ist ein Entwurf; welche Icon-Sammlung ein Produkt verwendet, legt der Guide nicht fest. Herkunft und Lizenz sind je Produkt zu klären.
|
||||||
|
|
||||||
|
| Eigenschaft | Wert |
|
||||||
|
| --- | --- |
|
||||||
|
| Stil | Linien-Icons auf einem 24-Einheiten-Raster, Strichstärke `--icon-stroke` (1,5), runde Enden und Ecken, ohne Füllung |
|
||||||
|
| Größen | klein `--icon-sm` (1 rem), normal `--icon-md` (1,25 rem), groß `--icon-lg` (1,5 rem) |
|
||||||
|
| Farbe | `currentColor`; ein Icon erbt die Farbe seines Textes und folgt damit Theme und Zustand |
|
||||||
|
| Format | Inline-SVG oder Symbolsatz, kein Emoji und keine Pixelgrafik für Bedienelemente |
|
||||||
|
| Ausrichtung | mittig zur Textzeile, Abstand zum Text 0,4 bis 0,5 rem |
|
||||||
|
| Icon-Button | quadratisch, `--icon-button` (2 rem), 10 px Radius, Zustände wie sekundärer Button |
|
||||||
|
|
||||||
|
Regeln:
|
||||||
|
|
||||||
|
- **Mit Text:** Das Icon ist dekorativ (`aria-hidden="true"`); der Text trägt die Bedeutung.
|
||||||
|
- **Ohne Text (Icon-Button):** Der Button hat einen zugänglichen Namen (`aria-label`, der die Handlung nennt, etwa „Löschen“) und bei Hover und Fokus einen sichtbaren Hinweis (Tooltip). `title` allein genügt nicht. Die Klickfläche ist mindestens `--target-min`, empfohlen 2 rem.
|
||||||
|
- **Bedeutung:** Ein Icon ersetzt nie allein eine wichtige Aussage. Zustände wie Erfolg, Warnung, Fehler und Info tragen neben dem Icon immer einen Text. Das gilt auch für Farbunterschiede: Das Icon liefert die zweite, nicht-farbliche Markierung.
|
||||||
|
- **Eindeutigkeit:** Pro Bedeutung ein Icon im ganzen Produkt. Wenig bekannte Symbole erhalten dauerhaft ein Textlabel.
|
||||||
|
- **Zustandsicons:** Erfolg Haken, Warnung Dreieck mit Ausrufezeichen, Fehler Kreuz im Kreis, Info „i“ im Kreis; die Farbe folgt dem Zustandstoken.
|
||||||
|
|
||||||
### Leere, ladende und fehlerhafte Zustände
|
### Leere, ladende und fehlerhafte Zustände
|
||||||
|
|
||||||
Jede Ansicht, die Daten zeigt, hat vier Zustände: **laden**, **leer**, **Fehler** und **Inhalt**. Sie werden nicht ineinander gemischt: Ein Ladezustand erscheint nicht als leer, ein Fehler nicht als leer.
|
Jede Ansicht, die Daten zeigt, hat vier Zustände: **laden**, **leer**, **Fehler** und **Inhalt**. Sie werden nicht ineinander gemischt: Ein Ladezustand erscheint nicht als leer, ein Fehler nicht als leer.
|
||||||
|
|||||||
@ -146,6 +146,12 @@
|
|||||||
@media (prefers-reduced-motion: reduce) { .spinner, .skeleton i { animation: none; } }
|
@media (prefers-reduced-motion: reduce) { .spinner, .skeleton i { animation: none; } }
|
||||||
.state { border: 1px dashed var(--border-field); border-radius: var(--radius-card); padding: 1.2rem; text-align: center; color: var(--muted); display: grid; gap: .6rem; justify-items: center; }
|
.state { border: 1px dashed var(--border-field); border-radius: var(--radius-card); padding: 1.2rem; text-align: center; color: var(--muted); display: grid; gap: .6rem; justify-items: center; }
|
||||||
.state strong { color: var(--text); }
|
.state strong { color: var(--text); }
|
||||||
|
.icon { width: var(--icon-md); height: var(--icon-md); fill: none; stroke: currentColor; stroke-width: var(--icon-stroke); stroke-linecap: round; stroke-linejoin: round; flex: none; vertical-align: -.3em; }
|
||||||
|
.icon.sm { width: var(--icon-sm); height: var(--icon-sm); } .icon.lg { width: var(--icon-lg); height: var(--icon-lg); }
|
||||||
|
.iconbtn { display: inline-grid; place-items: center; width: var(--icon-button); height: var(--icon-button); padding: 0; border: 1px solid var(--border-field); border-radius: var(--radius-button); background: var(--surface-2); color: var(--text); cursor: pointer; transition: border-color var(--transition); }
|
||||||
|
.iconbtn:hover { border-color: var(--accent-strong); }
|
||||||
|
.btn .icon { margin-right: .45rem; }
|
||||||
|
.statusrow { display: flex; align-items: center; gap: .5rem; }
|
||||||
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); }
|
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); }
|
||||||
.tabs button { font: inherit; border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: none; padding: 6px 12px; color: var(--muted); cursor: pointer; }
|
.tabs button { font: inherit; border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: none; padding: 6px 12px; color: var(--muted); cursor: pointer; }
|
||||||
.tabs button[aria-selected="true"] { color: var(--text); border-bottom-color: var(--accent-strong); font-weight: 600; }
|
.tabs button[aria-selected="true"] { color: var(--text); border-bottom-color: var(--accent-strong); font-weight: 600; }
|
||||||
@ -190,6 +196,17 @@
|
|||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
<svg width="0" height="0" style="position:absolute" aria-hidden="true">
|
||||||
|
<symbol id="i-plus" viewBox="0 0 24 24"><path d="M12 5v14M5 12h14"/></symbol>
|
||||||
|
<symbol id="i-x" viewBox="0 0 24 24"><path d="M6 6l12 12M18 6L6 18"/></symbol>
|
||||||
|
<symbol id="i-check" viewBox="0 0 24 24"><path d="M5 12.5l4.5 4.5L19 7.5"/></symbol>
|
||||||
|
<symbol id="i-search" viewBox="0 0 24 24"><circle cx="11" cy="11" r="6"/><path d="M20 20l-4.2-4.2"/></symbol>
|
||||||
|
<symbol id="i-trash" viewBox="0 0 24 24"><path d="M4 7h16M10 11v6M14 11v6M6 7l1 12h10l1-12M9 7V4h6v3"/></symbol>
|
||||||
|
<symbol id="i-warn" viewBox="0 0 24 24"><path d="M12 4l9 16H3zM12 10v4M12 17.5v.01"/></symbol>
|
||||||
|
<symbol id="i-err" viewBox="0 0 24 24"><circle cx="12" cy="12" r="9"/><path d="M9 9l6 6M15 9l-6 6"/></symbol>
|
||||||
|
<symbol id="i-info" viewBox="0 0 24 24"><circle cx="12" cy="12" r="9"/><path d="M12 11v5M12 8v.01"/></symbol>
|
||||||
|
<symbol id="i-ok" viewBox="0 0 24 24"><circle cx="12" cy="12" r="9"/><path d="M8 12.5l3 3 5-6"/></symbol>
|
||||||
|
</svg>
|
||||||
<header class="bar">
|
<header class="bar">
|
||||||
<div class="in">
|
<div class="in">
|
||||||
<span class="wordmark">Style<b>guide</b> · Referenz</span>
|
<span class="wordmark">Style<b>guide</b> · Referenz</span>
|
||||||
@ -243,6 +260,32 @@
|
|||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
|
<section class="card">
|
||||||
|
<h2>Icons</h2>
|
||||||
|
<div class="row">
|
||||||
|
<svg class="icon sm" aria-hidden="true"><use href="#i-search"/></svg>
|
||||||
|
<svg class="icon" aria-hidden="true"><use href="#i-search"/></svg>
|
||||||
|
<svg class="icon lg" aria-hidden="true"><use href="#i-search"/></svg>
|
||||||
|
<small>1 rem · 1,25 rem · 1,5 rem</small>
|
||||||
|
</div>
|
||||||
|
<h3>Mit Text</h3>
|
||||||
|
<div class="row">
|
||||||
|
<button class="btn primary" type="button"><svg class="icon" aria-hidden="true"><use href="#i-plus"/></svg>Neu anlegen</button>
|
||||||
|
<button class="btn danger" type="button"><svg class="icon" aria-hidden="true"><use href="#i-trash"/></svg>Löschen</button>
|
||||||
|
</div>
|
||||||
|
<h3>Nur Icon (mit zugänglichem Namen)</h3>
|
||||||
|
<div class="row">
|
||||||
|
<button class="iconbtn" type="button" aria-label="Suchen" title="Suchen"><svg class="icon" aria-hidden="true"><use href="#i-search"/></svg></button>
|
||||||
|
<button class="iconbtn" type="button" aria-label="Hinzufügen" title="Hinzufügen"><svg class="icon" aria-hidden="true"><use href="#i-plus"/></svg></button>
|
||||||
|
<button class="iconbtn" type="button" aria-label="Schließen" title="Schließen"><svg class="icon" aria-hidden="true"><use href="#i-x"/></svg></button>
|
||||||
|
</div>
|
||||||
|
<h3>Zustände: Icon plus Text</h3>
|
||||||
|
<div class="statusrow" style="color:var(--ok)"><svg class="icon" aria-hidden="true"><use href="#i-ok"/></svg><span>Erfolg: Gespeichert</span></div>
|
||||||
|
<div class="statusrow" style="color:var(--warn)"><svg class="icon" aria-hidden="true"><use href="#i-warn"/></svg><span>Warnung: Verbindung langsam</span></div>
|
||||||
|
<div class="statusrow" style="color:var(--danger)"><svg class="icon" aria-hidden="true"><use href="#i-err"/></svg><span>Fehler: Nicht gespeichert</span></div>
|
||||||
|
<div class="statusrow" style="color:var(--info)"><svg class="icon" aria-hidden="true"><use href="#i-info"/></svg><span>Info: 12 Einträge</span></div>
|
||||||
|
</section>
|
||||||
|
|
||||||
<section class="card">
|
<section class="card">
|
||||||
<h2>Lade-, Leer- und Fehlerzustände</h2>
|
<h2>Lade-, Leer- und Fehlerzustände</h2>
|
||||||
<div class="grid" style="grid-template-columns:repeat(auto-fit,minmax(14rem,1fr))">
|
<div class="grid" style="grid-template-columns:repeat(auto-fit,minmax(14rem,1fr))">
|
||||||
|
|||||||
@ -145,6 +145,11 @@
|
|||||||
--switch-height: 1.3rem;
|
--switch-height: 1.3rem;
|
||||||
--target-min: 24px;
|
--target-min: 24px;
|
||||||
--spinner-size: 1.25rem;
|
--spinner-size: 1.25rem;
|
||||||
|
--icon-sm: 1rem;
|
||||||
|
--icon-md: 1.25rem;
|
||||||
|
--icon-lg: 1.5rem;
|
||||||
|
--icon-stroke: 1.5;
|
||||||
|
--icon-button: 2rem;
|
||||||
--skeleton-radius: 6px;
|
--skeleton-radius: 6px;
|
||||||
|
|
||||||
--backdrop: rgba(0, 0, 0, .5);
|
--backdrop: rgba(0, 0, 0, .5);
|
||||||
|
|||||||
Reference in New Issue
Block a user