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:
Bkk1234 committed 2026-11-04 01:29:37 +07:00
1 parent bea8f0773e
commit cdfd77ffff
18 files changed
+742 -329

No files matched your search

+8 -8
View File
@@ -10,7 +10,7 @@
.mu-hero-lead {
margin: 14px auto 0;
max-width: 640px;
color: #5b3b71;
color: var(--c-ink-2);
font-size: .95rem;
}
@@ -26,7 +26,7 @@
gap: 14px;
}
.mu-stop-card {
background: #fff;
background: var(--c-surface);
border-radius: 16px;
overflow: hidden;
box-shadow: 0 4px 14px rgba(20, 40, 90, .06);
@@ -58,7 +58,7 @@
gap: 6px;
padding: 5px 12px;
border-radius: 999px;
background: rgba(255, 255, 255, .24);
background: var(--c-glass-24);
font-size: .74rem;
font-weight: 700;
white-space: nowrap;
@@ -70,9 +70,9 @@
.mu-stop-card[open] > summary .mu-stop-chevron { transform: rotate(180deg); }
.mu-stop-body { padding: 16px; }
.mu-stop-sub { font-weight: 700; color: #1f2a44; margin: 0 0 10px; font-size: .9rem; }
.mu-stop-sub { font-weight: 700; color: var(--c-ink); margin: 0 0 10px; font-size: .9rem; }
.mu-direction-tag {
background: #7a4cc0;
background: var(--c-brand);
color: #fff;
border-radius: 999px;
padding: 3px 10px;
@@ -85,7 +85,7 @@
padding: 6px 12px;
border-radius: 10px;
background: #f1f4fb;
color: #2b2f42;
color: var(--c-ink);
font-weight: 700;
font-size: .85rem;
border: 1px solid #e6eaf3;
@@ -99,11 +99,11 @@
}
.mu-schedule-note {
color: #9a3b6e;
color: var(--c-danger);
font-size: .82rem;
margin: 12px 0 0;
padding: 8px 12px;
background: #fff5f9;
background: var(--c-tint-pink);
border-left: 3px solid #bb3a78;
border-radius: 8px;
display: flex;