@astryxdesign/cli 0.7.18-canary.gfacee17 → 0.7.18

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 (363) hide show
  1. package/CHANGELOG.md +185 -19
  2. package/README.md +19 -19
  3. package/api/component/_adapter.d.mts +2 -1
  4. package/api/component/_adapter.mjs +2 -1
  5. package/api/docs/_adapter.d.mts +6 -5
  6. package/api/docs/_adapter.mjs +36 -5
  7. package/api/doctor/_adapter.d.mts +6 -3
  8. package/api/doctor/_adapter.mjs +13 -5
  9. package/api/doctor/doctor.mjs +5 -5
  10. package/api/doctor/font-packages.d.mts +36 -0
  11. package/api/doctor/font-packages.mjs +124 -0
  12. package/api/doctor/theme-checks.mjs +110 -49
  13. package/api/experimental.d.mts +0 -2
  14. package/api/experimental.mjs +0 -12
  15. package/api/icon/_adapter.d.mts +2 -2
  16. package/api/icon/_adapter.mjs +6 -2
  17. package/api/icon/_authoring.mjs +22 -13
  18. package/api/icon/_default-look.mjs +15 -15
  19. package/api/icon/add/add.mjs +14 -9
  20. package/api/icon/icon.doc.mjs +7 -7
  21. package/api/icon/icon.type.d.mts +33 -33
  22. package/api/icon/icon.type.mjs +45 -45
  23. package/api/icon/iconAdd.doc.mjs +9 -10
  24. package/api/icon/iconMap.doc.mjs +11 -12
  25. package/api/icon/iconNewDefinition.doc.mjs +8 -8
  26. package/api/icon/iconNewSet.doc.mjs +5 -5
  27. package/api/icon/map/map.mjs +7 -7
  28. package/api/icon/use/use.mjs +4 -4
  29. package/api/init/run/run.mjs +0 -1
  30. package/api/integration/add-helpers.mjs +1 -1
  31. package/api/integration/validate-integration.type.d.mts +6 -6
  32. package/api/integration/validate-integration.type.mjs +6 -6
  33. package/api/render/_adapter.d.mts +5 -3
  34. package/api/render/_adapter.mjs +64 -4
  35. package/api/render/render.doc.mjs +9 -2
  36. package/api/render/render.mjs +5 -2
  37. package/api/render/render.type.d.mts +17 -0
  38. package/api/render/render.type.mjs +10 -0
  39. package/api/search/ORDERING.md +1 -1
  40. package/api/search/_candidate-score.mjs +20 -0
  41. package/api/search/_words.d.mts +8 -0
  42. package/api/search/_words.mjs +15 -0
  43. package/api/template/template.type.d.mts +2 -2
  44. package/api/template/template.type.mjs +2 -2
  45. package/api/theme/_adapter.mjs +19 -11
  46. package/api/theme/build/build.d.mts +19 -51
  47. package/api/theme/build/build.mjs +195 -189
  48. package/api/theme/build/font-warning.d.mts +19 -2
  49. package/api/theme/build/font-warning.mjs +46 -5
  50. package/api/theme/generateTonalPalette.doc.mjs +1 -1
  51. package/api/theme/palette/generate/derive-look.mjs +108 -37
  52. package/api/theme/palette/generate/mapping.mjs +2 -0
  53. package/api/theme/template/template.d.mts +0 -17
  54. package/api/theme/template/template.mjs +1 -42
  55. package/api/theme/theme.type.d.mts +5 -4
  56. package/api/theme/theme.type.mjs +5 -4
  57. package/api/theme/themePaletteGenerate.doc.mjs +1 -1
  58. package/api/theme/themeRemove.doc.mjs +1 -1
  59. package/assets/codemods/transforms/v0.7.0/preserve-bottom-sheet-content-padding.mjs +3 -1
  60. package/assets/component-list.generated.json +1 -1
  61. package/assets/discover/official-packages.json +26 -2
  62. package/assets/docs/author-a-theme.doc.mjs +6 -5
  63. package/assets/docs/browser-support.doc.mjs +1 -0
  64. package/assets/docs/icons.doc.mjs +8 -7
  65. package/assets/docs/motion.doc.mjs +46 -0
  66. package/assets/docs/theme.doc.dense.mjs +6 -17
  67. package/assets/docs/theme.doc.mjs +6 -16
  68. package/assets/docs/theme.doc.zh.mjs +6 -16
  69. package/assets/docs/tree/ci-and-containers.doc.mjs +1 -1
  70. package/assets/docs/tree/data-colors-in-renderers.doc.mjs +400 -0
  71. package/assets/docs/tree/font-setup.doc.mjs +30 -0
  72. package/assets/docs/tree/icon-sets.doc.mjs +2 -2
  73. package/assets/docs/tree/share-a-page.doc.mjs +1 -1
  74. package/assets/docs/tree/template-icons.doc.mjs +3 -3
  75. package/assets/docs/tree/tokens-color.doc.mjs +5 -0
  76. package/assets/docs/tree/tokens.doc.mjs +4 -3
  77. package/assets/docs/tree/updates.doc.mjs +1 -1
  78. package/assets/docs/tree/visualization.doc.mjs +30 -0
  79. package/assets/docs-routes.generated.json +1 -1
  80. package/assets/docs.generated.json +2 -2
  81. package/assets/icons/definitions/drag.doc.mjs +1 -0
  82. package/assets/search-catalog.generated.json +2 -2
  83. package/assets/self-audit.generated.json +1 -1
  84. package/assets/templates/blocks/components/Card/SelectableCardElevated.doc.mjs +1 -1
  85. package/assets/templates/blocks/components/Card/SelectableCardElevated.tsx +20 -10
  86. package/assets/templates/blocks/components/Card/SelectableCardShowcase.doc.mjs +1 -1
  87. package/assets/templates/blocks/components/Card/SelectableCardShowcase.tsx +36 -16
  88. package/assets/templates/blocks/components/ChatComposerInput/ChatComposerInputMentionTrigger.tsx +6 -0
  89. package/assets/templates/blocks/components/ChatComposerInput/ChatComposerInputMultipleTriggers.tsx +6 -0
  90. package/assets/templates/blocks/components/Hooks/useIndicatorFocusRingHookUsage.doc.mjs +14 -0
  91. package/assets/templates/blocks/components/Hooks/useIndicatorFocusRingHookUsage.tsx +63 -0
  92. package/assets/templates/blocks/components/Hooks/useLongPressHookUsage.doc.mjs +29 -0
  93. package/assets/templates/blocks/components/Hooks/useLongPressHookUsage.tsx +237 -0
  94. package/assets/templates/blocks/components/SideNav/SideNavShowcase.tsx +10 -72
  95. package/assets/templates/blocks/components/SideNav/SideNavWithHeaderMenu.doc.mjs +1 -1
  96. package/assets/templates/blocks/components/SideNav/SideNavWithHeaderMenu.tsx +7 -7
  97. package/assets/templates/blocks/components/Table/TableCustomRowTable.doc.mjs +14 -0
  98. package/assets/templates/blocks/components/Table/TableCustomRowTable.tsx +96 -0
  99. package/assets/templates/components.generated.json +1 -1
  100. package/assets/templates/pages/ai-chat-landing/page.tsx +4 -0
  101. package/assets/templates/pages/dashboard-scorecard/page.tsx +26 -7
  102. package/assets/templates/pages/editor/page.tsx +13 -3
  103. package/assets/templates/themes/butter/butterPaletteRefs.generated.ts +2 -2
  104. package/assets/templates/themes/butter/butterTheme.ts +12 -10
  105. package/assets/templates/themes/butter/icons.tsx +2 -0
  106. package/assets/templates/themes/chocolate/chocolateTheme.ts +1 -0
  107. package/assets/templates/themes/chocolate/icons.tsx +2 -0
  108. package/assets/templates/themes/gothic/gothicPaletteRefs.generated.ts +1 -1
  109. package/assets/templates/themes/gothic/gothicTheme.ts +1 -0
  110. package/assets/templates/themes/gothic/icons.tsx +2 -0
  111. package/assets/templates/themes/matcha/icons.tsx +2 -0
  112. package/assets/templates/themes/matcha/matchaPaletteRefs.generated.ts +2 -2
  113. package/assets/templates/themes/matcha/matchaTheme.ts +1 -0
  114. package/assets/templates/themes/neutral/icons.tsx +2 -0
  115. package/assets/templates/themes/neutral/neutralPaletteRefs.generated.ts +2 -2
  116. package/assets/templates/themes/neutral/neutralTheme.ts +1 -0
  117. package/assets/templates/themes/stone/icons.tsx +2 -0
  118. package/assets/templates/themes/stone/stonePaletteRefs.generated.ts +1 -1
  119. package/assets/templates/themes/stone/stoneTheme.ts +1 -0
  120. package/assets/templates/themes/y2k/icons.tsx +2 -0
  121. package/assets/templates/themes/y2k/y2kTheme.ts +1 -0
  122. package/assets/theme.template.ts +9 -5
  123. package/authoring/config/parse.mjs +1 -1
  124. package/authoring/doctypes/base/type.ts +2 -3
  125. package/authoring/doctypes/component/component.doc.mjs +1 -1
  126. package/authoring/doctypes/icon-set/icon-names.mjs +1 -0
  127. package/authoring/integration/integration.doc.mjs +1 -1
  128. package/authoring/integration/type.ts +1 -1
  129. package/clients/cli/build-id.generated.json +1 -1
  130. package/clients/cli/commands/doctor.mjs +2 -2
  131. package/clients/cli/commands/experimental/export.mjs +2 -1
  132. package/clients/cli/commands/experimental/icon.mjs +17 -17
  133. package/clients/cli/commands/experimental/index.mjs +0 -5
  134. package/clients/cli/commands/experimental/render-output.mjs +9 -0
  135. package/clients/cli/commands/experimental-export.doc.mjs +6 -0
  136. package/clients/cli/commands/experimental-icon-add.doc.mjs +8 -8
  137. package/clients/cli/commands/experimental-icon-map.doc.mjs +6 -6
  138. package/clients/cli/commands/experimental-icon-new-definition.doc.mjs +6 -6
  139. package/clients/cli/commands/experimental-icon-new-set.doc.mjs +3 -3
  140. package/clients/cli/commands/experimental-icon-use.doc.mjs +1 -1
  141. package/clients/cli/commands/experimental-icon.doc.mjs +6 -6
  142. package/clients/cli/commands/experimental.doc.mjs +2 -6
  143. package/clients/cli/commands/template.mjs +1 -1
  144. package/clients/cli/commands/theme-build.doc.mjs +8 -1
  145. package/clients/cli/commands/theme-palette-generate.doc.mjs +1 -1
  146. package/clients/cli/commands/theme-remove.doc.mjs +1 -1
  147. package/clients/cli/commands/theme.doc.mjs +1 -11
  148. package/clients/cli/commands/theme.mjs +110 -475
  149. package/clients/cli/commands.generated.json +1 -1
  150. package/clients/cli/index.mjs +4 -34
  151. package/clients/cli/lib/base-gate.mjs +2 -3
  152. package/clients/cli/lib/cli-error.mjs +8 -72
  153. package/clients/cli/lib/define-command.mjs +0 -19
  154. package/clients/cli/lib/json-shim.mjs +11 -633
  155. package/clients/cli/lib/manifest.mjs +0 -4
  156. package/clients/cli/lib/stray-option.mjs +1 -2
  157. package/clients/cli/manifest.generated.json +1 -1
  158. package/foundation/agent-docs/agent-docs.mjs +1 -1
  159. package/foundation/color/css-color.mjs +2 -3
  160. package/foundation/discovery/app-layout.d.mts +13 -0
  161. package/foundation/discovery/app-layout.mjs +35 -0
  162. package/foundation/discovery/cli-self-docs.mjs +4 -4
  163. package/foundation/discovery/fixture-refs.d.mts +51 -0
  164. package/foundation/discovery/fixture-refs.mjs +351 -0
  165. package/foundation/discovery/icon-definition-discovery.mjs +7 -7
  166. package/foundation/discovery/icon-ranking.mjs +2 -2
  167. package/foundation/discovery/icon-set-checks.mjs +6 -6
  168. package/foundation/discovery/icon-set-discovery.mjs +2 -2
  169. package/foundation/discovery/icon-set-writer.d.mts +24 -7
  170. package/foundation/discovery/icon-set-writer.mjs +75 -31
  171. package/foundation/discovery/static-descriptor.d.mts +49 -0
  172. package/foundation/discovery/static-descriptor.mjs +548 -0
  173. package/foundation/discovery/template-adapter.d.mts +0 -47
  174. package/foundation/discovery/template-adapter.mjs +1 -333
  175. package/foundation/discovery/theme-discovery.d.mts +6 -47
  176. package/foundation/discovery/theme-discovery.mjs +15 -537
  177. package/foundation/doc-compiler/bundle.mjs +2 -2
  178. package/foundation/doc-compiler/import.mjs +1 -1
  179. package/foundation/env/user-dirs.d.mts +5 -2
  180. package/foundation/env/user-dirs.mjs +12 -5
  181. package/foundation/fonts/next-font.d.mts +26 -0
  182. package/foundation/fonts/next-font.mjs +149 -0
  183. package/foundation/fs/empty-folder.mjs +2 -2
  184. package/foundation/fs/read-record.mjs +11 -4
  185. package/foundation/pictures/pictures.d.mts +152 -0
  186. package/foundation/pictures/pictures.mjs +565 -0
  187. package/foundation/release/folder-lock.mjs +3 -2
  188. package/foundation/render/cut-short.d.mts +2 -2
  189. package/foundation/render/cut-short.mjs +2 -2
  190. package/foundation/render/drawn-contrast.d.mts +2 -2
  191. package/foundation/render/drawn-contrast.mjs +2 -2
  192. package/foundation/render/font-probe.d.mts +2 -2
  193. package/foundation/render/font-probe.mjs +2 -2
  194. package/foundation/render/layers.mjs +1 -2
  195. package/foundation/render/package-resolve-hooks.d.mts +25 -5
  196. package/foundation/render/package-resolve-hooks.mjs +77 -14
  197. package/foundation/render/page-worker.mjs +24 -12
  198. package/foundation/render/part-boxes.d.mts +2 -3
  199. package/foundation/render/part-boxes.mjs +2 -3
  200. package/foundation/render/picture-chrome.mjs +18 -15
  201. package/foundation/render/picture-playwright.mjs +10 -7
  202. package/foundation/render/picture-window.d.mts +13 -0
  203. package/foundation/render/picture-window.mjs +31 -0
  204. package/foundation/render/render-page.d.mts +1 -1
  205. package/foundation/render/render-page.mjs +4 -5
  206. package/foundation/render/single-copy-hooks.d.mts +2 -0
  207. package/foundation/render/single-copy-hooks.mjs +2 -0
  208. package/foundation/response/error-codes.doc.mjs +14 -14
  209. package/foundation/response/error-codes.mjs +13 -13
  210. package/foundation/response/response-types.doc.mjs +8 -69
  211. package/foundation/runtime/css-tree.mjs +2 -2
  212. package/foundation/runtime/word-table.d.mts +1 -1
  213. package/foundation/runtime/word-table.mjs +1 -1
  214. package/foundation/suggest/other-command.d.mts +52 -15
  215. package/foundation/suggest/other-command.mjs +168 -45
  216. package/foundation/text/suggest-order.d.mts +7 -0
  217. package/foundation/text/suggest-order.mjs +1 -1
  218. package/package.json +7 -8
  219. package/api/theme-edit/_adapter.d.mts +0 -228
  220. package/api/theme-edit/_adapter.mjs +0 -2025
  221. package/api/theme-edit/_catalog.d.mts +0 -172
  222. package/api/theme-edit/_catalog.mjs +0 -806
  223. package/api/theme-edit/_check.d.mts +0 -391
  224. package/api/theme-edit/_check.mjs +0 -9370
  225. package/api/theme-edit/_color.d.mts +0 -135
  226. package/api/theme-edit/_color.mjs +0 -480
  227. package/api/theme-edit/_compiler.d.mts +0 -77
  228. package/api/theme-edit/_compiler.mjs +0 -1053
  229. package/api/theme-edit/_context.d.mts +0 -399
  230. package/api/theme-edit/_context.mjs +0 -1778
  231. package/api/theme-edit/_css.d.mts +0 -169
  232. package/api/theme-edit/_css.mjs +0 -1167
  233. package/api/theme-edit/_edit.d.mts +0 -167
  234. package/api/theme-edit/_edit.mjs +0 -11220
  235. package/api/theme-edit/_how-commands.d.mts +0 -315
  236. package/api/theme-edit/_how-commands.mjs +0 -1664
  237. package/api/theme-edit/_how-question.d.mts +0 -341
  238. package/api/theme-edit/_how-question.mjs +0 -33291
  239. package/api/theme-edit/_how-sides.d.mts +0 -22
  240. package/api/theme-edit/_how-sides.mjs +0 -173
  241. package/api/theme-edit/_how-steps.d.mts +0 -42
  242. package/api/theme-edit/_how-steps.mjs +0 -208
  243. package/api/theme-edit/_how-values.d.mts +0 -29
  244. package/api/theme-edit/_how-values.mjs +0 -111
  245. package/api/theme-edit/_how-words.d.mts +0 -15
  246. package/api/theme-edit/_how-words.mjs +0 -239
  247. package/api/theme-edit/_how.d.mts +0 -55
  248. package/api/theme-edit/_how.mjs +0 -2388
  249. package/api/theme-edit/_importers.d.mts +0 -38
  250. package/api/theme-edit/_importers.mjs +0 -188
  251. package/api/theme-edit/_marks.d.mts +0 -39
  252. package/api/theme-edit/_marks.mjs +0 -67
  253. package/api/theme-edit/_missed.d.mts +0 -56
  254. package/api/theme-edit/_missed.mjs +0 -1128
  255. package/api/theme-edit/_name-rule.d.mts +0 -11
  256. package/api/theme-edit/_name-rule.mjs +0 -12
  257. package/api/theme-edit/_normal.d.mts +0 -365
  258. package/api/theme-edit/_normal.mjs +0 -1978
  259. package/api/theme-edit/_overview.d.mts +0 -9
  260. package/api/theme-edit/_overview.mjs +0 -293
  261. package/api/theme-edit/_palette.d.mts +0 -616
  262. package/api/theme-edit/_palette.mjs +0 -2776
  263. package/api/theme-edit/_part-pieces.d.mts +0 -54
  264. package/api/theme-edit/_part-pieces.mjs +0 -179
  265. package/api/theme-edit/_part-words.d.mts +0 -39
  266. package/api/theme-edit/_part-words.mjs +0 -242
  267. package/api/theme-edit/_parts.d.mts +0 -402
  268. package/api/theme-edit/_parts.mjs +0 -2294
  269. package/api/theme-edit/_picture-traits.d.mts +0 -259
  270. package/api/theme-edit/_picture-traits.mjs +0 -1030
  271. package/api/theme-edit/_png.d.mts +0 -94
  272. package/api/theme-edit/_png.mjs +0 -479
  273. package/api/theme-edit/_preview-app.d.mts +0 -172
  274. package/api/theme-edit/_preview-app.mjs +0 -6430
  275. package/api/theme-edit/_preview.d.mts +0 -549
  276. package/api/theme-edit/_preview.mjs +0 -3264
  277. package/api/theme-edit/_project.d.mts +0 -207
  278. package/api/theme-edit/_project.mjs +0 -643
  279. package/api/theme-edit/_resolved.d.mts +0 -46
  280. package/api/theme-edit/_resolved.mjs +0 -800
  281. package/api/theme-edit/_set-line.d.mts +0 -29
  282. package/api/theme-edit/_set-line.mjs +0 -100
  283. package/api/theme-edit/_settings.d.mts +0 -2426
  284. package/api/theme-edit/_settings.mjs +0 -18435
  285. package/api/theme-edit/_tables.d.mts +0 -227
  286. package/api/theme-edit/_tables.mjs +0 -1128
  287. package/api/theme-edit/_text-looks.d.mts +0 -78
  288. package/api/theme-edit/_text-looks.mjs +0 -376
  289. package/api/theme-edit/_vet.d.mts +0 -50
  290. package/api/theme-edit/_vet.mjs +0 -166
  291. package/api/theme-edit/how/how.d.mts +0 -17
  292. package/api/theme-edit/how/how.mjs +0 -28
  293. package/api/theme-edit/new/new.d.mts +0 -11
  294. package/api/theme-edit/new/new.mjs +0 -22
  295. package/api/theme-edit/preview-add/preview-add.d.mts +0 -14
  296. package/api/theme-edit/preview-add/preview-add.mjs +0 -25
  297. package/api/theme-edit/preview-app/preview-app.d.mts +0 -13
  298. package/api/theme-edit/preview-app/preview-app.mjs +0 -24
  299. package/api/theme-edit/preview-list/preview-list.d.mts +0 -10
  300. package/api/theme-edit/preview-list/preview-list.mjs +0 -21
  301. package/api/theme-edit/preview-remove/preview-remove.d.mts +0 -12
  302. package/api/theme-edit/preview-remove/preview-remove.mjs +0 -23
  303. package/api/theme-edit/set/set.d.mts +0 -13
  304. package/api/theme-edit/set/set.mjs +0 -24
  305. package/api/theme-edit/show/show.d.mts +0 -13
  306. package/api/theme-edit/show/show.mjs +0 -24
  307. package/api/theme-edit/theme-edit.d.mts +0 -12
  308. package/api/theme-edit/theme-edit.mjs +0 -36
  309. package/api/theme-edit/theme-edit.type.d.mts +0 -730
  310. package/api/theme-edit/theme-edit.type.mjs +0 -342
  311. package/api/theme-edit/themeEditHow.doc.d.mts +0 -6
  312. package/api/theme-edit/themeEditHow.doc.mjs +0 -105
  313. package/api/theme-edit/themeEditNew.doc.d.mts +0 -5
  314. package/api/theme-edit/themeEditNew.doc.mjs +0 -112
  315. package/api/theme-edit/themeEditPreviewAdd.doc.d.mts +0 -6
  316. package/api/theme-edit/themeEditPreviewAdd.doc.mjs +0 -121
  317. package/api/theme-edit/themeEditPreviewApp.doc.d.mts +0 -6
  318. package/api/theme-edit/themeEditPreviewApp.doc.mjs +0 -87
  319. package/api/theme-edit/themeEditPreviewList.doc.d.mts +0 -6
  320. package/api/theme-edit/themeEditPreviewList.doc.mjs +0 -62
  321. package/api/theme-edit/themeEditPreviewRemove.doc.d.mts +0 -6
  322. package/api/theme-edit/themeEditPreviewRemove.doc.mjs +0 -96
  323. package/api/theme-edit/themeEditSet.doc.d.mts +0 -6
  324. package/api/theme-edit/themeEditSet.doc.mjs +0 -175
  325. package/api/theme-edit/themeEditShow.doc.d.mts +0 -6
  326. package/api/theme-edit/themeEditShow.doc.mjs +0 -118
  327. package/api/theme-edit/themeEditUndo.doc.d.mts +0 -6
  328. package/api/theme-edit/themeEditUndo.doc.mjs +0 -133
  329. package/api/theme-edit/undo/undo.d.mts +0 -13
  330. package/api/theme-edit/undo/undo.mjs +0 -24
  331. package/assets/preview-app/README.md +0 -6
  332. package/assets/preview-app/css.d.ts +0 -5
  333. package/assets/preview-app/gitignore +0 -4
  334. package/assets/preview-app/next.config.mjs +0 -12
  335. package/assets/preview-app/package.json +0 -24
  336. package/assets/preview-app/src/app/globals.css +0 -6
  337. package/assets/preview-app/src/app/layout.tsx +0 -21
  338. package/assets/preview-app/src/app/page.tsx +0 -94
  339. package/assets/preview-app/src/app/providers.tsx +0 -16
  340. package/assets/preview-app/tsconfig.json +0 -27
  341. package/clients/cli/commands/experimental/theme.mjs +0 -2990
  342. package/clients/cli/commands/experimental-theme-add.doc.mjs +0 -80
  343. package/clients/cli/commands/experimental-theme-compile.doc.mjs +0 -98
  344. package/clients/cli/commands/experimental-theme-editor-how.doc.mjs +0 -196
  345. package/clients/cli/commands/experimental-theme-editor-new.doc.mjs +0 -174
  346. package/clients/cli/commands/experimental-theme-editor-set.doc.mjs +0 -139
  347. package/clients/cli/commands/experimental-theme-editor-show.doc.mjs +0 -77
  348. package/clients/cli/commands/experimental-theme-editor-undo.doc.mjs +0 -105
  349. package/clients/cli/commands/experimental-theme-editor.doc.mjs +0 -49
  350. package/clients/cli/commands/experimental-theme-eject.doc.mjs +0 -72
  351. package/clients/cli/commands/experimental-theme-list.doc.mjs +0 -49
  352. package/clients/cli/commands/experimental-theme-preview-add.doc.mjs +0 -88
  353. package/clients/cli/commands/experimental-theme-preview-app.doc.mjs +0 -61
  354. package/clients/cli/commands/experimental-theme-preview-list.doc.mjs +0 -48
  355. package/clients/cli/commands/experimental-theme-preview-remove.doc.mjs +0 -59
  356. package/clients/cli/commands/experimental-theme-preview.doc.mjs +0 -41
  357. package/clients/cli/commands/experimental-theme-remove.doc.mjs +0 -57
  358. package/clients/cli/commands/experimental-theme-targets.doc.mjs +0 -62
  359. package/clients/cli/commands/experimental-theme-template.doc.mjs +0 -63
  360. package/clients/cli/commands/experimental-theme-use.doc.mjs +0 -57
  361. package/clients/cli/commands/experimental-theme.doc.mjs +0 -60
  362. package/foundation/fonts/fontsource-families.generated.d.mts +0 -5
  363. package/foundation/fonts/fontsource-families.generated.mjs +0 -2110
