@takazudo/zudo-doc 3.3.0 → 4.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (417) hide show
  1. package/CHANGELOG.md +32 -0
  2. package/README.md +2 -2
  3. package/bin/tag-cli-config.ts +126 -0
  4. package/bin/tags-audit-runner.ts +60 -76
  5. package/bin/tags-audit.mjs +17 -36
  6. package/bin/tags-suggest-runner.ts +429 -0
  7. package/bin/tags-suggest.mjs +30 -0
  8. package/bin/zudo-doc.mjs +78 -25
  9. package/dist/breadcrumb/breadcrumb.d.ts +4 -4
  10. package/dist/breadcrumb/find-path.d.ts +2 -2
  11. package/dist/breadcrumb/index.d.ts +1 -1
  12. package/dist/breadcrumb/types.d.ts +0 -5
  13. package/dist/chrome/derive.d.ts +16 -10
  14. package/dist/chrome/derive.js +53 -4
  15. package/dist/chrome/index.d.ts +13 -10
  16. package/dist/chrome/index.js +12 -6
  17. package/dist/chrome/primary-slots.d.ts +21 -0
  18. package/dist/chrome/primary-slots.js +59 -0
  19. package/dist/chrome-bindings.d.ts +68 -0
  20. package/dist/code-syntax/code-block-enhancer-script.d.ts +4 -0
  21. package/dist/code-syntax/code-block-enhancer-script.js +7 -4
  22. package/dist/code-syntax/code-block-enhancer.d.ts +2 -2
  23. package/dist/code-syntax/code-block-enhancer.js +1 -3
  24. package/dist/code-syntax/index.d.ts +5 -5
  25. package/dist/code-syntax/index.js +4 -13
  26. package/dist/code-syntax/mermaid-init-script.d.ts +1 -22
  27. package/dist/code-syntax/mermaid-init-script.js +0 -2
  28. package/dist/code-syntax/mermaid-init.d.ts +0 -1
  29. package/dist/code-syntax/mermaid-init.js +3 -4
  30. package/dist/code-syntax/tabs-init.d.ts +0 -1
  31. package/dist/code-syntax/tabs-init.js +1 -3
  32. package/dist/code-syntax/tabs.d.ts +0 -1
  33. package/dist/code-syntax/tabs.js +1 -3
  34. package/dist/color-scheme-utils.d.ts +71 -3
  35. package/dist/color-scheme-utils.js +137 -0
  36. package/dist/color-schemes-defaults/index.js +13 -0
  37. package/dist/config.d.ts +28 -12
  38. package/dist/config.js +11 -2
  39. package/dist/content/component-map.d.ts +0 -16
  40. package/dist/content/component-map.js +2 -4
  41. package/dist/content/index.d.ts +1 -1
  42. package/dist/content/index.js +2 -3
  43. package/dist/content.css +1 -1
  44. package/dist/design-token-panel-bootstrap.d.ts +45 -40
  45. package/dist/design-token-panel-bootstrap.js +98 -21
  46. package/dist/design-token-panel-config/index.js +1 -4
  47. package/dist/doc-body-end-islands/design-token-panel-island.d.ts +15 -0
  48. package/dist/doc-body-end-islands/design-token-panel-island.js +31 -0
  49. package/dist/doc-body-end-islands/index.d.ts +39 -17
  50. package/dist/doc-body-end-islands/index.js +13 -21
  51. package/dist/doc-body-end-islands/theme-pack-switcher-island.d.ts +37 -0
  52. package/dist/doc-body-end-islands/theme-pack-switcher-island.js +18 -0
  53. package/dist/doc-content-header/index.js +1 -1
  54. package/dist/doc-history-area/index.d.ts +10 -4
  55. package/dist/doc-history-area/index.js +3 -2
  56. package/dist/doc-metainfo-area/index.d.ts +1 -0
  57. package/dist/doc-page-props/index.d.ts +7 -23
  58. package/dist/doc-page-renderer/index.d.ts +1 -0
  59. package/dist/doc-page-renderer/index.js +1 -0
  60. package/dist/doc-page-shell/index.js +19 -12
  61. package/dist/doc-pager/index.js +1 -1
  62. package/dist/doc-route-entries/index.d.ts +2 -2
  63. package/dist/doclayout/doc-layout-with-defaults.js +4 -4
  64. package/dist/doclayout/doc-layout.d.ts +8 -0
  65. package/dist/doclayout/doc-layout.js +10 -1
  66. package/dist/docs-schema/index.js +1 -5
  67. package/dist/eject/index.d.ts +16 -0
  68. package/dist/eject/index.js +122 -28
  69. package/dist/extract-headings/index.d.ts +5 -8
  70. package/dist/extract-headings/index.js +2 -9
  71. package/dist/factory-context/index.d.ts +42 -4
  72. package/dist/features.css +55 -43
  73. package/dist/footer/footer.js +1 -0
  74. package/dist/head-with-defaults/index.d.ts +2 -0
  75. package/dist/head-with-defaults/index.js +16 -0
  76. package/dist/header/header.d.ts +10 -5
  77. package/dist/header/header.js +45 -5
  78. package/dist/header/index.d.ts +1 -1
  79. package/dist/header/types.d.ts +30 -1
  80. package/dist/header-with-defaults/index.js +1 -0
  81. package/dist/home-page/index.d.ts +2 -0
  82. package/dist/home-page/index.js +11 -5
  83. package/dist/home-page/prepare-home-data.js +1 -1
  84. package/dist/locale-merge/index.d.ts +9 -14
  85. package/dist/locale-merge/index.js +6 -4
  86. package/dist/mdx-components/index.js +4 -4
  87. package/dist/plugins/claude-resources.d.ts +1 -0
  88. package/dist/plugins/claude-resources.js +4 -2
  89. package/dist/plugins/doc-history.js +1 -1
  90. package/dist/{integrations → plugins/internal}/claude-resources/index.d.ts +1 -16
  91. package/dist/{integrations → plugins/internal}/claude-resources/index.js +0 -9
  92. package/dist/{integrations → plugins/internal}/doc-history/index.d.ts +0 -17
  93. package/dist/{integrations → plugins/internal}/doc-history/index.js +0 -4
  94. package/dist/{integrations → plugins/internal}/doc-history/pre-build.d.ts +2 -4
  95. package/dist/plugins/internal/llms-txt/index.d.ts +7 -0
  96. package/dist/{integrations → plugins/internal}/llms-txt/load.d.ts +1 -1
  97. package/dist/{integrations → plugins/internal}/llms-txt/load.js +2 -2
  98. package/dist/{integrations → plugins/internal}/llms-txt/strip.d.ts +2 -3
  99. package/dist/{integrations → plugins/internal}/llms-txt/strip.js +1 -1
  100. package/dist/{integrations → plugins/internal}/llms-txt/types.d.ts +13 -22
  101. package/dist/{integrations → plugins/internal}/search-index/collect.js +1 -1
  102. package/dist/plugins/internal/theme-packs/copy.d.ts +32 -0
  103. package/dist/plugins/internal/theme-packs/copy.js +45 -0
  104. package/dist/plugins/internal/theme-packs/dev-middleware.d.ts +22 -0
  105. package/dist/plugins/internal/theme-packs/dev-middleware.js +80 -0
  106. package/dist/plugins/internal/theme-packs/index.d.ts +6 -0
  107. package/dist/plugins/internal/theme-packs/index.js +9 -0
  108. package/dist/plugins/internal/theme-packs/resolve.d.ts +17 -0
  109. package/dist/plugins/internal/theme-packs/resolve.js +17 -0
  110. package/dist/plugins/internal/theme-packs/types.d.ts +22 -0
  111. package/dist/plugins/internal/theme-packs/types.js +0 -0
  112. package/dist/plugins/llms-txt.js +1 -1
  113. package/dist/plugins/routes.js +11 -1
  114. package/dist/plugins/search-index.js +1 -1
  115. package/dist/plugins/theme-packs.d.ts +3 -0
  116. package/dist/plugins/theme-packs.js +40 -0
  117. package/dist/preset.d.ts +19 -14
  118. package/dist/preset.js +24 -9
  119. package/dist/route-context/index.js +4 -6
  120. package/dist/route-enumerators/index.d.ts +6 -18
  121. package/dist/route-enumerators/index.js +8 -6
  122. package/dist/routes/404.js +3 -1
  123. package/dist/routes/_chrome.js +2 -2
  124. package/dist/routes/_context.d.ts +7 -3
  125. package/dist/routes/_context.js +2 -0
  126. package/dist/routes/_docs-helpers.js +9 -21
  127. package/dist/safelist.css +1 -1
  128. package/dist/settings.d.ts +27 -12
  129. package/dist/sidebar-tree/build-tree.d.ts +3 -4
  130. package/dist/sidebar-tree/build-tree.js +4 -3
  131. package/dist/sidebar-tree/index.d.ts +2 -2
  132. package/dist/sidebar-tree/types.d.ts +6 -17
  133. package/dist/site-tree-nav-island/index.d.ts +3 -1
  134. package/dist/site-tree-nav-island/index.js +17 -5
  135. package/dist/site-tree-nav-island/state.d.ts +4 -0
  136. package/dist/site-tree-nav-island/state.js +10 -0
  137. package/dist/tag-helpers/index.d.ts +6 -13
  138. package/dist/tag-helpers/index.js +5 -23
  139. package/dist/tag-pages/index.d.ts +8 -21
  140. package/dist/tag-pages/index.js +14 -10
  141. package/dist/tags-audit.d.ts +16 -44
  142. package/dist/tags-audit.js +9 -172
  143. package/dist/theme/color-scheme-provider.d.ts +2 -3
  144. package/dist/theme/color-scheme-provider.js +2 -10
  145. package/dist/theme/index.d.ts +1 -4
  146. package/dist/theme/index.js +2 -30
  147. package/dist/theme/theme-pack-provider.d.ts +42 -0
  148. package/dist/theme/theme-pack-provider.js +75 -0
  149. package/dist/theme-cli/apply.d.ts +16 -0
  150. package/dist/theme-cli/apply.js +61 -0
  151. package/dist/theme-cli/config-io.d.ts +15 -0
  152. package/dist/theme-cli/config-io.js +51 -0
  153. package/dist/theme-cli/config-rewriter.d.ts +21 -0
  154. package/dist/theme-cli/config-rewriter.js +141 -0
  155. package/dist/theme-cli/config-scanner.d.ts +63 -0
  156. package/dist/theme-cli/config-scanner.js +288 -0
  157. package/dist/theme-cli/index.d.ts +7 -0
  158. package/dist/theme-cli/index.js +38 -0
  159. package/dist/theme-cli/list.d.ts +27 -0
  160. package/dist/theme-cli/list.js +64 -0
  161. package/dist/theme-cli/provenance.d.ts +17 -0
  162. package/dist/theme-cli/provenance.js +35 -0
  163. package/dist/theme-cli/registry.d.ts +14 -0
  164. package/dist/theme-cli/registry.js +13 -0
  165. package/dist/theme-pack-dialog/dialog-state.d.ts +25 -0
  166. package/dist/theme-pack-dialog/dialog-state.js +40 -0
  167. package/dist/theme-pack-dialog/index.d.ts +5 -0
  168. package/dist/theme-pack-dialog/index.js +152 -0
  169. package/dist/theme-pack-dialog/theme-pack-card.d.ts +25 -0
  170. package/dist/theme-pack-dialog/theme-pack-card.js +72 -0
  171. package/dist/theme-pack-switcher/index.d.ts +49 -0
  172. package/dist/theme-pack-switcher/index.js +205 -0
  173. package/dist/theme-pack-switcher/switcher-state.d.ts +56 -0
  174. package/dist/theme-pack-switcher/switcher-state.js +43 -0
  175. package/dist/theme-pack-switcher/theme-pack-sync.d.ts +85 -0
  176. package/dist/theme-pack-switcher/theme-pack-sync.js +121 -0
  177. package/dist/theme-packs/beacon/fonts/AtkinsonHyperlegible-400-latin.woff2 +0 -0
  178. package/dist/theme-packs/beacon/fonts/AtkinsonHyperlegible-700-latin.woff2 +0 -0
  179. package/dist/theme-packs/beacon/fonts/AtkinsonHyperlegible-italic-400-latin.woff2 +0 -0
  180. package/dist/theme-packs/beacon/fonts/AtkinsonHyperlegible-italic-700-latin.woff2 +0 -0
  181. package/dist/theme-packs/beacon/fonts/AtkinsonHyperlegibleMono-italic-latin.woff2 +0 -0
  182. package/dist/theme-packs/beacon/fonts/AtkinsonHyperlegibleMono-latin.woff2 +0 -0
  183. package/dist/theme-packs/beacon/fonts/OFL.txt +94 -0
  184. package/dist/theme-packs/beacon/meta.json +37 -0
  185. package/dist/theme-packs/beacon/pack.css +442 -0
  186. package/dist/theme-packs/broadsheet/fonts/CourierPrime-400-latin.woff2 +0 -0
  187. package/dist/theme-packs/broadsheet/fonts/CourierPrime-700-latin.woff2 +0 -0
  188. package/dist/theme-packs/broadsheet/fonts/OFL.txt +95 -0
  189. package/dist/theme-packs/broadsheet/fonts/PlayfairDisplay-italic-latin.woff2 +0 -0
  190. package/dist/theme-packs/broadsheet/fonts/PlayfairDisplay-latin.woff2 +0 -0
  191. package/dist/theme-packs/broadsheet/fonts/SourceSerif4-italic-latin.woff2 +0 -0
  192. package/dist/theme-packs/broadsheet/fonts/SourceSerif4-latin.woff2 +0 -0
  193. package/dist/theme-packs/broadsheet/meta.json +38 -0
  194. package/dist/theme-packs/broadsheet/pack.css +448 -0
  195. package/dist/theme-packs/brutalist/fonts/ArchivoBlack-latin.woff2 +0 -0
  196. package/dist/theme-packs/brutalist/fonts/IBMPlexMono-400-latin.woff2 +0 -0
  197. package/dist/theme-packs/brutalist/fonts/IBMPlexMono-500-latin.woff2 +0 -0
  198. package/dist/theme-packs/brutalist/fonts/IBMPlexMono-700-latin.woff2 +0 -0
  199. package/dist/theme-packs/brutalist/fonts/OFL.txt +95 -0
  200. package/dist/theme-packs/brutalist/fonts/SpaceGrotesk-latin.woff2 +0 -0
  201. package/dist/theme-packs/brutalist/meta.json +38 -0
  202. package/dist/theme-packs/brutalist/pack.css +546 -0
  203. package/dist/theme-packs/default/meta.json +37 -0
  204. package/dist/theme-packs/drift/fonts/IBMPlexMono-400-latin-ext.woff2 +0 -0
  205. package/dist/theme-packs/drift/fonts/IBMPlexMono-400-latin.woff2 +0 -0
  206. package/dist/theme-packs/drift/fonts/IBMPlexMono-500-latin-ext.woff2 +0 -0
  207. package/dist/theme-packs/drift/fonts/IBMPlexMono-500-latin.woff2 +0 -0
  208. package/dist/theme-packs/drift/fonts/IBMPlexSans-italic-latin.woff2 +0 -0
  209. package/dist/theme-packs/drift/fonts/IBMPlexSans-latin-ext.woff2 +0 -0
  210. package/dist/theme-packs/drift/fonts/IBMPlexSans-latin.woff2 +0 -0
  211. package/dist/theme-packs/drift/fonts/OFL.txt +93 -0
  212. package/dist/theme-packs/drift/meta.json +37 -0
  213. package/dist/theme-packs/drift/pack.css +478 -0
  214. package/dist/theme-packs/fjord/fonts/Inter-latin-ext.woff2 +0 -0
  215. package/dist/theme-packs/fjord/fonts/Inter-latin.woff2 +0 -0
  216. package/dist/theme-packs/fjord/fonts/JetBrainsMono-latin-ext.woff2 +0 -0
  217. package/dist/theme-packs/fjord/fonts/JetBrainsMono-latin.woff2 +0 -0
  218. package/dist/theme-packs/fjord/fonts/OFL.txt +94 -0
  219. package/dist/theme-packs/fjord/meta.json +37 -0
  220. package/dist/theme-packs/fjord/pack.css +375 -0
  221. package/dist/theme-packs/foundry/fonts/Inter-latin-ext.woff2 +0 -0
  222. package/dist/theme-packs/foundry/fonts/Inter-latin.woff2 +0 -0
  223. package/dist/theme-packs/foundry/fonts/OFL.txt +93 -0
  224. package/dist/theme-packs/foundry/meta.json +37 -0
  225. package/dist/theme-packs/foundry/pack.css +202 -0
  226. package/dist/theme-packs/futura-editorial/fonts/Jost-latin.woff2 +0 -0
  227. package/dist/theme-packs/futura-editorial/fonts/NotoSans-italic-latin.woff2 +0 -0
  228. package/dist/theme-packs/futura-editorial/fonts/NotoSans-latin.woff2 +0 -0
  229. package/dist/theme-packs/futura-editorial/fonts/OFL.txt +95 -0
  230. package/dist/theme-packs/futura-editorial/fonts/SpaceMono-400-latin.woff2 +0 -0
  231. package/dist/theme-packs/futura-editorial/fonts/SpaceMono-700-latin.woff2 +0 -0
  232. package/dist/theme-packs/futura-editorial/meta.json +38 -0
  233. package/dist/theme-packs/futura-editorial/pack.css +313 -0
  234. package/dist/theme-packs/hearth/fonts/Fraunces-italic-latin.woff2 +0 -0
  235. package/dist/theme-packs/hearth/fonts/Fraunces-latin.woff2 +0 -0
  236. package/dist/theme-packs/hearth/fonts/Nunito-latin.woff2 +0 -0
  237. package/dist/theme-packs/hearth/fonts/OFL.txt +95 -0
  238. package/dist/theme-packs/hearth/fonts/SplineSansMono-latin.woff2 +0 -0
  239. package/dist/theme-packs/hearth/meta.json +38 -0
  240. package/dist/theme-packs/hearth/pack.css +385 -0
  241. package/dist/theme-packs/hollow/fonts/OFL.txt +94 -0
  242. package/dist/theme-packs/hollow/fonts/SpaceGrotesk-latin.woff2 +0 -0
  243. package/dist/theme-packs/hollow/fonts/SpaceMono-400-italic-latin.woff2 +0 -0
  244. package/dist/theme-packs/hollow/fonts/SpaceMono-400-latin.woff2 +0 -0
  245. package/dist/theme-packs/hollow/fonts/SpaceMono-700-latin.woff2 +0 -0
  246. package/dist/theme-packs/hollow/meta.json +37 -0
  247. package/dist/theme-packs/hollow/pack.css +428 -0
  248. package/dist/theme-packs/ledger/fonts/CrimsonPro-latin-ext-italic.woff2 +0 -0
  249. package/dist/theme-packs/ledger/fonts/CrimsonPro-latin-ext.woff2 +0 -0
  250. package/dist/theme-packs/ledger/fonts/CrimsonPro-latin-italic.woff2 +0 -0
  251. package/dist/theme-packs/ledger/fonts/CrimsonPro-latin.woff2 +0 -0
  252. package/dist/theme-packs/ledger/fonts/IBMPlexMono-400-latin-ext.woff2 +0 -0
  253. package/dist/theme-packs/ledger/fonts/IBMPlexMono-400-latin.woff2 +0 -0
  254. package/dist/theme-packs/ledger/fonts/IBMPlexMono-500-latin-ext.woff2 +0 -0
  255. package/dist/theme-packs/ledger/fonts/IBMPlexMono-500-latin.woff2 +0 -0
  256. package/dist/theme-packs/ledger/fonts/OFL.txt +94 -0
  257. package/dist/theme-packs/ledger/meta.json +37 -0
  258. package/dist/theme-packs/ledger/pack.css +463 -0
  259. package/dist/theme-packs/manuscript/fonts/CourierPrime-400-latin-ext.woff2 +0 -0
  260. package/dist/theme-packs/manuscript/fonts/CourierPrime-400-latin.woff2 +0 -0
  261. package/dist/theme-packs/manuscript/fonts/CourierPrime-700-latin-ext.woff2 +0 -0
  262. package/dist/theme-packs/manuscript/fonts/CourierPrime-700-latin.woff2 +0 -0
  263. package/dist/theme-packs/manuscript/fonts/EBGaramond-latin-italic.woff2 +0 -0
  264. package/dist/theme-packs/manuscript/fonts/EBGaramond-latin.woff2 +0 -0
  265. package/dist/theme-packs/manuscript/fonts/OFL.txt +94 -0
  266. package/dist/theme-packs/manuscript/meta.json +37 -0
  267. package/dist/theme-packs/manuscript/pack.css +376 -0
  268. package/dist/theme-packs/matcha/fonts/MPLUS1Code-latin.woff2 +0 -0
  269. package/dist/theme-packs/matcha/fonts/OFL.txt +95 -0
  270. package/dist/theme-packs/matcha/fonts/ShipporiMincho-500-latin.woff2 +0 -0
  271. package/dist/theme-packs/matcha/fonts/ShipporiMincho-700-latin.woff2 +0 -0
  272. package/dist/theme-packs/matcha/fonts/ZenKakuGothicNew-400-latin.woff2 +0 -0
  273. package/dist/theme-packs/matcha/fonts/ZenKakuGothicNew-500-latin.woff2 +0 -0
  274. package/dist/theme-packs/matcha/meta.json +38 -0
  275. package/dist/theme-packs/matcha/pack.css +409 -0
  276. package/dist/theme-packs/nocturne/fonts/CormorantGaramond-italic-latin.woff2 +0 -0
  277. package/dist/theme-packs/nocturne/fonts/CormorantGaramond-latin.woff2 +0 -0
  278. package/dist/theme-packs/nocturne/fonts/IBMPlexMono-400-latin.woff2 +0 -0
  279. package/dist/theme-packs/nocturne/fonts/IBMPlexMono-500-latin.woff2 +0 -0
  280. package/dist/theme-packs/nocturne/fonts/IBMPlexMono-italic-latin.woff2 +0 -0
  281. package/dist/theme-packs/nocturne/fonts/Manrope-latin.woff2 +0 -0
  282. package/dist/theme-packs/nocturne/fonts/OFL.txt +95 -0
  283. package/dist/theme-packs/nocturne/meta.json +38 -0
  284. package/dist/theme-packs/nocturne/pack.css +502 -0
  285. package/dist/theme-packs/observatory/fonts/JosefinSans-latin.woff2 +0 -0
  286. package/dist/theme-packs/observatory/fonts/Jost-italic-latin.woff2 +0 -0
  287. package/dist/theme-packs/observatory/fonts/Jost-latin.woff2 +0 -0
  288. package/dist/theme-packs/observatory/fonts/OFL.txt +95 -0
  289. package/dist/theme-packs/observatory/fonts/SpaceMono-400-latin.woff2 +0 -0
  290. package/dist/theme-packs/observatory/fonts/SpaceMono-700-latin.woff2 +0 -0
  291. package/dist/theme-packs/observatory/fonts/SpaceMono-italic-latin.woff2 +0 -0
  292. package/dist/theme-packs/observatory/meta.json +38 -0
  293. package/dist/theme-packs/observatory/pack.css +728 -0
  294. package/dist/theme-packs/onyx/fonts/CormorantGaramond-italic-latin.woff2 +0 -0
  295. package/dist/theme-packs/onyx/fonts/CormorantGaramond-latin.woff2 +0 -0
  296. package/dist/theme-packs/onyx/fonts/IBMPlexMono-400-latin-ext.woff2 +0 -0
  297. package/dist/theme-packs/onyx/fonts/IBMPlexMono-400-latin.woff2 +0 -0
  298. package/dist/theme-packs/onyx/fonts/IBMPlexMono-500-latin-ext.woff2 +0 -0
  299. package/dist/theme-packs/onyx/fonts/IBMPlexMono-500-latin.woff2 +0 -0
  300. package/dist/theme-packs/onyx/fonts/Jost-latin.woff2 +0 -0
  301. package/dist/theme-packs/onyx/fonts/OFL.txt +95 -0
  302. package/dist/theme-packs/onyx/meta.json +38 -0
  303. package/dist/theme-packs/onyx/pack.css +497 -0
  304. package/dist/theme-packs/phosphor/fonts/JetBrainsMono-latin-ext.woff2 +0 -0
  305. package/dist/theme-packs/phosphor/fonts/JetBrainsMono-latin.woff2 +0 -0
  306. package/dist/theme-packs/phosphor/fonts/OFL.txt +94 -0
  307. package/dist/theme-packs/phosphor/fonts/VT323-latin-ext.woff2 +0 -0
  308. package/dist/theme-packs/phosphor/fonts/VT323-latin.woff2 +0 -0
  309. package/dist/theme-packs/phosphor/meta.json +38 -0
  310. package/dist/theme-packs/phosphor/pack.css +493 -0
  311. package/dist/theme-packs/solar/fonts/OFL.txt +94 -0
  312. package/dist/theme-packs/solar/fonts/SourceCodePro-italic-latin.woff2 +0 -0
  313. package/dist/theme-packs/solar/fonts/SourceCodePro-latin.woff2 +0 -0
  314. package/dist/theme-packs/solar/fonts/SourceSans3-italic-latin.woff2 +0 -0
  315. package/dist/theme-packs/solar/fonts/SourceSans3-latin.woff2 +0 -0
  316. package/dist/theme-packs/solar/meta.json +37 -0
  317. package/dist/theme-packs/solar/pack.css +380 -0
  318. package/dist/theme-packs/sumi/fonts/IBMPlexMono-400-latin-ext.woff2 +0 -0
  319. package/dist/theme-packs/sumi/fonts/IBMPlexMono-400-latin.woff2 +0 -0
  320. package/dist/theme-packs/sumi/fonts/IBMPlexMono-500-latin-ext.woff2 +0 -0
  321. package/dist/theme-packs/sumi/fonts/IBMPlexMono-500-latin.woff2 +0 -0
  322. package/dist/theme-packs/sumi/fonts/OFL.txt +95 -0
  323. package/dist/theme-packs/sumi/fonts/ShipporiMinchoB1-600-latin.woff2 +0 -0
  324. package/dist/theme-packs/sumi/fonts/ShipporiMinchoB1-700-latin.woff2 +0 -0
  325. package/dist/theme-packs/sumi/fonts/ShipporiMinchoB1-800-latin.woff2 +0 -0
  326. package/dist/theme-packs/sumi/fonts/ZenKakuGothicNew-400-latin.woff2 +0 -0
  327. package/dist/theme-packs/sumi/fonts/ZenKakuGothicNew-500-latin.woff2 +0 -0
  328. package/dist/theme-packs/sumi/meta.json +38 -0
  329. package/dist/theme-packs/sumi/pack.css +502 -0
  330. package/dist/theme-packs/swissgrid/fonts/IBMPlexMono-400-latin-ext.woff2 +0 -0
  331. package/dist/theme-packs/swissgrid/fonts/IBMPlexMono-400-latin.woff2 +0 -0
  332. package/dist/theme-packs/swissgrid/fonts/IBMPlexMono-600-latin.woff2 +0 -0
  333. package/dist/theme-packs/swissgrid/fonts/Inter-latin-ext.woff2 +0 -0
  334. package/dist/theme-packs/swissgrid/fonts/Inter-latin.woff2 +0 -0
  335. package/dist/theme-packs/swissgrid/fonts/InterTight-latin.woff2 +0 -0
  336. package/dist/theme-packs/swissgrid/fonts/OFL.txt +95 -0
  337. package/dist/theme-packs/swissgrid/meta.json +38 -0
  338. package/dist/theme-packs/swissgrid/pack.css +518 -0
  339. package/dist/theme-packs/washi/fonts/MPlus1Code-400-latin.woff2 +0 -0
  340. package/dist/theme-packs/washi/fonts/MPlus1Code-500-latin.woff2 +0 -0
  341. package/dist/theme-packs/washi/fonts/OFL.txt +95 -0
  342. package/dist/theme-packs/washi/fonts/ShipporiMincho-500-latin.woff2 +0 -0
  343. package/dist/theme-packs/washi/fonts/ShipporiMincho-600-latin.woff2 +0 -0
  344. package/dist/theme-packs/washi/fonts/ShipporiMincho-700-latin.woff2 +0 -0
  345. package/dist/theme-packs/washi/fonts/ZenKakuGothicNew-400-latin.woff2 +0 -0
  346. package/dist/theme-packs/washi/fonts/ZenKakuGothicNew-500-latin.woff2 +0 -0
  347. package/dist/theme-packs/washi/fonts/ZenKakuGothicNew-700-latin.woff2 +0 -0
  348. package/dist/theme-packs/washi/meta.json +38 -0
  349. package/dist/theme-packs/washi/pack.css +479 -0
  350. package/dist/theme-packs-registry/index.d.ts +5 -0
  351. package/dist/theme-packs-registry/index.js +30 -0
  352. package/dist/theme-packs-registry/load-registry.d.ts +23 -0
  353. package/dist/theme-packs-registry/load-registry.js +64 -0
  354. package/dist/theme-packs-registry/meta-schema.d.ts +70 -0
  355. package/dist/theme-packs-registry/meta-schema.js +38 -0
  356. package/dist/theme-packs-registry/resolve-enabled-packs.d.ts +25 -0
  357. package/dist/theme-packs-registry/resolve-enabled-packs.js +43 -0
  358. package/dist/theme-packs-registry/token-manifest.d.ts +19 -0
  359. package/dist/theme-packs-registry/token-manifest.js +57 -0
  360. package/dist/theme-packs-registry/validator.d.ts +35 -0
  361. package/dist/theme-packs-registry/validator.js +284 -0
  362. package/dist/theme-toggle/color-scheme-sync.d.ts +2 -4
  363. package/dist/versions-page/index.d.ts +2 -2
  364. package/dist/versions-page/index.js +8 -8
  365. package/eject/breadcrumb/breadcrumb.tsx +4 -4
  366. package/eject/breadcrumb/find-path.ts +2 -2
  367. package/eject/breadcrumb/index.ts +1 -1
  368. package/eject/breadcrumb/types.ts +0 -6
  369. package/eject/code-group/index.tsx +2 -2
  370. package/eject/doc-history/index.tsx +1 -1
  371. package/eject/doc-pager/index.tsx +1 -1
  372. package/eject/footer/footer.tsx +1 -0
  373. package/eject/header/header.tsx +86 -21
  374. package/eject/header/index.ts +3 -0
  375. package/eject/header/types.ts +39 -1
  376. package/eject/site-tree-nav-island/index.tsx +15 -3
  377. package/eject/site-tree-nav-island/state.ts +9 -0
  378. package/eject/theme-toggle/color-scheme-sync.ts +2 -4
  379. package/package.json +35 -29
  380. package/routes-src/404.tsx +4 -1
  381. package/routes-src/_chrome.tsx +6 -5
  382. package/routes-src/_context.ts +4 -0
  383. package/routes-src/_docs-helpers.ts +9 -29
  384. package/routes-src/_virtual.d.ts +4 -0
  385. package/virtual-modules.d.ts +4 -0
  386. package/zfb-config-shim.d.ts +40 -18
  387. package/dist/integrations/llms-txt/index.d.ts +0 -33
  388. package/dist/theme/color-tweak-export-modal.d.ts +0 -16
  389. package/dist/theme/color-tweak-export-modal.js +0 -138
  390. package/dist/theme/design-token-serde.d.ts +0 -183
  391. package/dist/theme/design-token-serde.js +0 -346
  392. package/dist/theme/design-token-types.d.ts +0 -13
  393. package/dist/theme/design-token-types.js +0 -6
  394. package/dist/theme/iframe-bridge.d.ts +0 -42
  395. package/dist/theme/iframe-bridge.js +0 -72
  396. /package/dist/{integrations → plugins/internal}/claude-resources/escape-for-mdx.d.ts +0 -0
  397. /package/dist/{integrations → plugins/internal}/claude-resources/escape-for-mdx.js +0 -0
  398. /package/dist/{integrations → plugins/internal}/claude-resources/generate.d.ts +0 -0
  399. /package/dist/{integrations → plugins/internal}/claude-resources/generate.js +0 -0
  400. /package/dist/{integrations → plugins/internal}/doc-history/pre-build.js +0 -0
  401. /package/dist/{integrations → plugins/internal}/llms-txt/dev-middleware.d.ts +0 -0
  402. /package/dist/{integrations → plugins/internal}/llms-txt/dev-middleware.js +0 -0
  403. /package/dist/{integrations → plugins/internal}/llms-txt/emit.d.ts +0 -0
  404. /package/dist/{integrations → plugins/internal}/llms-txt/emit.js +0 -0
  405. /package/dist/{integrations → plugins/internal}/llms-txt/generate.d.ts +0 -0
  406. /package/dist/{integrations → plugins/internal}/llms-txt/generate.js +0 -0
  407. /package/dist/{integrations → plugins/internal}/llms-txt/index.js +0 -0
  408. /package/dist/{integrations → plugins/internal}/llms-txt/types.js +0 -0
  409. /package/dist/{integrations → plugins/internal}/search-index/build-emitter.d.ts +0 -0
  410. /package/dist/{integrations → plugins/internal}/search-index/build-emitter.js +0 -0
  411. /package/dist/{integrations → plugins/internal}/search-index/collect.d.ts +0 -0
  412. /package/dist/{integrations → plugins/internal}/search-index/dev-middleware.d.ts +0 -0
  413. /package/dist/{integrations → plugins/internal}/search-index/dev-middleware.js +0 -0
  414. /package/dist/{integrations → plugins/internal}/search-index/index.d.ts +0 -0
  415. /package/dist/{integrations → plugins/internal}/search-index/index.js +0 -0
  416. /package/dist/{integrations → plugins/internal}/search-index/types.d.ts +0 -0
  417. /package/dist/{integrations → plugins/internal}/search-index/types.js +0 -0
