Files
stylguide/tokens.css

115 lines
2.9 KiB
CSS

/*
* Design-Tokens des Styleguides (siehe STYLEGUIDE.md, Version 1).
* Dunkel ist der Fallback, Hell gilt bei entsprechender Systemeinstellung.
* Eine bewusste Auswahl lässt sich über data-theme="dark" | "light" am <html>-Element erzwingen.
* Quelle der Werte ist STYLEGUIDE.md; beide Dateien gemeinsam ändern.
*/
/* Dunkel (Fallback) */
:root {
color-scheme: dark;
--bg: #0f1115;
--surface: #181b21;
--surface-2: #222630;
--text: #eceff4;
--muted: #9099a8;
--border: #2b303a;
--accent: #ff9b45;
--accent-strong: #ff9b45;
--accent-soft: rgba(255, 155, 69, .14);
--accent-text: #1a1005;
--ok: #6fd18a;
--warn: #ffcf5c;
--danger: #ff7b72;
--bg-glow: rgba(255, 155, 69, .10);
--shadow: 0 6px 24px rgba(0, 0, 0, .35);
}
/* Hell bei Systemeinstellung, sofern nicht bewusst Dunkel gewählt wurde */
@media (prefers-color-scheme: light) {
:root:not([data-theme="dark"]) {
color-scheme: light;
--bg: #f6f3ef;
--surface: #ffffff;
--surface-2: #f0ebe4;
--text: #1d1a17;
--muted: #6b645c;
--border: #e2dbd2;
--accent: #f08a2c;
--accent-strong: #a8530a;
--accent-soft: rgba(240, 138, 44, .14);
--accent-text: #ffffff;
--ok: #217346;
--warn: #8a6100;
--danger: #c0392b;
--bg-glow: rgba(255, 155, 69, .16);
--shadow: 0 6px 20px rgba(60, 40, 20, .10);
}
}
/* Hell bei bewusster Auswahl */
:root[data-theme="light"] {
color-scheme: light;
--bg: #f6f3ef;
--surface: #ffffff;
--surface-2: #f0ebe4;
--text: #1d1a17;
--muted: #6b645c;
--border: #e2dbd2;
--accent: #f08a2c;
--accent-strong: #a8530a;
--accent-soft: rgba(240, 138, 44, .14);
--accent-text: #ffffff;
--ok: #217346;
--warn: #8a6100;
--danger: #c0392b;
--bg-glow: rgba(255, 155, 69, .16);
--shadow: 0 6px 20px rgba(60, 40, 20, .10);
}
/* Themeunabhängig: Typografie, Radien, Layout, Bewegung */
:root {
--font-sans: Inter, "Segoe UI", system-ui, -apple-system, sans-serif;
--font-mono: ui-monospace, "JetBrains Mono", Menlo, monospace;
--font-size-base: 15px;
--line-height-base: 1.5;
--line-height-heading: 1.25;
--font-size-page-title: 1.5rem;
--font-size-page-title-compact: 1.3rem;
--font-size-section-title: 1.1rem;
--font-size-wordmark: 1.1rem;
--font-size-wordmark-large: 1.5rem;
--font-size-small: 0.8rem;
--font-size-table-head: 0.75rem;
--font-size-metric: 1.6rem;
--radius-card: 14px;
--radius-metric: 12px;
--radius-button: 10px;
--radius-field: 8px;
--radius-pill: 999px;
--content-max: 76rem;
--content-gutter: 1rem;
--card-pad-y: 1.1rem;
--card-pad-x: 1.3rem;
--card-gap: 1.1rem;
--login-max: 28rem;
--breakpoint-compact: 40rem; /* nur zur Dokumentation; in @media als Literal verwenden */
--transition: 0.12s;
--focus-ring: 2px solid var(--accent-strong);
--focus-offset: 2px;
}
/* Sichtbarer Tastaturfokus für alle bedienbaren Elemente */
:focus-visible {
outline: var(--focus-ring);
outline-offset: var(--focus-offset);
}