Feldrahmen-Kontrast und Theme-Umschalter (v1.5)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-16 10:50:14 +01:00
parent b765701451
commit 2bc650e970
5 changed files with 68 additions and 11 deletions

View File

@ -14,7 +14,7 @@ The guide is meant to be the shared design foundation for all of the owner's app
- The document deliberately separates three kinds of statements. Preserve this distinction when editing:
- **Ausgangsbasis**: documented values taken from Nexus (colors, radii, spacing, type sizes).
- **Empfehlung**: marked recommendations for other products, not yet verified anywhere.
- **Offener Punkt**: explicitly unresolved issues, e.g. input-border contrast (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. Contrast ratios in section 4 are computed from the opaque token values, so recompute them if any color token changes.
- **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`).
- Version and date are in the header line ("Version 1.4 · 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.5 · Stand: 16.11.2026"; the README status line repeats the version); update it when making substantive changes.