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
@@ -2,18 +2,18 @@
|
||||
.mu-page { background: linear-gradient(180deg, #fcfbff 0%, #f5f9ff 100%); }
|
||||
.mu-credit-wrap { max-width: 46rem; margin: 0 auto; padding: 40px 28px 56px; }
|
||||
.mu-credit-hero { margin-bottom: 28px; }
|
||||
.mu-credit-hero h1 { margin: 0 0 8px; font-size: 1.9rem; color: #1f2a44; }
|
||||
.mu-credit-hero p { margin: 0; color: #66728f; }
|
||||
.mu-credit-hero h1 { margin: 0 0 8px; font-size: 1.9rem; color: var(--c-ink); }
|
||||
.mu-credit-hero p { margin: 0; color: var(--c-ink-2); }
|
||||
.mu-credit-section {
|
||||
background: #fff; border: 1px solid #e7e0f6; border-radius: 16px;
|
||||
background: var(--c-surface); border: 1px solid var(--c-border); border-radius: 16px;
|
||||
padding: 20px 22px; margin-bottom: 16px;
|
||||
}
|
||||
.mu-credit-section h2 { margin: 0 0 6px; font-size: 1.05rem; color: #1f2a44; }
|
||||
.mu-credit-section .src { margin: 0 0 12px; color: #6f7b95; font-size: .85rem; }
|
||||
.mu-credit-section ul { margin: 0; padding-left: 1.2rem; color: #3a4462; font-size: .92rem; line-height: 1.7; }
|
||||
.mu-credit-section code { background: #f5eeff; color: #7a4cc0; padding: 1px 6px; border-radius: 6px; font-size: .85em; }
|
||||
.mu-credit-section a { color: #7a4cc0; }
|
||||
.mu-license { margin: 14px 0 0; padding: 12px 14px; background: #f9f7ff; border-left: 3px solid #7a4cc0; border-radius: 8px; font-size: .85rem; color: #4a5573; line-height: 1.6; }
|
||||
.mu-credit-section h2 { margin: 0 0 6px; font-size: 1.05rem; color: var(--c-ink); }
|
||||
.mu-credit-section .src { margin: 0 0 12px; color: var(--c-ink-2); font-size: .85rem; }
|
||||
.mu-credit-section ul { margin: 0; padding-left: 1.2rem; color: var(--c-ink); font-size: .92rem; line-height: 1.7; }
|
||||
.mu-credit-section code { background: var(--c-brand-soft); color: var(--c-brand-ink); padding: 1px 6px; border-radius: 6px; font-size: .85em; }
|
||||
.mu-credit-section a { color: var(--c-brand-ink); }
|
||||
.mu-license { margin: 14px 0 0; padding: 12px 14px; background: var(--c-surface-2); border-left: 3px solid #7a4cc0; border-radius: 8px; font-size: .85rem; color: var(--c-ink-2); line-height: 1.6; }
|
||||
</style>
|
||||
|
||||
<main class="mu-page">
|
||||
|
||||
Reference in new issue
Block a user