@@ -0,0 +1,95 @@
1
+ Copyright 2015 The Cormorant Project Authors (https://github.com/CatharsisFonts/Cormorant)
2
+ Copyright 2020 The Jost Project Authors (https://github.com/indestructible-type)
3
+ Copyright 2017 IBM Corp. with Reserved Font Name "Plex" (https://github.com/IBM/plex)
4
+
5
+ This Font Software is licensed under the SIL Open Font License, Version 1.1.
6
+ This license is copied below, and is also available with a FAQ at:
7
+ https://scripts.sil.org/OFL
8
+
9
+
10
+ -----------------------------------------------------------
11
+ SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
12
+ -----------------------------------------------------------
13
+
14
+ PREAMBLE
15
+ The goals of the Open Font License (OFL) are to stimulate worldwide
16
+ development of collaborative font projects, to support the font creation
17
+ efforts of academic and linguistic communities, and to provide a free and
18
+ open framework in which fonts may be shared and improved in partnership
19
+ with others.
20
+
21
+ The OFL allows the licensed fonts to be used, studied, modified and
22
+ redistributed freely as long as they are not sold by themselves. The
23
+ fonts, including any derivative works, can be bundled, embedded,
24
+ redistributed and/or sold with any software provided that any reserved
25
+ names are not used by derivative works. The fonts and derivatives,
26
+ however, cannot be released under any other type of license. The
27
+ requirement for fonts to remain under this license does not apply
28
+ to any document created using the fonts or their derivatives.
29
+
30
+ DEFINITIONS
31
+ "Font Software" refers to the set of files released by the Copyright
32
+ Holder(s) under this license and clearly marked as such. This may
33
+ include source files, build scripts and documentation.
34
+
35
+ "Reserved Font Name" refers to any names specified as such after the
36
+ copyright statement(s).
37
+
38
+ "Original Version" refers to the collection of Font Software components as
39
+ distributed by the Copyright Holder(s).
40
+
41
+ "Modified Version" refers to any derivative made by adding to, deleting,
42
+ or substituting -- in part or in whole -- any of the components of the
43
+ Original Version, by changing formats or by porting the Font Software to a
44
+ new environment.
45
+
46
+ "Author" refers to any designer, engineer, programmer, technical
47
+ writer or other person who contributed to the Font Software.
48
+
49
+ PERMISSION & CONDITIONS
50
+ Permission is hereby granted, free of charge, to any person obtaining
51
+ a copy of the Font Software, to use, study, copy, merge, embed, modify,
52
+ redistribute, and sell modified and unmodified copies of the Font
53
+ Software, subject to the following conditions:
54
+
55
+ 1) Neither the Font Software nor any of its individual components,
56
+ in Original or Modified Versions, may be sold by itself.
57
+
58
+ 2) Original or Modified Versions of the Font Software may be bundled,
59
+ redistributed and/or sold with any software, provided that each copy
60
+ contains the above copyright notice and this license. These can be
61
+ included either as stand-alone text files, human-readable headers or
62
+ in the appropriate machine-readable metadata fields within text or
63
+ binary files as long as those fields can be easily viewed by the user.
64
+
65
+ 3) No Modified Version of the Font Software may use the Reserved Font
66
+ Name(s) unless explicit written permission is granted by the corresponding
67
+ Copyright Holder. This restriction only applies to the primary font name as
68
+ presented to the users.
69
+
70
+ 4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
71
+ Software shall not be used to promote, endorse or advertise any
72
+ Modified Version, except to acknowledge the contribution(s) of the
73
+ Copyright Holder(s) and the Author(s) or with their explicit written
74
+ permission.
75
+
76
+ 5) The Font Software, modified or unmodified, in part or in whole,
77
+ must be distributed entirely under this license, and must not be
78
+ distributed under any other license. The requirement for fonts to
79
+ remain under this license does not apply to any document created
80
+ using the Font Software.
81
+
82
+ TERMINATION
83
+ This license becomes null and void if any of the above conditions are
84
+ not met.
85
+
86
+ DISCLAIMER
87
+ THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
88
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
89
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
90
+ OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
91
+ COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
92
+ INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
93
+ DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
94
+ FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
95
+ OTHER DEALINGS IN THE FONT SOFTWARE.
@@ -0,0 +1,38 @@
1
+ {
2
+ "schemaVersion": 1,
3
+ "slug": "onyx",
4
+ "name": "Onyx",
5
+ "description": "Luxury noir — jet black, champagne serif headings, and a single gold hairline accent. Watch-brand restraint.",
6
+ "mode": "dark",
7
+ "version": "1.0.2",
8
+ "fonts": {
9
+ "sans": "Jost",
10
+ "mono": "IBM Plex Mono",
11
+ "display": "Cormorant Garamond",
12
+ "loaded": ["Cormorant Garamond", "Jost", "IBM Plex Mono"]
13
+ },
14
+ "preview": {
15
+ "light": {
16
+ "bg": "oklch(0.972 0.005 85)",
17
+ "fg": "oklch(0.22 0.012 80)",
18
+ "accent": "oklch(0.5 0.105 80)",
19
+ "syntax": {
20
+ "keyword": "oklch(0.51 0.105 82)",
21
+ "string": "oklch(0.47 0.07 155)",
22
+ "comment": "oklch(0.5 0.015 85)",
23
+ "callable": "oklch(0.45 0.045 250)"
24
+ }
25
+ },
26
+ "dark": {
27
+ "bg": "oklch(0.145 0.003 80)",
28
+ "fg": "oklch(0.92 0.022 88)",
29
+ "accent": "oklch(0.79 0.115 88)",
30
+ "syntax": {
31
+ "keyword": "oklch(0.8 0.115 88)",
32
+ "string": "oklch(0.78 0.07 155)",
33
+ "comment": "oklch(0.62 0.02 85)",
34
+ "callable": "oklch(0.82 0.04 250)"
35
+ }
36
+ }
37
+ }
38
+ }
@@ -0,0 +1,497 @@
1
+ /* ============================================================
2
+ Onyx — zudo-doc theme pack (ADR docs/adr/theme-packs.md)
3
+
4
+ Luxury noir. Jet black case, champagne dial, one gold hairline.
5
+ Dark mode is the hero (the boutique at night); light mode is the
6
+ same watch on an ivory tray in daylight — porcelain paper, ink
7
+ text, antique gold. Shape language: SQUARE — every radius goes
8
+ to 0; the only circle on the page is the switcher launcher, the
9
+ crown, ringed in gold. Cormorant Garamond carries the serif
10
+ voice (headings, lead, blockquote, pager titles, footer line);
11
+ Jost carries the wide-tracked uppercase labels; IBM Plex Mono
12
+ keeps the code quiet.
13
+
14
+ Every rule below is scoped under html[data-theme-pack="onyx"] —
15
+ this is what makes the runtime pack swap atomic (Decision 3) and
16
+ lets the validator prove a pack can never leak styles while
17
+ inactive (Decision 6.7). The @font-face blocks are the sole
18
+ exception (at-rules can't be selector-scoped).
19
+
20
+ Font policy note (Decision 5): the prototype's commercial
21
+ geometric-sans / Didone fallbacks appear NOWHERE here — Jost is
22
+ the designated OFL geometric substitute, Cormorant Garamond the
23
+ Garamond/Didone voice, with bare generics closing every stack.
24
+
25
+ Prototype-selector adaptations against the REAL DOM (tokens-dump
26
+ §6 + component sources), noted inline where they matter:
27
+ - `.lead` → `p[data-doc-description]` (#2873 stable hook on
28
+ the description paragraph DocContentHeader emits;
29
+ only present when the page has a frontmatter
30
+ description — no longer falls back onto the first
31
+ BODY paragraph)
32
+ - `.sb-group > p` gold group plaques → no stable hook exists for
33
+ sidebar group headers in the real SidebarTree island; the gold
34
+ treatment moves onto a[data-nav-active] (transparent ground,
35
+ gold text, a 1px gold spine via inset box-shadow — the
36
+ swissgrid idiom, no layout shift)
37
+ - `.doc-pager` → `.zd-content > nav[data-doc-pager] > a` (#2873
38
+ stable hook on the DocPager nav — replaces the batch-2
39
+ `:last-of-type:not([aria-label])` positional idiom)
40
+ - `.toc-title` / `a.toc-active` → no stable hooks (the real TOC
41
+ renders no title element; the active entry is utility-classed).
42
+ The TOC keeps its default fg-on-bg active treatment; only the
43
+ spine border (a stable `nav[data-zd-toc] ul` hook) is tuned.
44
+ - `footer .footer-copy` → `footer[data-footer] > div >
45
+ div:last-child:not(:first-child)` (#2873 stable hook; the
46
+ wrapper-descendant form is no longer needed)
47
+ - the flyout and launcher DO have stable hooks in the real
48
+ switcher island — `div[data-switcher-card]` and
49
+ `button[data-switcher-launcher]` (#2873) — the double gold frame
50
+ and the gold-ringed crown are ported.
51
+ ============================================================ */
52
+
53
+ /* ---- Cormorant Garamond — the champagne serif: display headings,
54
+ lead, blockquotes, pager titles, footer engraving. Variable
55
+ latin subsets: 500–700 upright, 500–600 italic. ---- */
56
+
57
+ @font-face {
58
+ font-family: "Cormorant Garamond";
59
+ font-style: normal;
60
+ font-weight: 500 700;
61
+ font-display: swap;
62
+ src: url("./fonts/CormorantGaramond-latin.woff2") format("woff2");
63
+ unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
64
+ U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191,
65
+ U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
66
+ }
67
+
68
+ @font-face {
69
+ font-family: "Cormorant Garamond";
70
+ font-style: italic;
71
+ font-weight: 500 600;
72
+ font-display: swap;
73
+ src: url("./fonts/CormorantGaramond-italic-latin.woff2") format("woff2");
74
+ unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
75
+ U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191,
76
+ U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
77
+ }
78
+
79
+ /* ---- Jost — the geometric label hand (variable 400–600, latin).
80
+ Body prose plus every wide-tracked uppercase plaque. ---- */
81
+
82
+ @font-face {
83
+ font-family: "Jost";
84
+ font-style: normal;
85
+ font-weight: 400 600;
86
+ font-display: swap;
87
+ src: url("./fonts/Jost-latin.woff2") format("woff2");
88
+ unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
89
+ U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191,
90
+ U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
91
+ }
92
+
93
+ /* ---- IBM Plex Mono — the code face (400/500, latin + latin-ext) ---- */
94
+
95
+ @font-face {
96
+ font-family: "IBM Plex Mono";
97
+ font-style: normal;
98
+ font-weight: 400;
99
+ font-display: swap;
100
+ src: url("./fonts/IBMPlexMono-400-latin.woff2") format("woff2");
101
+ unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
102
+ U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191,
103
+ U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
104
+ }
105
+
106
+ @font-face {
107
+ font-family: "IBM Plex Mono";
108
+ font-style: normal;
109
+ font-weight: 400;
110
+ font-display: swap;
111
+ src: url("./fonts/IBMPlexMono-400-latin-ext.woff2") format("woff2");
112
+ unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7,
113
+ U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F,
114
+ U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
115
+ U+A720-A7FF;
116
+ }
117
+
118
+ @font-face {
119
+ font-family: "IBM Plex Mono";
120
+ font-style: normal;
121
+ font-weight: 500;
122
+ font-display: swap;
123
+ src: url("./fonts/IBMPlexMono-500-latin.woff2") format("woff2");
124
+ unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
125
+ U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191,
126
+ U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
127
+ }
128
+
129
+ @font-face {
130
+ font-family: "IBM Plex Mono";
131
+ font-style: normal;
132
+ font-weight: 500;
133
+ font-display: swap;
134
+ src: url("./fonts/IBMPlexMono-500-latin-ext.woff2") format("woff2");
135
+ unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7,
136
+ U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F,
137
+ U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
138
+ U+A720-A7FF;
139
+ }
140
+
141
+ html[data-theme-pack="onyx"] {
142
+ /* Tier-2 semantic roles — jet black / porcelain ivory, one gold.
143
+ Both modes always via light-dark(). */
144
+ --zd-bg: light-dark(oklch(0.972 0.005 85), oklch(0.145 0.003 80));
145
+ --zd-fg: light-dark(oklch(0.22 0.012 80), oklch(0.92 0.022 88));
146
+ --zd-surface: light-dark(oklch(0.984 0.004 85), oklch(0.168 0.004 80));
147
+ --zd-muted: light-dark(oklch(0.465 0.02 82), oklch(0.665 0.025 85));
148
+
149
+ /* the single gold */
150
+ --zd-accent: light-dark(oklch(0.5 0.105 80), oklch(0.79 0.115 88));
151
+ --zd-accent-hover: light-dark(oklch(0.42 0.1 78), oklch(0.865 0.1 90));
152
+
153
+ /* selection: a gold foil press */
154
+ --zd-selection-bg: light-dark(oklch(0.855 0.095 88), oklch(0.79 0.115 88));
155
+ --zd-selection-fg: light-dark(oklch(0.18 0.01 80), oklch(0.145 0.003 80));
156
+
157
+ --zd-code-bg: light-dark(oklch(0.94 0.008 88), oklch(0.182 0.006 82));
158
+ --zd-code-fg: light-dark(oklch(0.24 0.012 80), oklch(0.9 0.02 88));
159
+
160
+ /* statuses, desaturated to boutique volume */
161
+ --zd-success: light-dark(oklch(0.46 0.085 150), oklch(0.72 0.09 150));
162
+ --zd-danger: light-dark(oklch(0.48 0.13 25), oklch(0.66 0.12 25));
163
+ /* light branch sits below the prototype's .52 so warning admonition
164
+ titles clear 4.5:1 over the 12% warning tint (review) */
165
+ --zd-warning: light-dark(oklch(0.49 0.11 65), oklch(0.75 0.12 70));
166
+ --zd-info: light-dark(oklch(0.46 0.07 250), oklch(0.74 0.06 250));
167
+
168
+ /* syntax — all 9 roles, both modes: champagne, jade, copper,
169
+ platinum — jewel tones at whisper level. inserted/deleted (not
170
+ in the prototype's 7) follow the same register: a jade wash in,
171
+ a muted ruby out. */
172
+ /* both branches pushed past the prototype's values so comments clear
173
+ 4.5:1 on the code slab in each mode (review) */
174
+ --zd-syntax-comment: light-dark(oklch(0.5 0.015 85), oklch(0.62 0.02 85));
175
+ --zd-syntax-string: light-dark(oklch(0.47 0.07 155), oklch(0.78 0.07 155));
176
+ --zd-syntax-number: light-dark(oklch(0.49 0.1 55), oklch(0.76 0.1 60));
177
+ --zd-syntax-keyword: light-dark(oklch(0.51 0.105 82), oklch(0.8 0.115 88));
178
+ --zd-syntax-callable: light-dark(oklch(0.45 0.045 250), oklch(0.82 0.04 250));
179
+ --zd-syntax-type: light-dark(oklch(0.5 0.06 85), oklch(0.84 0.06 90));
180
+ --zd-syntax-name: light-dark(oklch(0.25 0.012 80), oklch(0.9 0.018 86));
181
+ --zd-syntax-inserted: light-dark(oklch(0.47 0.085 150), oklch(0.74 0.09 150));
182
+ --zd-syntax-deleted: light-dark(oklch(0.5 0.12 25), oklch(0.7 0.11 25));
183
+
184
+ /* faces: Jost (the geometric-sans hand), Cormorant Garamond
185
+ (the Garamond blood), quiet Plex mono. Bare generics close
186
+ every stack — no commercial names anywhere (Decision 5). */
187
+ --font-sans: "Jost", system-ui, sans-serif;
188
+ --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
189
+ --font-display: "Cormorant Garamond", Georgia, serif;
190
+
191
+ /* Tier-3 component seams — serif display headings, square case:
192
+ every radius 0, admonition borders thinned to a gold hairline. */
193
+ --zdc-doc-title-font: var(--font-display);
194
+ --zdc-doc-title-weight: 600;
195
+ --zdc-doc-title-tracking: 0.005em;
196
+ --zdc-doc-h2-font: var(--font-display);
197
+ --zdc-doc-h2-weight: 600;
198
+ --zdc-doc-h2-tracking: 0.015em;
199
+ --zdc-admonition-radius: 0;
200
+ --zdc-admonition-border-width: 1px; /* gold hairline, not a paint stripe */
201
+ --zdc-card-radius: 0;
202
+ --zdc-nav-active-weight: 500;
203
+ }
204
+
205
+ /* ---- Onyx extras ---- */
206
+
207
+ /* faint champagne glow from above — a vitrine spotlight */
208
+ html[data-theme-pack="onyx"] body {
209
+ background-image: radial-gradient(
210
+ 120% 70% at 50% -10%,
211
+ color-mix(in oklch, var(--zd-accent) 5%, transparent),
212
+ transparent 62%
213
+ );
214
+ background-attachment: fixed;
215
+ letter-spacing: 0.005em;
216
+ }
217
+
218
+ /* header: engraved nameplate over a gold hairline */
219
+ html[data-theme-pack="onyx"] header[data-header] {
220
+ border-bottom: 1px solid color-mix(in oklch, var(--zd-accent) 38%, transparent);
221
+ }
222
+ html[data-theme-pack="onyx"] [data-header-logo] {
223
+ font-family: var(--font-display);
224
+ font-weight: 600;
225
+ font-size: 1.35rem;
226
+ letter-spacing: 0.04em;
227
+ }
228
+ html[data-theme-pack="onyx"] [data-nav-item] {
229
+ font-size: 0.72rem;
230
+ font-weight: 500;
231
+ text-transform: uppercase;
232
+ letter-spacing: 0.18em;
233
+ }
234
+ /* `:not([aria-current="page"])` keeps the active item's fg-on-bg pill
235
+ readable — gold text on the fg ground would fail contrast (review) */
236
+ html[data-theme-pack="onyx"] [data-nav-item]:not([aria-current="page"]):hover {
237
+ text-decoration: none;
238
+ color: var(--zd-accent);
239
+ }
240
+
241
+ /* sidebar: the boutique index behind its own gold hairline edge */
242
+ html[data-theme-pack="onyx"] #desktop-sidebar {
243
+ border-right-color: color-mix(in oklch, var(--zd-accent) 22%, transparent);
244
+ }
245
+
246
+ /* the active page: no filled bar — a 1px gold spine and gold text
247
+ (transparent ground; inset shadow avoids any layout shift) */
248
+ html[data-theme-pack="onyx"] a[data-nav-active] {
249
+ background: transparent;
250
+ color: var(--zd-accent);
251
+ border-radius: 0;
252
+ box-shadow: inset 1px 0 0 0 var(--zd-accent);
253
+ }
254
+
255
+ /* h1: serif display over a short gold rule */
256
+ html[data-theme-pack="onyx"] .zd-content h1::after {
257
+ content: "";
258
+ display: block;
259
+ width: 4.5rem;
260
+ border-top: 1px solid var(--zd-accent);
261
+ margin-top: 1rem;
262
+ }
263
+
264
+ /* the lead: a maison line in serif italic. Targets the
265
+ `data-doc-description` hook (#2873) — see adaptation note. */
266
+ html[data-theme-pack="onyx"] .zd-content > p[data-doc-description] {
267
+ font-family: var(--font-display);
268
+ font-style: italic;
269
+ font-size: 1.4rem;
270
+ line-height: 1.5;
271
+ }
272
+
273
+ /* h2: serif upper-roman numerals (a watch dial) over a gold 1px rule.
274
+ The !important defeats the SSR-inlined
275
+ `style="border-image:linear-gradient(...)"` (Decision 6.6's sole
276
+ allowlisted carve-out); the border-top shorthand thins the 3px
277
+ transparent rule to the gold hairline. */
278
+ html[data-theme-pack="onyx"] .zd-content {
279
+ counter-reset: onyx-section;
280
+ }
281
+ html[data-theme-pack="onyx"] .zd-content h2 {
282
+ border-image: none !important;
283
+ border-top: 1px solid color-mix(in oklch, var(--zd-accent) 55%, transparent);
284
+ padding-top: 1.25rem;
285
+ }
286
+ html[data-theme-pack="onyx"] .zd-content h2::before {
287
+ counter-increment: onyx-section;
288
+ content: counter(onyx-section, upper-roman);
289
+ font-family: var(--font-display);
290
+ font-weight: 500;
291
+ font-size: 0.72em;
292
+ color: var(--zd-accent);
293
+ margin-right: 0.75rem;
294
+ letter-spacing: 0.08em;
295
+ }
296
+
297
+ /* h3: the caseback engraving — wide-tracked uppercase label with a
298
+ short gold dash */
299
+ html[data-theme-pack="onyx"] .zd-content h3 {
300
+ font-family: var(--font-sans);
301
+ font-size: 0.82rem;
302
+ font-weight: 500;
303
+ text-transform: uppercase;
304
+ letter-spacing: 0.22em;
305
+ color: var(--zd-fg);
306
+ }
307
+ html[data-theme-pack="onyx"] .zd-content h3::before {
308
+ content: "— ";
309
+ color: var(--zd-accent);
310
+ letter-spacing: 0;
311
+ }
312
+
313
+ /* links: hairline gold underline */
314
+ html[data-theme-pack="onyx"] .zd-content a {
315
+ text-decoration-thickness: 1px;
316
+ text-underline-offset: 3px;
317
+ text-decoration-color: color-mix(in oklch, var(--zd-accent) 55%, transparent);
318
+ }
319
+ html[data-theme-pack="onyx"] .zd-content a:hover {
320
+ text-decoration-color: var(--zd-accent-hover);
321
+ }
322
+
323
+ /* blockquote: a maison maxim in serif italic behind a gold hairline */
324
+ html[data-theme-pack="onyx"] .zd-content blockquote {
325
+ border-left: 1px solid var(--zd-accent);
326
+ padding: 0.35rem 0 0.35rem 1.35rem;
327
+ font-family: var(--font-display);
328
+ font-style: italic;
329
+ font-size: 1.3rem;
330
+ line-height: 1.5;
331
+ color: color-mix(in oklch, var(--zd-fg) 82%, var(--zd-muted));
332
+ }
333
+
334
+ /* hr: a short centered gold rule */
335
+ html[data-theme-pack="onyx"] .zd-content hr {
336
+ border-top: 1px solid var(--zd-accent);
337
+ width: 4.5rem;
338
+ margin: 2.75rem auto;
339
+ opacity: 0.85;
340
+ }
341
+
342
+ /* inline code: square, hairline-cased */
343
+ html[data-theme-pack="onyx"] .zd-content code:not(pre code) {
344
+ border: 1px solid color-mix(in oklch, var(--zd-muted) 28%, transparent);
345
+ border-radius: 0;
346
+ font-weight: 400;
347
+ }
348
+
349
+ /* code block: the black velvet tray under a gold-tinted hairline */
350
+ html[data-theme-pack="onyx"] pre.hi-root {
351
+ border-radius: 0;
352
+ border-color: color-mix(in oklch, var(--zd-accent) 26%, transparent);
353
+ box-shadow: inset 0 1px 0 color-mix(in oklch, var(--zd-accent) 14%, transparent);
354
+ line-height: 1.7;
355
+ }
356
+ html[data-theme-pack="onyx"] .hi-kw {
357
+ font-weight: 500;
358
+ }
359
+
360
+ /* table: the specification sheet — letterspaced headers over a gold
361
+ hairline, oldstyle table figures */
362
+ html[data-theme-pack="onyx"] .zd-content th {
363
+ font-size: 0.68rem;
364
+ font-weight: 500;
365
+ text-transform: uppercase;
366
+ letter-spacing: 0.18em;
367
+ color: var(--zd-muted);
368
+ border-bottom: 1px solid color-mix(in oklch, var(--zd-accent) 50%, transparent);
369
+ }
370
+ html[data-theme-pack="onyx"] .zd-content td {
371
+ font-variant-numeric: oldstyle-nums;
372
+ }
373
+
374
+ /* admonitions: hairline plaques (1px via the seam token), engraved
375
+ uppercase titles, quiet lapidary glyphs across all seven variants */
376
+ html[data-theme-pack="onyx"] [data-admonition] {
377
+ padding: 1.1rem 1.25rem 0.9rem;
378
+ }
379
+ html[data-theme-pack="onyx"] [data-admonition] .admonition-title {
380
+ font-size: 0.68rem;
381
+ font-weight: 500;
382
+ text-transform: uppercase;
383
+ letter-spacing: 0.22em;
384
+ margin-bottom: 0.5rem;
385
+ }
386
+ html[data-theme-pack="onyx"] [data-admonition="note"] .admonition-title::before {
387
+ content: "✦\2002";
388
+ }
389
+ html[data-theme-pack="onyx"] [data-admonition="tip"] .admonition-title::before {
390
+ content: "◇\2002";
391
+ }
392
+ html[data-theme-pack="onyx"] [data-admonition="info"] .admonition-title::before {
393
+ content: "✧\2002";
394
+ }
395
+ html[data-theme-pack="onyx"] [data-admonition="warning"] .admonition-title::before {
396
+ content: "▲\2002";
397
+ }
398
+ html[data-theme-pack="onyx"] [data-admonition="danger"] .admonition-title::before {
399
+ content: "◆\2002";
400
+ }
401
+ html[data-theme-pack="onyx"] [data-admonition="important"] .admonition-title::before {
402
+ content: "✱\2002";
403
+ }
404
+ html[data-theme-pack="onyx"] [data-admonition="caution"] .admonition-title::before {
405
+ content: "△\2002";
406
+ }
407
+
408
+ /* pager: two presentation cards — square, gold inset ring on hover,
409
+ uppercase labels, serif titles. Targets the DocPager's
410
+ `data-doc-pager` hook (#2873) directly. */
411
+ html[data-theme-pack="onyx"] .zd-content > nav[data-doc-pager] > a {
412
+ border-radius: 0;
413
+ padding: 1rem 1.2rem;
414
+ }
415
+ html[data-theme-pack="onyx"] .zd-content > nav[data-doc-pager] > a:hover {
416
+ box-shadow: inset 0 0 0 1px var(--zd-accent);
417
+ }
418
+ html[data-theme-pack="onyx"] .zd-content > nav[data-doc-pager] > a div {
419
+ font-size: 0.62rem;
420
+ text-transform: uppercase;
421
+ letter-spacing: 0.22em;
422
+ }
423
+ html[data-theme-pack="onyx"] .zd-content > nav[data-doc-pager] > a p {
424
+ font-family: var(--font-display);
425
+ font-size: 1.25rem;
426
+ font-weight: 600;
427
+ letter-spacing: 0.01em;
428
+ }
429
+
430
+ /* TOC: a quieter spine (active entry keeps the default fg-on-bg
431
+ treatment — no stable hook exists for it) */
432
+ html[data-theme-pack="onyx"] nav[data-zd-toc] ul {
433
+ border-left: 1px solid color-mix(in oklch, var(--zd-muted) 32%, transparent);
434
+ }
435
+
436
+ /* footer: an engraved copyright line under the closing gold hairline.
437
+ Targets the `data-footer` hook (#2873) directly. */
438
+ html[data-theme-pack="onyx"] footer[data-footer] {
439
+ border-top: 1px solid color-mix(in oklch, var(--zd-accent) 30%, transparent);
440
+ }
441
+ /* italicize the copyright line only when it coexists with link/tag
442
+ columns (the ledger idiom — `:not(:first-child)` keeps a columns-only
443
+ footer's grid out of this positional rule) */
444
+ html[data-theme-pack="onyx"] footer[data-footer] > div > div:last-child:not(:first-child) {
445
+ font-family: var(--font-display);
446
+ font-style: italic;
447
+ font-size: 0.95rem;
448
+ letter-spacing: 0.05em;
449
+ }
450
+
451
+ /* flyout: the jewelry box — double gold frame, serif title. Targets
452
+ the `data-switcher-card` hook (#2873). */
453
+ html[data-theme-pack="onyx"] div[data-switcher-card] {
454
+ border: 1px solid color-mix(in oklch, var(--zd-accent) 55%, transparent);
455
+ border-radius: 0;
456
+ box-shadow: 0 18px 44px -10px rgb(0 0 0 / 0.55);
457
+ }
458
+ /* decorative gold rule only while NOT keyboard-focused — an unconditional
459
+ outline would beat the layered focus-visible utility and hide the focus
460
+ ring (#2883) */
461
+ html[data-theme-pack="onyx"] div[data-switcher-card]:not(:focus-visible) {
462
+ outline: 1px solid color-mix(in oklch, var(--zd-accent) 22%, transparent);
463
+ outline-offset: 4px;
464
+ }
465
+ html[data-theme-pack="onyx"] div[data-switcher-card] p[aria-live="polite"] {
466
+ font-family: var(--font-display);
467
+ font-size: 1.45rem;
468
+ font-weight: 600;
469
+ letter-spacing: 0.03em;
470
+ }
471
+
472
+ /* browse-all dialog: the same jewelry-box framing at cabinet size —
473
+ square case, double gold frame, square card buttons (the flyout's
474
+ role/aria-label hook doesn't match this <dialog>) */
475
+ html[data-theme-pack="onyx"] dialog[aria-labelledby="zd-theme-pack-dialog-title"] {
476
+ border: 1px solid color-mix(in oklch, var(--zd-accent) 55%, transparent);
477
+ border-radius: 0;
478
+ box-shadow: 0 18px 44px -10px rgb(0 0 0 / 0.55);
479
+ }
480
+ /* same focus-visible gate as the flyout card (#2883) */
481
+ html[data-theme-pack="onyx"]
482
+ dialog[aria-labelledby="zd-theme-pack-dialog-title"]:not(:focus-visible) {
483
+ outline: 1px solid color-mix(in oklch, var(--zd-accent) 22%, transparent);
484
+ outline-offset: 4px;
485
+ }
486
+ html[data-theme-pack="onyx"] dialog[aria-labelledby="zd-theme-pack-dialog-title"] button {
487
+ border-radius: 0;
488
+ }
489
+
490
+ /* launcher: the crown — the page's only circle, gold-ringed. Targets
491
+ the `data-switcher-launcher` hook (#2873). */
492
+ html[data-theme-pack="onyx"] button[data-switcher-launcher] {
493
+ border-color: color-mix(in oklch, var(--zd-accent) 60%, transparent);
494
+ box-shadow:
495
+ 0 4px 14px -4px rgb(0 0 0 / 0.45),
496
+ 0 0 0 4px color-mix(in oklch, var(--zd-accent) 10%, transparent);
497
+ }