Commit 9c89808
Add toggleable dark theme + reduced-motion guard to CommunityMech site
Additive dark-mode sweep across all reviewed pages (landing, browser,
UMAP/graph, and 265 per-community pages) plus the shared style.css.
- Vendor theme-toggle.js at web root (docs/); OS prefers-color-scheme
default + persisted data-theme toggle. Included on every reviewed page
(root: theme-toggle.js; communities/*: ../theme-toggle.js).
- Per-page dark blocks redefine each page's own tokens by role using the
CommunityMech slate palette (bg #101420, surface #1a1f2e, ink #e8ecf4,
muted #99a2b5, line #2a3142, accent #6ea6f0, hero #1d2740; brightened
status colors). Both @media (prefers-color-scheme: dark) and
:root[data-theme="dark"] variants; OS default yields to explicit light.
- Landing: map --pastel-b->bg, --pastel-a->hero; dark translucent stat/
footer surfaces; accent buttons get dark text.
- Browser (token-less): targeted dark overrides for the specific selectors.
- UMAP/graph: plot bg -> --surface, .point stroke -> --surface, legend
symbol stroke driven from --point-stroke var.
- Community network: label fills driven from --net-label var; plot bg
follows --card; dark chip/box tints.
- Reduced-motion guard added to every page and style.css.
Edited templates AND every generated output identically (no re-render),
so template and docs stay in sync. Light appearance unchanged.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent 88fc4bc commit 9c89808
275 files changed
Lines changed: 7264 additions & 800 deletions
File tree
- docs
- communities
- src/communitymech/templates
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
413 | 413 | | |
414 | 414 | | |
415 | 415 | | |
416 | | - | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
417 | 493 | | |
418 | 494 | | |
419 | 495 | | |
| |||
9155 | 9231 | | |
9156 | 9232 | | |
9157 | 9233 | | |
| 9234 | + | |
9158 | 9235 | | |
9159 | 9236 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
342 | 342 | | |
343 | 343 | | |
344 | 344 | | |
345 | | - | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
346 | 368 | | |
347 | 369 | | |
348 | 370 | | |
| |||
2014 | 2036 | | |
2015 | 2037 | | |
2016 | 2038 | | |
2017 | | - | |
| 2039 | + | |
2018 | 2040 | | |
2019 | 2041 | | |
2020 | 2042 | | |
2021 | 2043 | | |
2022 | 2044 | | |
2023 | 2045 | | |
2024 | 2046 | | |
2025 | | - | |
| 2047 | + | |
2026 | 2048 | | |
2027 | 2049 | | |
2028 | 2050 | | |
| |||
2140 | 2162 | | |
2141 | 2163 | | |
2142 | 2164 | | |
| 2165 | + | |
2143 | 2166 | | |
2144 | 2167 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
342 | 342 | | |
343 | 343 | | |
344 | 344 | | |
345 | | - | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
346 | 368 | | |
347 | 369 | | |
348 | 370 | | |
| |||
1768 | 1790 | | |
1769 | 1791 | | |
1770 | 1792 | | |
1771 | | - | |
| 1793 | + | |
1772 | 1794 | | |
1773 | 1795 | | |
1774 | 1796 | | |
1775 | 1797 | | |
1776 | 1798 | | |
1777 | 1799 | | |
1778 | 1800 | | |
1779 | | - | |
| 1801 | + | |
1780 | 1802 | | |
1781 | 1803 | | |
1782 | 1804 | | |
| |||
1894 | 1916 | | |
1895 | 1917 | | |
1896 | 1918 | | |
| 1919 | + | |
1897 | 1920 | | |
1898 | 1921 | | |
Lines changed: 26 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
342 | 342 | | |
343 | 343 | | |
344 | 344 | | |
345 | | - | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
346 | 368 | | |
347 | 369 | | |
348 | 370 | | |
| |||
1045 | 1067 | | |
1046 | 1068 | | |
1047 | 1069 | | |
1048 | | - | |
| 1070 | + | |
1049 | 1071 | | |
1050 | 1072 | | |
1051 | 1073 | | |
1052 | 1074 | | |
1053 | 1075 | | |
1054 | 1076 | | |
1055 | 1077 | | |
1056 | | - | |
| 1078 | + | |
1057 | 1079 | | |
1058 | 1080 | | |
1059 | 1081 | | |
| |||
1171 | 1193 | | |
1172 | 1194 | | |
1173 | 1195 | | |
| 1196 | + | |
1174 | 1197 | | |
1175 | 1198 | | |
Lines changed: 26 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
342 | 342 | | |
343 | 343 | | |
344 | 344 | | |
345 | | - | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
346 | 368 | | |
347 | 369 | | |
348 | 370 | | |
| |||
1240 | 1262 | | |
1241 | 1263 | | |
1242 | 1264 | | |
1243 | | - | |
| 1265 | + | |
1244 | 1266 | | |
1245 | 1267 | | |
1246 | 1268 | | |
1247 | 1269 | | |
1248 | 1270 | | |
1249 | 1271 | | |
1250 | 1272 | | |
1251 | | - | |
| 1273 | + | |
1252 | 1274 | | |
1253 | 1275 | | |
1254 | 1276 | | |
| |||
1366 | 1388 | | |
1367 | 1389 | | |
1368 | 1390 | | |
| 1391 | + | |
1369 | 1392 | | |
1370 | 1393 | | |
0 commit comments