Design: weisse Tokens, Aliase, Basis und Hilfsklassen, Systemschrift
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
bb110a734e
commit
2e82be3c1a
4 files changed
+64
-183
No files matched your search
+64
-87
@@ -1,14 +1,3 @@
|
||||
/* Lato vom eigenen Server statt von Google Fonts (DSGVO): Lato 1 mit denselben Abmessungen
|
||||
wie bei Google und wie bisher nur der normale Schnitt 400 (Fett rechnet der
|
||||
Browser). Lizenz: assets/fonts/OFL-Lato.txt */
|
||||
@font-face {
|
||||
font-family: 'Lato';
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
font-display: swap;
|
||||
src: url('../assets/fonts/lato-regular.ttf') format('truetype');
|
||||
}
|
||||
|
||||
* {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
@@ -16,94 +5,77 @@
|
||||
}
|
||||
|
||||
:root {
|
||||
/* Surfaces (calm dark) */
|
||||
--bg: #0e131a;
|
||||
--surface-1: #151b23;
|
||||
--surface-2: #1b2430;
|
||||
--surface-3: #222d3a;
|
||||
--surface-hover: #243040;
|
||||
--bg: #ffffff; --bg-hover: #f6f8fa; --bg-subtle: #f8f9fb;
|
||||
--text: #1a1f36; --text-2: #5e6678; --text-3: #8a93a3;
|
||||
--line: #ebeef1; --line-strong: #d8dde3;
|
||||
--accent: #111111; --accent-hover: #2b2b2b; --accent-ink: #111111;
|
||||
--accent-soft: rgba(17,17,17,.06); --accent-ring: rgba(17,17,17,.14);
|
||||
--grey-bg: #ebeef1; --grey-fg: #414552; --blue-bg: #e0f2fe; --blue-fg: #075985;
|
||||
--orange-bg: #fcedb9; --orange-fg: #a82c00; --violet-bg: #efeafe; --violet-fg: #5b21b6;
|
||||
--green-bg: #d7f7c2; --green-fg: #006908; --red-bg: #ffe7f2; --red-fg: #b3093c;
|
||||
--danger: #c0123c; --danger-ring: rgba(192,18,60,.18);
|
||||
--radius: 6px; --radius-lg: 12px;
|
||||
--ring: 0 0 0 1px rgba(60,66,87,.16), 0 1px 1px rgba(0,0,0,.06);
|
||||
--shadow-btn: 0 1px 1px rgba(0,0,0,.12), 0 2px 5px rgba(60,66,87,.08);
|
||||
--shadow-pop: 0 0 0 1px rgba(60,66,87,.06), 0 12px 32px rgba(26,31,54,.14), 0 2px 6px rgba(26,31,54,.06);
|
||||
--overlay: rgba(26,31,54,.32); --scrim: rgba(26,31,54,.24);
|
||||
--nav-dot: #e5a000;
|
||||
--appt-akquise: #fdf4e3; --appt-akquise-hover: #fbeccd; --appt-hover: #eef1f4;
|
||||
--sidebar-w: 232px;
|
||||
--font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
|
||||
|
||||
/* Borders / lines */
|
||||
--border: rgba(255, 255, 255, 0.08);
|
||||
--border-strong: rgba(255, 255, 255, 0.14);
|
||||
--border-accent: rgba(16, 185, 129, 0.35);
|
||||
|
||||
/* Text */
|
||||
--text: #e6edf3;
|
||||
--text-muted: #9aa7b4;
|
||||
--text-faint: #6b7785;
|
||||
|
||||
/* Accent */
|
||||
--accent: #10b981;
|
||||
--accent-2: #059669;
|
||||
--accent-soft: rgba(16, 185, 129, 0.14);
|
||||
|
||||
/* Semantic */
|
||||
--info: #3b82f6;
|
||||
--warn: #f59e0b;
|
||||
--danger: #ef4444;
|
||||
--ok: #10b981;
|
||||
|
||||
/* Spacing */
|
||||
/* Abstaende (unveraendert) */
|
||||
--sp-1: 4px; --sp-2: 8px; --sp-3: 12px;
|
||||
--sp-4: 16px; --sp-5: 24px; --sp-6: 32px;
|
||||
|
||||
/* Radius */
|
||||
--r-sm: 8px; --r-md: 12px; --r-lg: 16px; --r-pill: 999px;
|
||||
|
||||
/* Elevation */
|
||||
--shadow-1: 0 1px 2px rgba(0,0,0,0.3);
|
||||
--shadow-2: 0 4px 14px rgba(0,0,0,0.3);
|
||||
--shadow-3: 0 12px 32px rgba(0,0,0,0.4);
|
||||
|
||||
/* Legacy aliases (Rueckwaertskompatibilitaet) */
|
||||
--dark-bg: var(--bg);
|
||||
--dark-card-bg: var(--surface-2);
|
||||
--dark-text: var(--text);
|
||||
/* Alte Token-Namen als Aliase bis P10: Fremd-CSS und JSX nutzen sie noch, so wird Bestandscode sofort weiss. */
|
||||
--surface-1: var(--bg); --surface-3: var(--bg); --surface: var(--bg);
|
||||
--dark-bg: var(--bg); --dark-card-bg: var(--bg);
|
||||
--surface-2: var(--bg-hover); --surface-hover: var(--bg-hover);
|
||||
--border: var(--line); --gray-700: var(--line); --admin-line: var(--line);
|
||||
--border-strong: var(--line-strong); --admin-line-strong: var(--line-strong);
|
||||
--border-accent: var(--accent-ring);
|
||||
--text-muted: var(--text-2); --text-faint: var(--text-2); --gray-800: var(--text-2);
|
||||
--dark-text: var(--text); --gray-900: var(--text);
|
||||
--accent-2: var(--accent-hover); --green-secondary: var(--accent-hover);
|
||||
--green-primary: var(--accent);
|
||||
--green-secondary: var(--accent-2);
|
||||
--gray-700: #374151;
|
||||
--gray-800: #1f2937;
|
||||
--gray-900: #111827;
|
||||
|
||||
--sidebar-w: 248px;
|
||||
--info: var(--blue-fg);
|
||||
--warn: var(--orange-fg);
|
||||
--ok: var(--green-fg);
|
||||
--r-sm: var(--radius);
|
||||
--r-md: var(--radius-lg); --r-lg: var(--radius-lg);
|
||||
--r-pill: 4px;
|
||||
--shadow-1: none;
|
||||
--shadow-2: var(--shadow-btn);
|
||||
--shadow-3: var(--shadow-pop);
|
||||
/* Entfaellt laut Spec; bleibt bis zur Menue-Umstellung (P1 Task 5), weil .side.collapsed es noch nutzt. */
|
||||
--sidebar-w-collapsed: 72px;
|
||||
}
|
||||
|
||||
html { color-scheme: light; }
|
||||
|
||||
body {
|
||||
font-family: 'Lato', system-ui, -apple-system, sans-serif;
|
||||
background: radial-gradient(1200px 700px at 80% -10%, rgba(16,185,129,0.06), transparent 60%),
|
||||
radial-gradient(900px 600px at -10% 110%, rgba(59,130,246,0.05), transparent 55%),
|
||||
var(--bg);
|
||||
background-attachment: fixed;
|
||||
font-family: var(--font);
|
||||
font-size: 14px;
|
||||
line-height: 20px;
|
||||
color: var(--text);
|
||||
overflow: hidden;
|
||||
background: var(--bg);
|
||||
-webkit-font-smoothing: antialiased;
|
||||
}
|
||||
|
||||
/* Scrollbar Styling */
|
||||
::-webkit-scrollbar {
|
||||
width: 12px;
|
||||
}
|
||||
a { color: inherit; text-decoration: none; }
|
||||
a:not([class]) { text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
|
||||
a:not([class]):hover { text-decoration-color: currentColor; }
|
||||
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
|
||||
input, select, textarea { font: inherit; color: inherit; }
|
||||
:focus-visible { outline: 2px solid #111111; outline-offset: 2px; }
|
||||
:disabled { opacity: .55; cursor: not-allowed; }
|
||||
[readonly] { background: var(--bg-subtle); }
|
||||
|
||||
::-webkit-scrollbar-track {
|
||||
background: rgba(26, 32, 44, 0.5);
|
||||
}
|
||||
|
||||
::-webkit-scrollbar-thumb {
|
||||
background: var(--green-primary);
|
||||
border-radius: 6px;
|
||||
}
|
||||
|
||||
::-webkit-scrollbar-thumb:hover {
|
||||
background: var(--green-secondary);
|
||||
}
|
||||
|
||||
/* Text Selection */
|
||||
::selection {
|
||||
background: rgba(16, 185, 129, 0.3);
|
||||
color: white;
|
||||
}
|
||||
.link { color: var(--accent-ink); font-weight: 500; text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; text-decoration-thickness: 1px; }
|
||||
.link:hover { text-decoration-color: currentColor; }
|
||||
.link-danger { color: var(--danger); font-weight: 500; }
|
||||
.link-danger:hover { text-decoration: underline; text-underline-offset: 3px; }
|
||||
|
||||
/* Color Classes */
|
||||
.bg-dark-grey { background-color: #616161 !important; }
|
||||
@@ -1048,8 +1020,13 @@ textarea.form-control {
|
||||
.footer { background: var(--surface-1); border-top: 1px solid var(--border); padding: var(--sp-4); margin-top: 0; }
|
||||
|
||||
/* --- Utilities --- */
|
||||
.muted { color: var(--text-muted); }
|
||||
.faint { color: var(--text-faint); }
|
||||
.num { font-variant-numeric: tabular-nums; }
|
||||
.muted { color: var(--text-2); }
|
||||
.faint { color: var(--text-3); }
|
||||
.small { font-size: 13px; }
|
||||
.xs { font-size: 12px; line-height: 16px; }
|
||||
.strong { font-weight: 600; }
|
||||
.nowrap { white-space: nowrap; }
|
||||
.flex { display: flex; }
|
||||
.flex-col { display: flex; flex-direction: column; }
|
||||
.items-center { align-items: center; }
|
||||
|
||||
Reference in new issue
Block a user