@@ -1,616 +0,0 @@
1
- // @generated by scripts/sync-api-types.mjs from the JSDoc in api/**/*.mjs.
2
- // DO NOT EDIT — run `pnpm sync:api-types` to regenerate.
3
-
4
- /**
5
- * Give the reader of the tokens a theme's own source sets.
6
- * @param {(cwd: string, slug: string) => Record<string, string>} read
7
- */
8
- export function setOwnTokenReader(read: (cwd: string, slug: string) => Record<string, string>): void;
9
- /**
10
- * Write a file whole: a temp file beside it, renamed into place, so a link
11
- * there is replaced, never written through, and a stopped write leaves the
12
- * old file. The temp file goes whatever happens.
13
- * @param {string} file
14
- * @param {string | Buffer} text
15
- */
16
- export function writeWhole(file: string, text: string | Buffer): void;
17
- /**
18
- * A command stopped long enough for another to take its lock (Ctrl-Z, a
19
- * sleeping computer, a debugger) writes nothing more: refuse. Called right
20
- * before each write.
21
- */
22
- export function refuseIfLockLost(): void;
23
- /** Whether this command still holds its lock (true outside a lock). */
24
- export function lockHeld(): boolean;
25
- /**
26
- * A temp file beside `file` for a whole write, named so only the editor
27
- * makes such names: `.<name>.astryx-<pid>-<random>.tmp`. The write that
28
- * makes one removes it.
29
- * @param {string} file
30
- */
31
- export function tempFor(file: string): string;
32
- /** @param {string} slug */
33
- export function paletteFiles(slug: string): {
34
- config: string;
35
- palette: string;
36
- receipt: string;
37
- refs: string;
38
- importPath: string;
39
- refsImportPath: string;
40
- };
41
- /**
42
- * The seed a color dial value grows from, or null for a value with no fixed,
43
- * opaque color (a variable, a keyword, `color-mix()`, a translucent color).
44
- * @param {string} value
45
- */
46
- export function seedOf(value: string): string | null;
47
- /**
48
- * Whether a color dial's seed comes out different at two vibrancies: the
49
- * ramp the generator grows from it, light and dark, compared shade by
50
- * shade. A seed with no saturation to change (a pure gray) gives the same
51
- * ramp at every vibrancy. A gray-ish seed is grown as the editor grows it
52
- * (a neutral), so a warm or cool gray counts by what it shows.
53
- * @param {string} dial
54
- * @param {string | null} seed
55
- * @param {number} from
56
- * @param {number} to
57
- */
58
- export function vibrancyMoves(dial: string, seed: string | null, from: number, to: number): boolean;
59
- /**
60
- * The modes a theme has: one for a one-mode theme, else light and dark.
61
- * @param {{mode?: string}} data
62
- * @returns {Mode[]}
63
- */
64
- export function modesOf(data: {
65
- mode?: string;
66
- }): Mode[];
67
- /**
68
- * The seed each color family grows from now: the fill the theme's own source
69
- * sets as a fixed color, else the color setting.
70
- * @param {string} cwd
71
- * @param {string} slug
72
- * @param {{settings: Setting[]}} data
73
- */
74
- export function seedsInEffect(cwd: string, slug: string, data: {
75
- settings: Setting[];
76
- }): DialFamily[];
77
- /**
78
- * The seeds of a theme's color settings, its own source's values read:
79
- * what seedsInEffect returns, for a caller that holds those values.
80
- * @param {{settings: Setting[]}} data
81
- * @param {Record<string, string>} own the theme source's own token values
82
- */
83
- export function seedsOfSettings(data: {
84
- settings: Setting[];
85
- }, own: Record<string, string>): DialFamily[];
86
- /**
87
- * Whether `set <theme> vibrancy` changes anything: a color setting's seed
88
- * that vibrancy moves, the check set runs.
89
- * @param {{settings: Setting[]}} data
90
- * @param {Record<string, string>} own the theme source's own token values
91
- */
92
- export function vibrancyTakes(data: {
93
- settings: Setting[];
94
- }, own: Record<string, string>): boolean;
95
- /**
96
- * Whether vibrancy changes any of these seeds: the one test `set <theme>
97
- * vibrancy`, `how` and the color notes share.
98
- * @param {DialFamily[]} seeds
99
- */
100
- export function vibrancyMovesAny(seeds: DialFamily[]): boolean;
101
- /**
102
- * The token words of the status roles a theme's look derives: every role
103
- * it leaves unset, once it sets a color.
104
- * @param {{settings: Setting[]}} data
105
- * @returns {string[]}
106
- */
107
- export function derivedStatusWords(data: {
108
- settings: Setting[];
109
- }): string[];
110
- /**
111
- * The tokens a theme sets to a value of its own for the whole theme: the
112
- * change names each, apart from the colors that move with the look.
113
- * @param {{settings: Setting[]}} data
114
- * @returns {string[]}
115
- */
116
- export function exactTokens(data: {
117
- settings: Setting[];
118
- }): string[];
119
- /**
120
- * A change's token lines with the look's own (category and chart colors)
121
- * said in one line each, as counts: they move together with every look
122
- * change, and one line per value would bury the rest.
123
- * @param {unknown[]} lines - `token (mode): before -> after` lines.
124
- * @param {string[]} [statusWords] - The status words whose colors the look derives (derivedStatusWords): theirs are counted too.
125
- * @param {string[]} [exact] - Tokens the theme sets to a value of its own (exactTokens): each is named, never counted, as it did not move with the look.
126
- */
127
- export function lookCollapsed(lines: unknown[], statusWords?: string[], exact?: string[]): {
128
- lines: string[];
129
- look: string[];
130
- };
131
- /**
132
- * What the config writer decided: the config, what it kept or replaced of
133
- * a hand edit, and for each accent or status color the stop of its exact
134
- * color and whether dark mode holds it too (why not, when not).
135
- * @typedef {object} PalettePlan
136
- * @property {any} config
137
- * @property {string[]} notes
138
- * @property {Record<string, {stop: number, dark: boolean, why: string, ratio: number}>} fills
139
- * @property {boolean} [stored] the saved palette, kept as it is (a recipe this CLI does not know)
140
- */
141
- /**
142
- * Whether a theme's palette names a recipe this CLI does not know (its
143
- * colors are kept as saved, made by a newer CLI).
144
- * @param {string} cwd
145
- * @param {string} slug
146
- */
147
- export function paletteRecipeUnknown(cwd: string, slug: string): boolean;
148
- /**
149
- * Note what a theme's colors come from as saved, read as the settings
150
- * reader reads the file (its base word, its field and entry names).
151
- * @param {string} cwd
152
- * @param {string} slug
153
- * @param {any} data the settings as read, before any change
154
- */
155
- export function noteSavedColors(cwd: string, slug: string, data: any): void;
156
- /**
157
- * A theme's settings as read before any change (the ones its settings
158
- * module was built from), else as the file holds them now.
159
- * @param {string} cwd
160
- * @param {string} slug
161
- * @returns {any}
162
- */
163
- export function settingsBeforeChange(cwd: string, slug: string): any;
164
- /**
165
- * What a palette is made from, as one key to compare: the color dials and
166
- * vibrancy, and a whole-theme accent token, as {@link dialFamilies} reads
167
- * them. A change to these makes the palette again; the mode, the base and
168
- * any other color token only map it.
169
- * @param {{settings?: Setting[]} | null} d
170
- */
171
- export function paletteMadeFromKey(d: {
172
- settings?: Setting[];
173
- } | null): string | null;
174
- /**
175
- * What a theme's colors come from, as one key to compare: its mode, its
176
- * base, its color dials (and vibrancy) and its color tokens. A change that
177
- * leaves this as it was leaves the palette's colors alone.
178
- * @param {{mode?: string | null, like?: string | null, settings?: Setting[]} | null} d
179
- */
180
- export function paletteColorKey(d: {
181
- mode?: string | null;
182
- like?: string | null;
183
- settings?: Setting[];
184
- } | null): string | null;
185
- /**
186
- * Whether a theme's palette is kept exactly as saved, as one made with a
187
- * recipe this CLI does not know is ({@link planPalette}): its build keeps
188
- * what that palette made.
189
- * @param {string} cwd
190
- * @param {string} slug
191
- * @param {{mode?: string, settings: Setting[]}} data
192
- * @param {{light: Record<string, string>, dark: Record<string, string>}} [base]
193
- */
194
- export function paletteKeptAsSaved(cwd: string, slug: string, data: {
195
- mode?: string;
196
- settings: Setting[];
197
- }, base?: {
198
- light: Record<string, string>;
199
- dark: Record<string, string>;
200
- }): boolean;
201
- /**
202
- * The palette config a theme's settings ask for (see {@link planPalette}),
203
- * or null when it would hold no family.
204
- * @param {string} cwd
205
- * @param {string} slug
206
- * @param {{mode?: string, settings: Setting[]}} data
207
- * @param {{light: Record<string, string>, dark: Record<string, string>}} [base]
208
- * @returns {any}
209
- */
210
- export function paletteConfig(cwd: string, slug: string, data: {
211
- mode?: string;
212
- settings: Setting[];
213
- }, base?: {
214
- light: Record<string, string>;
215
- dark: Record<string, string>;
216
- }): any;
217
- /**
218
- * Write the palette config, palette and receipt the settings ask for, with
219
- * the same generator as `theme palette generate --out`; remove them all
220
- * when no family is left. The palette is generated again when the config
221
- * changes, when a file is missing, or when it came from another generator
222
- * version. A palette edited by hand ({@link paletteEdited}) is never
223
- * overwritten: a change that would rewrite it is refused with the commands
224
- * that keep or discard the edit; a change that leaves it alone goes ahead. Gives back what the config writer kept or replaced
225
- * of a hand edit, for the result notes.
226
- * @param {string} cwd
227
- * @param {string} slug
228
- * @param {{mode?: string, settings: Setting[], palette?: string}} data
229
- * `palette`: the hash of the config the editor wrote, kept in the settings
230
- * @param {{light: Record<string, string>, dark: Record<string, string>}} [base]
231
- * @returns {string[]}
232
- */
233
- export function syncPalette(cwd: string, slug: string, data: {
234
- mode?: string;
235
- settings: Setting[];
236
- palette?: string;
237
- }, base?: {
238
- light: Record<string, string>;
239
- dark: Record<string, string>;
240
- }): string[];
241
- /**
242
- * The record of the files the editor wrote into a theme folder,
243
- * `themes/<theme>/<theme>.pictures.json`: each by name, with the hash of
244
- * what was written (its pictures and its color config). The one reader and
245
- * writer of that record.
246
- * @param {string} cwd
247
- * @param {string} slug
248
- * @returns {Record<string, string>}
249
- */
250
- export function readWrittenRecord(cwd: string, slug: string): Record<string, string>;
251
- /**
252
- * The record of what the editor wrote, read from a theme folder as it is
253
- * (a copy of one included); empty when there is none or it is damaged.
254
- * @param {string} dir
255
- * @param {string} slug
256
- * @returns {Record<string, string>}
257
- */
258
- export function readRecordIn(dir: string, slug: string): Record<string, string>;
259
- /**
260
- * Write the record whole, or remove it when it names nothing. A record that
261
- * cannot be written leaves nothing removed later: the safe way round.
262
- * @param {string} cwd
263
- * @param {string} slug
264
- * @param {Record<string, string>} map
265
- */
266
- export function writeWrittenRecord(cwd: string, slug: string, map: Record<string, string>): void;
267
- /**
268
- * Note a file the editor wrote into a theme folder, by name with the hash
269
- * of what it wrote, or forget it (null).
270
- * @param {string} cwd
271
- * @param {string} slug
272
- * @param {string} name
273
- * @param {string | null} hash
274
- */
275
- export function noteWritten(cwd: string, slug: string, name: string, hash: string | null): void;
276
- /**
277
- * Whether a theme's palette file was edited by hand. Its bytes match its
278
- * receipt, or its colors (read as data, so formatting, a BOM or semicolons
279
- * never count) are the ones the generator gives for the request it came
280
- * from: the receipt's, else the config the editor wrote. Without a receipt
281
- * and with a config edited by hand since, the request is unknown; then the
282
- * file counts as the editor's when it holds every shade the theme ships
283
- * (the selected-stops file) unchanged. False when there is no palette file.
284
- * @param {string} cwd
285
- * @param {string} slug
286
- */
287
- export function paletteEdited(cwd: string, slug: string): boolean;
288
- /**
289
- * Refuse generated text that still holds a stop placeholder: the CSS would
290
- * carry it as a value no browser reads.
291
- * @param {string} file shown in the refusal
292
- * @param {string} text
293
- */
294
- export function assertNoPlaceholder(file: string, text: string): void;
295
- /**
296
- * The module of only the stops a generated settings source reads, in the
297
- * shape `scripts/generate-selected-palette-refs.mjs` gives the official
298
- * themes, or null when it reads none.
299
- * @param {string} slug
300
- * @param {Candidate} candidate
301
- * @param {string} source
302
- * @returns {string | null}
303
- */
304
- export function paletteRefsSource(slug: string, candidate: Candidate, source: string): string | null;
305
- /**
306
- * Write the selected stops module beside the palette for a generated
307
- * settings source, or remove it when the source reads no stop. A source
308
- * that still holds a stop placeholder is refused.
309
- * @param {string} cwd
310
- * @param {string} slug
311
- * @param {string} source the generated settings source
312
- * @param {PaletteMapping | null} pal
313
- */
314
- export function syncPaletteRefs(cwd: string, slug: string, source: string, pal: PaletteMapping | null): void;
315
- /**
316
- * A family's ramp in each mode, as the theme makes it: the palette's own
317
- * family when its color settings define one; for the neutral family, else
318
- * the grays grown from the theme's secondary text (every theme has its
319
- * grays); null for another family the palette does not define.
320
- * @param {string} cwd
321
- * @param {string} slug
322
- * @param {import('./_settings.mjs').ThemeData} data
323
- * @param {{light: Record<string, string>, dark: Record<string, string>}} base
324
- * @param {string} family
325
- * @returns {{light: Record<string, string>, dark: Record<string, string>} | null}
326
- */
327
- export function familyRamp(cwd: string, slug: string, data: import("./_settings.mjs").ThemeData, base: {
328
- light: Record<string, string>;
329
- dark: Record<string, string>;
330
- }, family: string): {
331
- light: Record<string, string>;
332
- dark: Record<string, string>;
333
- } | null;
334
- /**
335
- * The colors and token mapping of a theme's palette, or null when it sets no
336
- * color dial. Reads the config the settings ask for and runs the generator
337
- * in memory, so it matches the palette file `syncPalette` writes.
338
- * @param {string} cwd
339
- * @param {string} slug
340
- * @param {{mode?: string, settings: Setting[]}} data - The theme's settings (a whole ThemeData, or the settings with one left out).
341
- * @param {{light: Record<string, string>, dark: Record<string, string>}} base
342
- * @param {Record<string, unknown>} tokenDefaults
343
- * @returns {PaletteMapping | null}
344
- */
345
- export function paletteMapping(cwd: string, slug: string, data: {
346
- mode?: string;
347
- settings: Setting[];
348
- }, base: {
349
- light: Record<string, string>;
350
- dark: Record<string, string>;
351
- }, tokenDefaults: Record<string, unknown>): PaletteMapping | null;
352
- /**
353
- * The color dial whose generated colors a token belongs to, or null: an
354
- * exact setting of it changes what that dial's mapping picks around it.
355
- * @param {string} token
356
- * @returns {string | null}
357
- */
358
- export function paletteDialOf(token: string): string | null;
359
- /**
360
- * Where each token starts, for `how`: `token: light stop L, dark stop D`.
361
- * @param {string} dial
362
- * @returns {string[]}
363
- */
364
- export function mappingRows(dial: string): string[];
365
- /**
366
- * A contrast check's identity: its token, its mode and what it is measured
367
- * on, whatever ratio or shade it reaches. The same check before and after a
368
- * change has the same key, as a text or border problem's key does.
369
- * @param {ContrastCheck} c
370
- */
371
- export function paletteCheckKey(c: ContrastCheck): string;
372
- /**
373
- * The contrast checks a dial's colors fail, as their notes say them, each
374
- * with its identity ({@link paletteCheckKey}), to tell the checks a change
375
- * made fail from the ones that failed before it.
376
- * @param {PaletteMapping | null} pal
377
- * @param {string} dial
378
- * @param {Mode[]} [modes] the modes the theme has
379
- * @returns {Array<{key: string, text: string}>}
380
- */
381
- export function paletteFailures(pal: PaletteMapping | null, dial: string, modes?: Mode[]): Array<{
382
- key: string;
383
- text: string;
384
- }>;
385
- /**
386
- * The identities of every contrast check a palette fails, whatever its
387
- * dial: what a change compares its own failures with.
388
- * @param {PaletteMapping | null} pal
389
- * @returns {Set<string>}
390
- */
391
- export function paletteFailedKeys(pal: PaletteMapping | null): Set<string>;
392
- /**
393
- * What the look did to the category colors (Badge, Token, Card tints), the
394
- * chart colors and the status roles: one line with the accent's notes, and
395
- * what a set gave up to stay written with every dial's.
396
- * @param {PaletteMapping} pal
397
- * @param {string} dial
398
- * @param {string} [slug]
399
- * @param {boolean} [vibrancyRuns] whether `set <theme> vibrancy` changes
400
- * anything (vibrancyTakes): only then is a higher vibrancy advised
401
- */
402
- export function categoryNotes(pal: PaletteMapping, dial: string, slug?: string, vibrancyRuns?: boolean): string[];
403
- /**
404
- * What one color dial did, for the result notes: what its main token uses
405
- * in each mode, every token contrast moved, and last the generated files.
406
- * What the config writer kept or replaced of a hand edit comes from the
407
- * build ({@link syncPalette}).
408
- * @param {PaletteMapping | null} pal
409
- * @param {string} dial
410
- * @param {string} slug
411
- * @param {Mode[]} [modes] the modes the theme has
412
- * @param {boolean} [vibrancyRuns] whether `set <theme> vibrancy` changes
413
- * anything (vibrancyTakes)
414
- * @returns {string[]}
415
- */
416
- export function paletteNotes(pal: PaletteMapping | null, dial: string, slug: string, modes?: Mode[], vibrancyRuns?: boolean): string[];
417
- export function isEditorTemp(name: string): boolean;
418
- export function paletteImport(slug: string): string;
419
- export function isGraySeed(seed: string | null): boolean;
420
- /**
421
- * The first line of the empty palette module the preview writes for a
422
- * Colors page it keeps (changed by hand) once the theme has no colors, so
423
- * the app still builds. The editor replaces it freely.
424
- */
425
- export const PALETTE_STAND_IN: "// A stand-in for a preview page that imports this file: the theme has no generated colors.";
426
- /** Every token a color dial can point at a generated shade. */
427
- export const PALETTE_TOKENS: Set<string>;
428
- /**
429
- * What the config writer decided: the config, what it kept or replaced of
430
- * a hand edit, and for each accent or status color the stop of its exact
431
- * color and whether dark mode holds it too (why not, when not).
432
- */
433
- export type PalettePlan = {
434
- config: any;
435
- notes: string[];
436
- fills: Record<string, {
437
- stop: number;
438
- dark: boolean;
439
- why: string;
440
- ratio: number;
441
- }>;
442
- /**
443
- * the saved palette, kept as it is (a recipe this CLI does not know)
444
- */
445
- stored?: boolean | undefined;
446
- };
447
- export type Mode = "light" | "dark";
448
- export type Setting = import("./_settings.mjs").Setting;
449
- export type Candidate = import("../theme/theme.type.mjs").TonalPaletteCandidate;
450
- /**
451
- * One token pointed at a palette stop in each mode.
452
- */
453
- export type StopRef = {
454
- stop: number;
455
- /**
456
- * - The stop's color, with `alpha` appended when set.
457
- */
458
- color: string;
459
- /**
460
- * - Two hex digits of opacity.
461
- */
462
- alpha?: string | undefined;
463
- /**
464
- * - The family the stop is from when it is not the token's own: `neutral` for text on a fill, or `black` / `white`, the palette's own ends.
465
- */
466
- family?: string | undefined;
467
- /**
468
- * - The stop holds the seed's exact color (an exact anchor).
469
- */
470
- exact?: boolean | undefined;
471
- /**
472
- * - The half is the base theme's own value in that mode (family `literal`): the generated module reads it from the base, so the mode follows the base theme.
473
- */
474
- base?: boolean | undefined;
475
- };
476
- /**
477
- * One contrast check behind a stop choice.
478
- */
479
- export type ContrastCheck = {
480
- token: string;
481
- mode: Mode;
482
- stop: number;
483
- /**
484
- * - The stop the mapping starts from.
485
- */
486
- preferred: number;
487
- /**
488
- * - What it was measured on.
489
- */
490
- against: string;
491
- /**
492
- * - The lowest ratio over everything it was measured on.
493
- */
494
- ratio: number;
495
- needs: number;
496
- pass: boolean;
497
- /**
498
- * - The whole sentence to report, when the check is not a plain stop move.
499
- */
500
- note?: string | undefined;
501
- /**
502
- * - The color dials whose notes report it, when its token belongs to none of them.
503
- */
504
- dials?: string[] | undefined;
505
- /**
506
- * - The nearest setting that passes it, when one does: a darker exact color for a pale fill.
507
- */
508
- fix?: {
509
- thing: string;
510
- value: string;
511
- mode?: Mode;
512
- } | undefined;
513
- };
514
- /**
515
- * A color dial's family: its seed, and the source token that gives it when
516
- * the theme's own source sets the family's fill (null when the setting does).
517
- * An accent set as a token carries the one mode it is for.
518
- */
519
- export type DialFamily = {
520
- id: string;
521
- dial: string;
522
- seed: string;
523
- value: string;
524
- source: string | null;
525
- only?: "light" | "dark";
526
- };
527
- /**
528
- * The palette mapping of a theme.
529
- */
530
- export type PaletteMapping = {
531
- candidate: Candidate;
532
- families: DialFamily[];
533
- tokens: Record<string, {
534
- family: string;
535
- light: StopRef;
536
- dark: StopRef;
537
- }>;
538
- contrast: ContrastCheck[];
539
- /**
540
- * - Whether the palette is kept as saved (made with a recipe this CLI does not know): its colors cannot change here.
541
- */
542
- stored?: boolean | undefined;
543
- /**
544
- * - The generator's vibrancy, 0 to 100.
545
- */
546
- vibrancy: number;
547
- /**
548
- * - Main tokens the theme sets exactly, the value per mode: the dial's fill gives way to them.
549
- */
550
- exact: Record<string, Partial<Record<Mode, string>>>;
551
- /**
552
- * - Main tokens the theme sets exactly to a value the editor cannot read as one color in some mode, as written: the text on them is not picked for that value.
553
- */
554
- unread?: Record<string, string> | undefined;
555
- /**
556
- * - What the config writer kept or replaced of a hand edit.
557
- */
558
- notes: string[];
559
- /**
560
- * - Whether the category colors (Badge, Token, Card tints) and the chart colors follow the look, and what they gave up to stay written.
561
- */
562
- categories?: {
563
- badges: "derived" | "none";
564
- chart: "derived" | "none";
565
- limits: string[];
566
- moved: string[];
567
- alike: boolean;
568
- unread: boolean;
569
- } | undefined;
570
- /**
571
- * - Status fills someone red-weak or green-weak may not tell apart.
572
- */
573
- cvd?: {
574
- a: string;
575
- b: string;
576
- vision: "red-weak" | "green-weak";
577
- mode: Mode;
578
- colors: [string, string];
579
- page?: string;
580
- pages?: string[];
581
- }[] | undefined;
582
- /**
583
- * - The code colors that keep the base theme's because none of their family's stops reads on the code background and the page.
584
- */
585
- code?: string[] | undefined;
586
- /**
587
- * - The look's colors kept at the base theme's in a mode, because a text/fill pair the base theme draws with them would not read.
588
- */
589
- kept?: {
590
- token: string;
591
- mode: Mode;
592
- pair: import("../theme/palette/generate/mapping.mjs").BasePair;
593
- ratio: number;
594
- }[] | undefined;
595
- /**
596
- * - The status roles the theme leaves unset, each derived from the look, and what they gave up to stay written.
597
- */
598
- statuses?: {
599
- roles: Record<string, "derived">;
600
- why: string[];
601
- short: string[];
602
- } | undefined;
603
- /**
604
- * - Lifted secondary text per background token of LIFT_PARTS (the accent tint, the neutral track), per mode, from the neutral color; null without one.
605
- */
606
- lift: Record<string, Partial<Record<Mode, StopRef>>> | null;
607
- };
608
- import { readRegularFile } from '../../foundation/fs/regular-file.mjs';
609
- import { LIFT_PARTS } from '../theme/palette/generate/mapping.mjs';
610
- import { PALETTE_DIALS } from '../theme/palette/generate/mapping.mjs';
611
- import { VIBRANCY_DEFAULT } from '../theme/palette/generate/mapping.mjs';
612
- import { nearestShade } from '../theme/palette/generate/mapping.mjs';
613
- import { paletteToken } from '../theme/palette/generate/mapping.mjs';
614
- import { isLookToken } from '../theme/palette/generate/mapping.mjs';
615
- import { STATUS_TOKEN } from '../theme/palette/generate/mapping.mjs';
616
- export { readRegularFile, LIFT_PARTS, PALETTE_DIALS, VIBRANCY_DEFAULT, nearestShade, paletteToken, isLookToken, STATUS_TOKEN };