theme: dark mode + theme tokens (parity with web-at-transit)
- ui/theme.css: token set copied value-for-value from the Next app (--c-surface/-ink/-border/-brand/-tint/-glass + radius), light and dark blocks - ui/theme.js: 3-mode switch (light / dark / auto=prefers-color-scheme) with a header dropdown, aria-haspopup/menu, Esc/outside close, live matchMedia listener - index.html: pre-paint theme script (no flash), theme.css link before _shared.css - remapped ~290 literal colours in _shared.css/index.html/partials to var(--c-*) so both projects render from the same tokens; dark patch block covers the remaining decorative gradients - DESIGN.md: new section 3.2 (theme tokens + where to add colours) - VERSION 2026.09.27.114
This commit is contained in:
1 parent
bea8f0773e
commit
cdfd77ffff
18 files changed
+742
-329
No files matched your search
+26
-26
@@ -2,17 +2,17 @@
|
||||
.mu-page { background: linear-gradient(180deg, #fcfbff 0%, #f5f9ff 100%); }
|
||||
.st-wrap { max-width: 62rem; margin: 0 auto; padding: 32px 20px 64px; }
|
||||
.st-hero { margin-bottom: 22px; }
|
||||
.st-hero h1 { margin: 0 0 8px; font-size: clamp(1.5rem, 1.2rem + 1.4vw, 1.9rem); color: #1f2a44; letter-spacing: -.01em; }
|
||||
.st-hero p { margin: 0; color: #66728f; font-size: .92rem; line-height: 1.65; max-width: 62ch; }
|
||||
.st-hero h1 { margin: 0 0 8px; font-size: clamp(1.5rem, 1.2rem + 1.4vw, 1.9rem); color: var(--c-ink); letter-spacing: -.01em; }
|
||||
.st-hero p { margin: 0; color: var(--c-ink-2); font-size: .92rem; line-height: 1.65; max-width: 62ch; }
|
||||
|
||||
.st-kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
|
||||
.st-kpi { background: #fff; border: 1px solid #e7e0f6; border-radius: 14px; padding: 14px 16px; min-width: 0; }
|
||||
.st-kpi b { display: block; font-size: 1.55rem; line-height: 1.2; color: #1f2a44; font-variant-numeric: tabular-nums; }
|
||||
.st-kpi span { display: block; margin-top: 4px; font-size: .76rem; font-weight: 700; color: #6f7b95; letter-spacing: .01em; }
|
||||
.st-kpi { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: 14px; padding: 14px 16px; min-width: 0; }
|
||||
.st-kpi b { display: block; font-size: 1.55rem; line-height: 1.2; color: var(--c-ink); font-variant-numeric: tabular-nums; }
|
||||
.st-kpi span { display: block; margin-top: 4px; font-size: .76rem; font-weight: 700; color: var(--c-ink-2); letter-spacing: .01em; }
|
||||
|
||||
.st-card { background: #fff; border: 1px solid #e7e0f6; border-radius: 16px; padding: 18px 20px; margin-top: 16px; }
|
||||
.st-card h2 { margin: 0 0 4px; font-size: 1rem; color: #1f2a44; }
|
||||
.st-card .lead { margin: 0 0 14px; color: #6f7b95; font-size: .84rem; line-height: 1.6; }
|
||||
.st-card { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: 16px; padding: 18px 20px; margin-top: 16px; }
|
||||
.st-card h2 { margin: 0 0 4px; font-size: 1rem; color: var(--c-ink); }
|
||||
.st-card .lead { margin: 0 0 14px; color: var(--c-ink-2); font-size: .84rem; line-height: 1.6; }
|
||||
.st-grid2 { display: grid; gap: 16px; margin-top: 16px; }
|
||||
.st-grid2 > .st-card { margin-top: 0; }
|
||||
|
||||
@@ -22,35 +22,35 @@
|
||||
.st-bar i, .st-bar u { display: block; border-radius: 4px 4px 0 0; min-height: 2px; }
|
||||
.st-bar i { background: linear-gradient(180deg, #b694f6, #7a4cc0); }
|
||||
.st-bar u { background: #e9dffb; }
|
||||
.st-bar em { font-style: normal; font-size: .6rem; color: #8a93a8; text-align: center; margin-top: 4px; white-space: nowrap; }
|
||||
.st-legend { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 12px; font-size: .76rem; color: #6f7b95; }
|
||||
.st-bar em { font-style: normal; font-size: .6rem; color: var(--c-ink-3); text-align: center; margin-top: 4px; white-space: nowrap; }
|
||||
.st-legend { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 12px; font-size: .76rem; color: var(--c-ink-2); }
|
||||
.st-legend b { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
|
||||
|
||||
.st-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
|
||||
.st-table th { text-align: left; padding: 0 8px 6px 0; font-size: .7rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: #8a93a8; border-bottom: 1px solid #efe9fb; }
|
||||
.st-table td { padding: 8px 8px 8px 0; border-bottom: 1px solid #f5f1fc; color: #3a4462; vertical-align: top; }
|
||||
.st-table th { text-align: left; padding: 0 8px 6px 0; font-size: .7rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--c-ink-3); border-bottom: 1px solid #efe9fb; }
|
||||
.st-table td { padding: 8px 8px 8px 0; border-bottom: 1px solid #f5f1fc; color: var(--c-ink); vertical-align: top; }
|
||||
.st-table tr:last-child td { border-bottom: 0; }
|
||||
.st-table .num { width: 3.5rem; text-align: right; font-variant-numeric: tabular-nums; font-weight: 800; color: #1f2a44; }
|
||||
.st-table .when { color: #8a93a8; font-size: .74rem; white-space: nowrap; }
|
||||
.st-table .term { font-weight: 700; color: #1f2a44; word-break: break-word; }
|
||||
.st-table a { color: #7a4cc0; text-decoration: none; font-weight: 600; }
|
||||
.st-table .num { width: 3.5rem; text-align: right; font-variant-numeric: tabular-nums; font-weight: 800; color: var(--c-ink); }
|
||||
.st-table .when { color: var(--c-ink-3); font-size: .74rem; white-space: nowrap; }
|
||||
.st-table .term { font-weight: 700; color: var(--c-ink); word-break: break-word; }
|
||||
.st-table a { color: var(--c-brand-ink); text-decoration: none; font-weight: 600; }
|
||||
.st-table a:hover { text-decoration: underline; }
|
||||
|
||||
.st-empty { margin: 0; padding: 14px 0 4px; color: #8a93a8; font-size: .86rem; }
|
||||
.st-empty { margin: 0; padding: 14px 0 4px; color: var(--c-ink-3); font-size: .86rem; }
|
||||
|
||||
.st-list { margin: 0 0 14px; padding-left: 1.15rem; color: #3a4462; font-size: .88rem; line-height: 1.75; }
|
||||
.st-toggle { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 1px solid #e7e0f6; border-radius: 12px; background: #fbf9ff; font-size: .88rem; color: #3a4462; cursor: pointer; }
|
||||
.st-toggle input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: #7a4cc0; flex: none; }
|
||||
.st-toggle strong { display: block; color: #1f2a44; font-size: .9rem; margin-bottom: 2px; }
|
||||
.st-list { margin: 0 0 14px; padding-left: 1.15rem; color: var(--c-ink); font-size: .88rem; line-height: 1.75; }
|
||||
.st-toggle { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--c-border); border-radius: 12px; background: #fbf9ff; font-size: .88rem; color: var(--c-ink); cursor: pointer; }
|
||||
.st-toggle input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--c-brand-ink); flex: none; }
|
||||
.st-toggle strong { display: block; color: var(--c-ink); font-size: .9rem; margin-bottom: 2px; }
|
||||
.st-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
|
||||
.st-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 9px 16px; border-radius: 10px; border: 1px solid #ddcff5; background: #fff; color: #7a4cc0; font: inherit; font-size: .86rem; font-weight: 700; cursor: pointer; }
|
||||
.st-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 9px 16px; border-radius: 10px; border: 1px solid #ddcff5; background: var(--c-surface); color: var(--c-brand-ink); font: inherit; font-size: .86rem; font-weight: 700; cursor: pointer; }
|
||||
.st-btn:hover { background: #f7f2ff; }
|
||||
.st-btn.is-solid { background: #7a4cc0; border-color: #7a4cc0; color: #fff; }
|
||||
.st-btn.is-solid { background: var(--c-brand); border-color: var(--c-brand); color: #fff; }
|
||||
.st-btn.is-solid:hover { background: #6a3fb0; }
|
||||
.st-btn.is-danger { border-color: #f0c9c9; color: #b3261e; }
|
||||
.st-btn.is-danger { border-color: #f0c9c9; color: var(--c-danger); }
|
||||
.st-btn.is-danger:hover { background: #fdf3f3; }
|
||||
.st-note { margin: 12px 0 0; font-size: .78rem; color: #8a93a8; }
|
||||
.st-status { margin: 10px 0 0; min-height: 18px; font-size: .82rem; color: #1f7a3d; }
|
||||
.st-note { margin: 12px 0 0; font-size: .78rem; color: var(--c-ink-3); }
|
||||
.st-status { margin: 10px 0 0; min-height: 18px; font-size: .82rem; color: var(--c-ok); }
|
||||
|
||||
@media (min-width: 520px) { .st-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
|
||||
@media (min-width: 768px) { .st-grid2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .st-wrap { padding: 40px 28px 72px; } }
|
||||
|
||||
Reference in new issue
Block a user