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

+5 -5
View File
@@ -3,7 +3,7 @@
.mu-hero-lead {
margin: 14px auto 0;
max-width: 640px;
color: #5b3b71;
color: var(--c-ink-2);
font-size: .95rem;
}
@@ -15,7 +15,7 @@
grid-template-columns: 1fr;
gap: 16px;
align-items: center;
background: #fff;
background: var(--c-surface);
border: 1px solid #ebe8f4;
border-radius: 18px;
padding: 16px;
@@ -31,11 +31,11 @@
display: block;
box-shadow: 0 10px 24px rgba(63, 43, 94, .14);
}
.mu-about-block h2 { margin: 0 0 10px; font-size: 1.2rem; color: #1f2a44; font-weight: 800; line-height: 1.35; }
.mu-about-block p { margin: 0 0 10px; color: #4a5568; font-size: .95rem; line-height: 1.8; }
.mu-about-block h2 { margin: 0 0 10px; font-size: 1.2rem; color: var(--c-ink); font-weight: 800; line-height: 1.35; }
.mu-about-block p { margin: 0 0 10px; color: var(--c-ink-2); font-size: .95rem; line-height: 1.8; }
.mu-about-block p:last-child { margin-bottom: 0; }
.mu-about-skeleton { color: #6f7b95; font-size: .9rem; text-align: center; padding: 18px 0; }
.mu-about-skeleton { color: var(--c-ink-2); font-size: .9rem; text-align: center; padding: 18px 0; }
.mu-about-skel-card { height: 180px; border-radius: 18px; background: linear-gradient(90deg, #f4f2fa 25%, #ece8f6 37%, #f4f2fa 63%); background-size: 400% 100%; animation: muSkel 1.4s ease infinite; }
@keyframes muSkel { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }