@astryxdesign/cli 0.7.0-canary.21875fc → 0.7.0-canary.291c4e9

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 (224) hide show
  1. package/README.md +79 -84
  2. package/api/build/build.mjs +9 -0
  3. package/api/component/_adapter.d.mts +2 -0
  4. package/api/component/_adapter.mjs +3 -1
  5. package/api/component/component.doc.mjs +5 -1
  6. package/api/docs/compiled-topics.test.mjs +16 -0
  7. package/api/doctor/doctor.doc.mjs +1 -1
  8. package/api/doctor/doctor.test.mjs +28 -0
  9. package/api/doctor/theme-checks.mjs +10 -10
  10. package/api/doctor/theme-checks.test.mjs +5 -4
  11. package/api/gap-report/gap-report.doc.mjs +1 -1
  12. package/api/gap-report/gap-report.mjs +15 -0
  13. package/api/gap-report/gap-report.test.mjs +1 -1
  14. package/api/index.d.mts +0 -2
  15. package/api/index.mjs +0 -2
  16. package/api/init/init.doc.mjs +5 -1
  17. package/api/init/init.mjs +22 -0
  18. package/api/init/init.type.d.mts +4 -1
  19. package/api/init/init.type.mjs +1 -1
  20. package/api/init/remove/remove.mjs +8 -3
  21. package/api/init/remove/remove.test.mjs +12 -0
  22. package/api/init/run/run.d.mts +1 -1
  23. package/api/init/run/run.mjs +3 -3
  24. package/api/integration/pack-check.test.mjs +8 -0
  25. package/api/integration/validate-integration.d.mts +4 -0
  26. package/api/integration/validate-integration.mjs +5 -2
  27. package/api/integration/validateIntegration.doc.mjs +1 -1
  28. package/api/json/index.ts +0 -1
  29. package/api/search/search.doc.mjs +1 -1
  30. package/api/search/search.mjs +1 -1
  31. package/api/search/search.test.mjs +1 -1
  32. package/api/search/search.type.d.mts +1 -1
  33. package/api/search/search.type.mjs +1 -1
  34. package/api/template/list/list.mjs +23 -2
  35. package/api/template/list/list.test.mjs +52 -0
  36. package/api/template/template-integration.test.mjs +37 -100
  37. package/api/template/template.doc.mjs +8 -3
  38. package/api/template/template.mjs +45 -0
  39. package/api/template/template.type.mjs +1 -1
  40. package/api/theme/_adapter.mjs +3 -3
  41. package/api/theme/add/add.d.mts +11 -5
  42. package/api/theme/add/add.mjs +19 -192
  43. package/api/theme/add/add.test.mjs +68 -258
  44. package/api/theme/add/add.types.test.mjs +0 -1
  45. package/api/theme/build/build.d.mts +3 -4
  46. package/api/theme/build/build.mjs +26 -65
  47. package/api/theme/build/build.test.mjs +11 -24
  48. package/api/theme/build/family.mjs +1 -1
  49. package/api/theme/eject/eject.copy-compat.test.mjs +168 -0
  50. package/api/theme/integration-themes.test.mjs +3 -3
  51. package/api/theme/remove/remove.test.mjs +1 -1
  52. package/api/theme/targets/targets.test.mjs +0 -4
  53. package/api/theme/template/template.mjs +1 -1
  54. package/api/theme/theme.type.d.mts +1 -30
  55. package/api/theme/theme.type.mjs +3 -13
  56. package/api/theme/themeAdd.doc.mjs +19 -27
  57. package/api/theme/themeTargets.doc.mjs +3 -4
  58. package/api/theme/themeTemplate.doc.mjs +1 -1
  59. package/api/theme/use/use.test.mjs +1 -1
  60. package/api/upgrade/upgrade.doc.mjs +1 -1
  61. package/api/upgrade/upgrade.mjs +19 -0
  62. package/assets/codemods/transforms/next/__tests__/migrate-deprecated-theme-surface.test.mjs +322 -0
  63. package/assets/codemods/transforms/next/__tests__/migrate-field-input-styling.test.mjs +108 -0
  64. package/assets/codemods/transforms/next/__tests__/validate-data-token-ownership.test.mjs +84 -0
  65. package/assets/codemods/transforms/next/index.mjs +27 -1
  66. package/assets/codemods/transforms/next/migrate-deprecated-theme-surface-v0.6-data.mjs +229 -0
  67. package/assets/codemods/transforms/next/migrate-deprecated-theme-surface.mjs +624 -0
  68. package/assets/codemods/transforms/next/migrate-field-input-styling.mjs +198 -0
  69. package/assets/codemods/transforms/next/validate-data-token-ownership.mjs +102 -0
  70. package/assets/codemods/transforms/v0.6.0/migrate-astryx-theme-selectors-to-data-attrs.mjs +38 -18
  71. package/assets/docs/author-a-theme.doc.mjs +5 -5
  72. package/assets/docs/getting-started.doc.mjs +2 -2
  73. package/assets/docs/theme.doc.dense.mjs +1 -1
  74. package/assets/docs/theme.doc.mjs +2 -2
  75. package/assets/docs/tree/add-a-theme.doc.mjs +1 -1
  76. package/assets/docs/tree/document-the-theme.doc.mjs +2 -2
  77. package/assets/docs/tree/fonts-and-assets.doc.mjs +3 -3
  78. package/assets/docs/tree/styling-advanced.doc.mjs +21 -14
  79. package/assets/docs/tree/themes.doc.mjs +1 -1
  80. package/assets/docs/tree/tokens-data.doc.mjs +2 -2
  81. package/assets/docs/tree/tokens-usage.doc.mjs +1 -1
  82. package/assets/docs/tree/use-a-theme-in-an-app.doc.mjs +2 -2
  83. package/assets/docs/tree/versioning.doc.mjs +1 -4
  84. package/assets/docs/use-a-theme.doc.mjs +16 -16
  85. package/assets/templates/blocks/components/ComplexSelector/ComplexSelectorDeadlinePicker.tsx +1 -1
  86. package/assets/templates/blocks/components/ComplexSelector/ComplexSelectorShowcase.tsx +1 -1
  87. package/assets/templates/blocks/components/ComplexSelector/ComplexSelectorTreeSearch.tsx +1 -1
  88. package/assets/templates/blocks/components/InternationalizationProvider/InternationalizationProvider01ShippedLocale.tsx +1 -1
  89. package/assets/templates/blocks/components/InternationalizationProvider/InternationalizationProvider02Overrides.tsx +1 -1
  90. package/assets/templates/blocks/components/Selector/SelectorClearable.tsx +1 -1
  91. package/assets/templates/blocks/components/Selector/SelectorOptionDescriptions.tsx +2 -2
  92. package/assets/templates/blocks/components/Selector/SelectorShowcase.tsx +1 -1
  93. package/assets/templates/blocks/components/Selector/SelectorWithSections.tsx +1 -1
  94. package/assets/templates/blocks/components/SelectorOption/SelectorOptionBasic.tsx +1 -1
  95. package/assets/templates/blocks/components/SelectorOption/SelectorOptionShowcase.tsx +1 -1
  96. package/assets/templates/blocks/components/Slider/SliderFormattedValue.tsx +1 -1
  97. package/assets/templates/blocks/components/Slider/SliderRangeSlider.tsx +1 -1
  98. package/assets/templates/blocks/components/Slider/SliderShowcase.tsx +1 -1
  99. package/assets/templates/blocks/components/Slider/SliderWithMarks.tsx +1 -1
  100. package/assets/templates/blocks/components/Tokenizer/TokenizerClear.tsx +1 -1
  101. package/assets/templates/blocks/components/Tokenizer/TokenizerCreatable.tsx +2 -2
  102. package/assets/templates/blocks/components/Tokenizer/TokenizerEndContent.tsx +1 -1
  103. package/assets/templates/blocks/components/Tokenizer/TokenizerIcon.tsx +1 -1
  104. package/assets/templates/blocks/components/Tokenizer/TokenizerMaxEntries.tsx +1 -1
  105. package/assets/templates/blocks/components/Tokenizer/TokenizerOverflow.tsx +2 -2
  106. package/assets/templates/blocks/components/Tokenizer/TokenizerShowcase.tsx +1 -1
  107. package/assets/templates/blocks/components/Tokenizer/TokenizerStates.tsx +4 -4
  108. package/assets/templates/blocks/components/Toolbar/ToolbarTableFilter.tsx +1 -1
  109. package/assets/templates/pages/canvas-editor/page.tsx +2 -2
  110. package/assets/templates/pages/form-wizard-vertical/page.tsx +1 -1
  111. package/assets/templates/pages/payment-form/page.tsx +1 -1
  112. package/assets/templates/pages/table-filter/page.tsx +3 -3
  113. package/assets/templates/pages/theme-showcase/page.tsx +2 -2
  114. package/assets/templates/themes/neutral/neutralPaletteRefs.generated.ts +10 -9
  115. package/authoring/debug/type.ts +2 -2
  116. package/authoring/doctypes/base/type.ts +0 -9
  117. package/authoring/integration/integration.doc.mjs +1 -1
  118. package/clients/cli/command-result-coverage.test.mjs +1 -1
  119. package/clients/cli/commands/build-theme.adaptations.test.mjs +4 -0
  120. package/clients/cli/commands/build-theme.ascii-output.test.mjs +35 -8
  121. package/clients/cli/commands/build-theme.color-scheme.test.mjs +10 -6
  122. package/clients/cli/commands/build-theme.data-tokens.test.mjs +23 -75
  123. package/clients/cli/commands/build-theme.mjs +31 -67
  124. package/clients/cli/commands/build-theme.registry.test.mjs +0 -10
  125. package/clients/cli/commands/build.doc.mjs +1 -1
  126. package/clients/cli/commands/build.mjs +1 -1
  127. package/clients/cli/commands/component-ownership.test.mjs +2 -2
  128. package/clients/cli/commands/debug-result-summary.test.mjs +0 -16
  129. package/clients/cli/commands/discover.mjs +2 -1
  130. package/clients/cli/commands/doctor.mjs +5 -2
  131. package/clients/cli/commands/empty-argument.test.mjs +16 -0
  132. package/clients/cli/commands/gap-report.doc.mjs +1 -1
  133. package/clients/cli/commands/gap-report.test.mjs +2 -2
  134. package/clients/cli/commands/init.doc.mjs +4 -4
  135. package/clients/cli/commands/init.flag-help.test.mjs +7 -10
  136. package/clients/cli/commands/init.next-steps.test.mjs +1 -1
  137. package/clients/cli/commands/integration.mjs +2 -1
  138. package/clients/cli/commands/option-pair-refusals.test.mjs +37 -0
  139. package/clients/cli/commands/search.test.mjs +1 -1
  140. package/clients/cli/commands/silent-success-refusals.test.mjs +15 -0
  141. package/clients/cli/commands/swizzle.mjs +4 -1
  142. package/clients/cli/commands/template.doc.mjs +4 -4
  143. package/clients/cli/commands/template.flag-help.test.mjs +18 -11
  144. package/clients/cli/commands/template.mjs +7 -1
  145. package/clients/cli/commands/text-json-parity.test.mjs +0 -17
  146. package/clients/cli/commands/theme-add-lifecycle.test.mjs +142 -49
  147. package/clients/cli/commands/theme-add.doc.mjs +10 -17
  148. package/clients/cli/commands/theme-list.behavior.test.mjs +2 -1
  149. package/clients/cli/commands/theme-targets.behavior.test.mjs +8 -6
  150. package/clients/cli/commands/theme-template.doc.mjs +1 -1
  151. package/clients/cli/commands/theme.doc.mjs +2 -2
  152. package/clients/cli/commands/upgrade.doc.mjs +1 -1
  153. package/clients/cli/commands/upgrade.flag-help.test.mjs +7 -11
  154. package/clients/cli/commands/validate-nothing-exits-nonzero.test.mjs +67 -0
  155. package/clients/cli/index.mjs +0 -4
  156. package/clients/cli/lib/cli-error.mjs +19 -0
  157. package/clients/cli/lib/component-format.mjs +111 -57
  158. package/clients/cli/lib/component-format.test.mjs +28 -39
  159. package/clients/cli/lib/doc-text-ascii.test.mjs +5 -2
  160. package/clients/cli/lib/exit-codes.test.mjs +0 -7
  161. package/clients/cli/lib/json-shim.test.mjs +0 -24
  162. package/foundation/agent-docs/agent-docs.d.mts +2 -1
  163. package/foundation/agent-docs/agent-docs.mjs +6 -1
  164. package/foundation/agent-docs/app-theme-workflow.test.mjs +3 -0
  165. package/foundation/config/theme-state.mjs +3 -3
  166. package/foundation/debug/debug-fields.test.mjs +13 -35
  167. package/foundation/debug/event.mjs +13 -78
  168. package/foundation/debug/privacy-contract.test.mjs +20 -12
  169. package/foundation/debug/redact.d.mts +2 -2
  170. package/foundation/debug/redact.mjs +2 -2
  171. package/foundation/discovery/template-needs.mjs +93 -11
  172. package/foundation/discovery/template-needs.test.mjs +106 -3
  173. package/foundation/discovery/theme-imports.mjs +1 -1
  174. package/foundation/discovery/theming-targets.d.mts +1 -20
  175. package/foundation/discovery/theming-targets.mjs +1 -38
  176. package/foundation/discovery/theming-targets.test.mjs +9 -175
  177. package/foundation/doc-compiler/doc-loads.test.mjs +0 -12
  178. package/foundation/env/package-manager.d.mts +13 -0
  179. package/foundation/env/package-manager.mjs +106 -63
  180. package/foundation/response/error-codes.doc.mjs +1 -1
  181. package/foundation/response/response-types.doc.mjs +11 -31
  182. package/foundation/response/response-types.doc.test.mjs +36 -14
  183. package/foundation/response/response.doc.mjs +1 -1
  184. package/foundation/xle/browser.d.mts +2 -2
  185. package/foundation/xle/browser.mjs +2 -2
  186. package/foundation/xle/expand.mjs +1 -1
  187. package/foundation/xle/print.mjs +1 -1
  188. package/package.json +9 -9
  189. package/api/layout/_adapter.d.mts +0 -34
  190. package/api/layout/_adapter.mjs +0 -148
  191. package/api/layout/check/check.d.mts +0 -17
  192. package/api/layout/check/check.mjs +0 -41
  193. package/api/layout/expand/expand.d.mts +0 -23
  194. package/api/layout/expand/expand.mjs +0 -161
  195. package/api/layout/expand/expand.path-safety.test.mjs +0 -53
  196. package/api/layout/expand/expand.receipt.test.mjs +0 -74
  197. package/api/layout/grammar/grammar.d.mts +0 -14
  198. package/api/layout/grammar/grammar.mjs +0 -88
  199. package/api/layout/layout.d.mts +0 -6
  200. package/api/layout/layout.mjs +0 -17
  201. package/api/layout/layout.test.mjs +0 -297
  202. package/api/layout/layout.type.d.mts +0 -90
  203. package/api/layout/layout.type.mjs +0 -104
  204. package/api/layout/layoutCheck.doc.d.mts +0 -11
  205. package/api/layout/layoutCheck.doc.mjs +0 -85
  206. package/api/layout/layoutExpand.doc.d.mts +0 -11
  207. package/api/layout/layoutExpand.doc.mjs +0 -107
  208. package/api/layout/layoutGrammar.doc.d.mts +0 -11
  209. package/api/layout/layoutGrammar.doc.mjs +0 -57
  210. package/api/theme/add/add.binary.test.mjs +0 -157
  211. package/api/theme/add/add.rollback.test.mjs +0 -158
  212. package/api/theme/add/add.staging.test.mjs +0 -83
  213. package/clients/cli/commands/layout-check.doc.mjs +0 -67
  214. package/clients/cli/commands/layout-expand.doc.mjs +0 -87
  215. package/clients/cli/commands/layout-grammar.doc.mjs +0 -32
  216. package/clients/cli/commands/layout.deprecation-lifecycle.test.mjs +0 -140
  217. package/clients/cli/commands/layout.doc.mjs +0 -36
  218. package/clients/cli/commands/layout.error-codes.test.mjs +0 -66
  219. package/clients/cli/commands/layout.exit-parity.test.mjs +0 -41
  220. package/clients/cli/commands/layout.expand-receipt.test.mjs +0 -94
  221. package/clients/cli/commands/layout.mjs +0 -327
  222. package/clients/cli/commands/layout.path-help.test.mjs +0 -33
  223. package/clients/cli/commands/layout.stdin-cap.test.mjs +0 -47
  224. package/clients/cli/commands/layout.text-fields.test.mjs +0 -39
@@ -17,14 +17,14 @@ export const docs = {
17
17
  "order": 20
18
18
  },
19
19
  "category": "foundations",
20
- "description": "Colors for charts and graphs: one categorical accent per series, a neutral for labels and reference lines, and sequential ramps from 5 (darkest) to 1 (lightest) for ordered scales and heatmaps. Import their public StyleX variables from @astryxdesign/core/theme/dataTokens.stylex.",
20
+ "description": "Colors for charts and graphs: one categorical accent per series, a neutral for labels and reference lines, and sequential ramps from 5 (darkest) to 1 (lightest) for ordered scales and heatmaps. Import dataVars from @astryxdesign/core/theme/dataTokens.stylex for CSS-capable code. Retaining any member emits the complete 56-variable group; an unused graph emits none.",
21
21
  "sections": [
22
22
  {
23
23
  "title": "Data Visualization Tokens",
24
24
  "content": [
25
25
  {
26
26
  "type": "prose",
27
- "text": "Colors for charts and graphs: one categorical accent per series, a neutral for labels and reference lines, and sequential ramps from 5 (darkest) to 1 (lightest) for ordered scales and heatmaps. Import their public StyleX variables from @astryxdesign/core/theme/dataTokens.stylex."
27
+ "text": "Colors for charts and graphs: one categorical accent per series, a neutral for labels and reference lines, and sequential ramps from 5 (darkest) to 1 (lightest) for ordered scales and heatmaps. Import dataVars from @astryxdesign/core/theme/dataTokens.stylex for CSS-capable code. Retaining any member emits the complete 56-variable group; an unused graph emits none."
28
28
  },
29
29
  {
30
30
  "type": "table",
@@ -28,7 +28,7 @@ export const docs = {
28
28
  },
29
29
  {
30
30
  "type": "prose",
31
- "text": "See {@link namespace:styling} for how to apply tokens via xstyle, className, and compound component patterns. See {@link generic:author-a-theme} for overriding tokens with defineTheme."
31
+ "text": "Use `dataVars` for StyleX, DOM styles, and SVG presentation attributes. Canvas and other APIs that require concrete mode-resolved values use `resolveThemeToken()` or `useTheme().token()` instead. Raw CSS may use the stable custom-property names only when compiled dataVars output is guaranteed or the declaration carries an explicit fallback. See {@link namespace:styling} for xstyle, className, and compound component patterns, and {@link generic:author-a-theme} for overriding tokens with defineTheme."
32
32
  }
33
33
  ]
34
34
  }
@@ -21,12 +21,12 @@ export const docs = {
21
21
  content: [
22
22
  {
23
23
  type: 'prose',
24
- text: 'Install the integration, then run `theme add --import` with its slug and package. The command records the package owner and regenerates one app theme module that imports the built theme, production CSS, and optional font CSS. Plain `theme add` still copies source while that default is deprecated.',
24
+ text: 'Install the integration, then run `theme add` with its slug and package. The command records the package owner and regenerates one app theme module that imports the built theme, production CSS, and optional font CSS. Use `theme eject` only to copy source into an independent local fork.',
25
25
  },
26
26
  {
27
27
  type: 'code',
28
28
  lang: 'bash',
29
- code: 'npm install @acme/astryx-widgets\nnpx astryx theme add ocean --import --package @acme/astryx-widgets',
29
+ code: 'npm install @acme/astryx-widgets\nnpx astryx theme add ocean --package @acme/astryx-widgets',
30
30
  },
31
31
  {
32
32
  type: 'code',
@@ -60,10 +60,7 @@ export const docs = {
60
60
  'A template id, such as `acme-dashboard`',
61
61
  '`npx astryx template acme-dashboard`',
62
62
  ],
63
- [
64
- 'A theme slug, such as `ocean`',
65
- '`npx astryx theme add ocean --import`',
66
- ],
63
+ ['A theme slug, such as `ocean`', '`npx astryx theme add ocean`'],
67
64
  [
68
65
  'A topic name or route, such as `acme/deploying`',
69
66
  'Reads of the old name, and links to it from other docs',
@@ -19,7 +19,7 @@ export const docs = {
19
19
  type: 'code',
20
20
  lang: 'bash',
21
21
  label: 'Install and add a theme',
22
- code: 'npm install @astryxdesign/theme-neutral\nastryx theme add neutral --import',
22
+ code: 'npm install @astryxdesign/theme-neutral\nastryx theme add neutral',
23
23
  },
24
24
  {
25
25
  type: 'code',
@@ -35,7 +35,7 @@ export const docs = {
35
35
  },
36
36
  {
37
37
  type: 'prose',
38
- text: '`theme add --import` records an installed package theme and regenerates `src/astryx-themes.ts` or `.js` with its built module, production CSS, and optional font CSS. In a project without `src`, the module is at the project root. The first imported theme becomes the default. `theme use <slug>` changes that default, and `theme remove <slug>` removes a non-default theme.',
38
+ text: '`theme add` records an installed package theme and regenerates `src/astryx-themes.ts` or `.js` with its built module, production CSS, and optional font CSS. In a project without `src`, the module is at the project root. The first imported theme becomes the default. `theme use <slug>` changes that default, and `theme remove <slug>` removes a non-default theme.',
39
39
  },
40
40
  {
41
41
  type: 'prose',
@@ -58,11 +58,11 @@ export const docs = {
58
58
  },
59
59
  {
60
60
  type: 'prose',
61
- text: 'Before the upgrade runs, theme commands skip a descriptor-less copy in `src/themes`. `theme list` and doctor name it as unmigrated and show the upgrade command. A script that meant to copy source now runs `theme eject` with the same arguments. A script that meant to make the app use a theme runs `theme add --import`.',
61
+ text: 'Before the upgrade runs, theme commands skip a descriptor-less copy in `src/themes`. `theme list` and doctor name it as unmigrated and show the upgrade command. A script that meant to copy source now runs `theme eject` with the same arguments. A script that meant to make the app use a theme runs `theme add`.',
62
62
  },
63
63
  {
64
64
  type: 'prose',
65
- text: '`ASTRYX_THEME` is no longer read. Run `theme add <slug> --import` and `theme use <slug>` to choose the default in a generated app theme module. When that module exists, component metadata reads its recorded default theme. Without the module, the released `package.json#astryx.theme` lookup keeps its meaning.',
65
+ text: '`ASTRYX_THEME` is no longer read. Run `theme add <slug>` and `theme use <slug>` to choose the default in a generated app theme module. When that module exists, component metadata reads its recorded default theme. Without the module, the released `package.json#astryx.theme` lookup keeps its meaning.',
66
66
  },
67
67
  ],
68
68
  },
@@ -71,24 +71,24 @@ export const docs = {
71
71
  content: [
72
72
  {
73
73
  type: 'prose',
74
- text: 'Install the theme package you want with `npm install @astryxdesign/theme-{name}`, then import its slug with `theme add <slug> --import`. The CLI imports the package\'s built outputs for you.',
74
+ text: 'Install the theme package you want with `npm install @astryxdesign/theme-{name}`, then import its slug with `theme add <slug>`. The CLI imports the package\'s built outputs for you.',
75
75
  },
76
76
  {
77
77
  type: 'table',
78
78
  headers: ['Theme', 'Add command', 'Description'],
79
79
  rows: [
80
- ['Neutral', 'astryx theme add neutral --import', 'Muted, minimal aesthetic with Figtree typography. A good starting point.'],
81
- ['Butter', 'astryx theme add butter --import', 'Golden, buttery surfaces with blue accents; Sarina + Outfit type.'],
82
- ['Chocolate', 'astryx theme add chocolate --import', 'Warm brown tones and cozy beige; Fraunces + Albert Sans type.'],
83
- ['Gothic', 'astryx theme add gothic --import', 'Dark-only atmospheric theme; deep blue-gray surfaces, distressed display type.'],
84
- ['Matcha', 'astryx theme add matcha --import', 'Earthy greens; DM Sans + Playwrite US Trad type.'],
85
- ['Stone', 'astryx theme add stone --import', 'Warm stone and slate tones; Montserrat + Figtree type.'],
86
- ['Y2K', 'astryx theme add y2k --import', 'Playful Y2K pop; periwinkle body, holographic accents, Poppins + Crimson Text.'],
80
+ ['Neutral', 'astryx theme add neutral', 'Muted, minimal aesthetic with Figtree typography. A good starting point.'],
81
+ ['Butter', 'astryx theme add butter', 'Golden, buttery surfaces with blue accents; Sarina + Outfit type.'],
82
+ ['Chocolate', 'astryx theme add chocolate', 'Warm brown tones and cozy beige; Fraunces + Albert Sans type.'],
83
+ ['Gothic', 'astryx theme add gothic', 'Dark-only atmospheric theme; deep blue-gray surfaces, distressed display type.'],
84
+ ['Matcha', 'astryx theme add matcha', 'Earthy greens; DM Sans + Playwrite US Trad type.'],
85
+ ['Stone', 'astryx theme add stone', 'Warm stone and slate tones; Montserrat + Figtree type.'],
86
+ ['Y2K', 'astryx theme add y2k', 'Playful Y2K pop; periwinkle body, holographic accents, Poppins + Crimson Text.'],
87
87
  ],
88
88
  },
89
89
  {
90
90
  type: 'prose',
91
- text: 'Every first-party package exports its built theme at `@astryxdesign/theme-{name}/built`, production CSS at `/theme.css`, and font loading CSS at `/fonts.css`. `theme add --import` writes those imports into the generated app module.',
91
+ text: 'Every first-party package exports its built theme at `@astryxdesign/theme-{name}/built`, production CSS at `/theme.css`, and font loading CSS at `/fonts.css`. `theme add` writes those imports into the generated app module.',
92
92
  },
93
93
  ],
94
94
  },
@@ -113,11 +113,11 @@ export const docs = {
113
113
  type: 'code',
114
114
  lang: 'bash',
115
115
  label: 'Install, inspect, and add',
116
- code: 'npm install @astryxdesign/core @acme/brand-integration\nastryx theme list --package @acme/brand-integration\nastryx docs brand-theme\nastryx theme add ocean --import --package @acme/brand-integration',
116
+ code: 'npm install @astryxdesign/core @acme/brand-integration\nastryx theme list --package @acme/brand-integration\nastryx docs brand-theme\nastryx theme add ocean --package @acme/brand-integration',
117
117
  },
118
118
  {
119
119
  type: 'prose',
120
- text: '`theme add --import` keeps the owner package in the app record and imports its built module, stylesheet, and optional font stylesheet. Package updates continue to reach the app. Run `theme eject ocean --package @acme/brand-integration` only to copy the source and descriptor into `src/themes/ocean` as an independent local fork.',
120
+ text: '`theme add` keeps the owner package in the app record and imports its built module, stylesheet, and optional font stylesheet. Package updates continue to reach the app. Run `theme eject ocean --package @acme/brand-integration` only to copy the source and descriptor into `src/themes/ocean` as an independent local fork.',
121
121
  },
122
122
  ],
123
123
  },
@@ -186,7 +186,7 @@ export const docs = {
186
186
  type: 'list',
187
187
  style: 'do',
188
188
  items: [
189
- 'Use `theme add --import` for production apps; it wires the built module and CSS.',
189
+ 'Use `theme add` for production apps; it wires the built module and CSS.',
190
190
  'Import `themes` and `defaultThemeSlug` from the generated module once, and keep that wiring in development too.',
191
191
  'While you edit a local theme, run `astryx theme build --watch` so its built files stay current.',
192
192
  'Run `astryx theme build` for custom themes to get the built artifacts.',
@@ -47,7 +47,7 @@ export default function ComplexSelectorDeadlinePicker() {
47
47
  value={value}
48
48
  onChange={setValue}
49
49
  triggerLabel={formatDeadline(value)}
50
- style={{width: 320}}>
50
+ controlStyle={{width: 320}}>
51
51
  {(selectedValue, onChange, close) => {
52
52
  const set = (patch: Partial<Deadline>) =>
53
53
  onChange({...selectedValue, ...patch});
@@ -184,7 +184,7 @@ export default function ComplexSelectorShowcase() {
184
184
  value={value}
185
185
  onChange={setValue}
186
186
  triggerLabel={`${value.fruit} · ${value.ripeness}`}
187
- style={{width: 280}}>
187
+ controlStyle={{width: 280}}>
188
188
  {(selectedValue, onChange, close) => (
189
189
  <FruitRipenessGrid
190
190
  value={selectedValue}
@@ -175,7 +175,7 @@ export default function ComplexSelectorTreeSearch() {
175
175
  value={value}
176
176
  onChange={setValue}
177
177
  triggerLabel={value.path}
178
- style={{width: 360}}>
178
+ controlStyle={{width: 360}}>
179
179
  {(selectedValue, onChange, close) => (
180
180
  <DestinationSearch
181
181
  value={selectedValue}
@@ -29,7 +29,7 @@ export default function InternationalizationProviderShippedLocale() {
29
29
  <SegmentedControlItem value="fr-FR" label="FR" />
30
30
  </SegmentedControl>
31
31
  <Selector
32
- style={{width: 300}}
32
+ controlStyle={{width: 300}}
33
33
  label="Billing region"
34
34
  options={[
35
35
  {value: 'americas', label: 'Americas'},
@@ -17,7 +17,7 @@ export default function InternationalizationProviderOverrides() {
17
17
  },
18
18
  }}>
19
19
  <Selector
20
- style={{width: 300}}
20
+ controlStyle={{width: 300}}
21
21
  label="Billing region"
22
22
  options={[
23
23
  {value: 'americas', label: 'Americas'},
@@ -9,7 +9,7 @@ export default function SelectorClearable() {
9
9
  const [value, setValue] = useState<string | null>('engineering');
10
10
  return (
11
11
  <Selector
12
- style={{width: 300}}
12
+ controlStyle={{width: 300}}
13
13
  label="Department"
14
14
  options={[
15
15
  {value: 'engineering', label: 'Engineering'},
@@ -32,7 +32,7 @@ export default function SelectorOptionDescriptions() {
32
32
  return (
33
33
  <Stack direction="vertical" gap={6}>
34
34
  <Selector
35
- style={{width: 320}}
35
+ controlStyle={{width: 320}}
36
36
  label="Visibility"
37
37
  description="Default trigger: one line at the size token."
38
38
  options={VISIBILITY}
@@ -40,7 +40,7 @@ export default function SelectorOptionDescriptions() {
40
40
  onChange={setCondensed}
41
41
  />
42
42
  <Selector
43
- style={{width: 320}}
43
+ controlStyle={{width: 320}}
44
44
  label="Visibility"
45
45
  description="A stacked SelectorOption: the description gets its own line, and the trigger grows by exactly one line."
46
46
  options={VISIBILITY}
@@ -9,7 +9,7 @@ export default function SelectorShowcase() {
9
9
  const [value, setValue] = useState<string | undefined>();
10
10
  return (
11
11
  <Selector
12
- style={{width: 300}}
12
+ controlStyle={{width: 300}}
13
13
  label="Fruit"
14
14
  options={['Apple', 'Banana', 'Orange', 'Mango', 'Pineapple']}
15
15
  placeholder="Select a fruit..."
@@ -9,7 +9,7 @@ export default function SelectorWithSections() {
9
9
  const [value, setValue] = useState<string | undefined>();
10
10
  return (
11
11
  <Selector
12
- style={{width: 300}}
12
+ controlStyle={{width: 300}}
13
13
  label="Office"
14
14
  options={[
15
15
  {
@@ -22,7 +22,7 @@ export default function SelectorOptionBasic() {
22
22
 
23
23
  return (
24
24
  <Selector
25
- style={{width: 300}}
25
+ controlStyle={{width: 300}}
26
26
  label="Role"
27
27
  options={roles}
28
28
  value={value}
@@ -25,7 +25,7 @@ export default function SelectorOptionShowcase() {
25
25
 
26
26
  return (
27
27
  <Selector
28
- style={{width: 300}}
28
+ controlStyle={{width: 300}}
29
29
  label="Role"
30
30
  options={roles}
31
31
  value={value}
@@ -9,7 +9,7 @@ export default function SliderFormattedValue() {
9
9
  const [value, setValue] = useState(72);
10
10
  return (
11
11
  <Slider
12
- style={{width: 300}}
12
+ containerStyle={{width: 300}}
13
13
  label="Temperature"
14
14
  value={value}
15
15
  onChange={setValue}
@@ -12,7 +12,7 @@ export default function SliderRangeSlider() {
12
12
  label="Price range"
13
13
  value={value}
14
14
  onChange={setValue}
15
- style={{width: 300}}
15
+ containerStyle={{width: 300}}
16
16
  />
17
17
  );
18
18
  }
@@ -12,7 +12,7 @@ export default function SliderShowcase() {
12
12
  label="Volume"
13
13
  value={value}
14
14
  onChange={setValue}
15
- style={{width: 300}}
15
+ containerStyle={{width: 300}}
16
16
  />
17
17
  );
18
18
  }
@@ -9,7 +9,7 @@ export default function SliderWithMarks() {
9
9
  const [value, setValue] = useState(50);
10
10
  return (
11
11
  <Slider
12
- style={{width: 300}}
12
+ containerStyle={{width: 300}}
13
13
  label="Volume"
14
14
  value={value}
15
15
  onChange={setValue}
@@ -37,7 +37,7 @@ export default function TokenizerClear() {
37
37
  value={value}
38
38
  onChange={items => setValue(items)}
39
39
  hasClear
40
- style={{width: 400}}
40
+ containerStyle={{width: 400}}
41
41
  />
42
42
  </Stack>
43
43
  );
@@ -44,7 +44,7 @@ export default function TokenizerCreatable() {
44
44
  onChange={items => setTags(items)}
45
45
  hasCreate
46
46
  placeholder="Type a tag and press Enter..."
47
- style={{width: 400}}
47
+ containerStyle={{width: 400}}
48
48
  />
49
49
  </Stack>
50
50
  <Stack direction="vertical" gap={1}>
@@ -59,7 +59,7 @@ export default function TokenizerCreatable() {
59
59
  hasCreate
60
60
  hasEntriesOnFocus
61
61
  placeholder="Search or type a new name..."
62
- style={{width: 400}}
62
+ containerStyle={{width: 400}}
63
63
  />
64
64
  </Stack>
65
65
  </Stack>
@@ -39,7 +39,7 @@ export default function TokenizerEndContent() {
39
39
  value={value}
40
40
  onChange={items => setValue(items)}
41
41
  endContent={<Button label="Apply" variant="primary" size="sm" />}
42
- style={{width: 400}}
42
+ containerStyle={{width: 400}}
43
43
  />
44
44
  </Stack>
45
45
  );
@@ -38,7 +38,7 @@ export default function TokenizerIcon() {
38
38
  value={value}
39
39
  onChange={items => setValue(items)}
40
40
  startIcon={MagnifyingGlassIcon}
41
- style={{width: 400}}
41
+ containerStyle={{width: 400}}
42
42
  />
43
43
  </Stack>
44
44
  );
@@ -44,7 +44,7 @@ export default function TokenizerMaxEntries() {
44
44
  value={value}
45
45
  onChange={items => setValue(items)}
46
46
  maxEntries={MAX_SKILLS}
47
- style={{width: 400}}
47
+ containerStyle={{width: 400}}
48
48
  />
49
49
  </Stack>
50
50
  );
@@ -40,7 +40,7 @@ export default function TokenizerOverflow() {
40
40
  value={inlineValue}
41
41
  onChange={items => setInlineValue(items)}
42
42
  tokenOverflowBehavior="unfocusedInline"
43
- style={{width: 400, maxWidth: 400}}
43
+ containerStyle={{width: 400, maxWidth: 400}}
44
44
  />
45
45
  </Stack>
46
46
  <Stack direction="vertical" gap={1}>
@@ -54,7 +54,7 @@ export default function TokenizerOverflow() {
54
54
  value={layerValue}
55
55
  onChange={items => setLayerValue(items)}
56
56
  tokenOverflowBehavior="unfocusedLayer"
57
- style={{width: 400, maxWidth: 400}}
57
+ containerStyle={{width: 400, maxWidth: 400}}
58
58
  />
59
59
  </Stack>
60
60
  </Stack>
@@ -23,7 +23,7 @@ export default function TokenizerShowcase() {
23
23
  searchSource={source}
24
24
  value={value}
25
25
  onChange={setValue}
26
- style={{width: 400}}
26
+ containerStyle={{width: 400}}
27
27
  />
28
28
  );
29
29
  }
@@ -39,7 +39,7 @@ export default function TokenizerStates() {
39
39
  value={[users[0], users[2]]}
40
40
  onChange={() => {}}
41
41
  isDisabled
42
- style={{width: 400}}
42
+ containerStyle={{width: 400}}
43
43
  />
44
44
  <Tokenizer
45
45
  label="Error message"
@@ -49,7 +49,7 @@ export default function TokenizerStates() {
49
49
  onChange={items => setErrorValue(items)}
50
50
  isRequired
51
51
  status={{type: 'error', message: 'At least one reviewer is required'}}
52
- style={{width: 400}}
52
+ containerStyle={{width: 400}}
53
53
  />
54
54
  <Tokenizer
55
55
  label="Warning message"
@@ -61,7 +61,7 @@ export default function TokenizerStates() {
61
61
  type: 'warning',
62
62
  message: 'Consider adding at least 2 approvers',
63
63
  }}
64
- style={{width: 400}}
64
+ containerStyle={{width: 400}}
65
65
  />
66
66
  <Tokenizer
67
67
  label="Success message"
@@ -70,7 +70,7 @@ export default function TokenizerStates() {
70
70
  value={successValue}
71
71
  onChange={items => setSuccessValue(items)}
72
72
  status={{type: 'success', message: 'All required reviewers added'}}
73
- style={{width: 400}}
73
+ containerStyle={{width: 400}}
74
74
  />
75
75
  </Stack>
76
76
  );
@@ -231,7 +231,7 @@ export default function ToolbarTableFilter() {
231
231
  hasClear
232
232
  options={field.options}
233
233
  value={clauses[field.key] ?? null}
234
- xstyle={clauses[field.key] != null ? styles.filterFill : undefined}
234
+ controlXstyle={clauses[field.key] != null ? styles.filterFill : undefined}
235
235
  onChange={value => setClauses(prev => ({...prev, [field.key]: value}))}
236
236
  renderValue={option =>
237
237
  `${field.label} is ${option.label ?? option.value}`
@@ -1153,7 +1153,7 @@ function FilterRow({
1153
1153
  value={value}
1154
1154
  onChange={onChange}
1155
1155
  isWheelEnabled={false}
1156
- xstyle={styles.filterValue}
1156
+ controlXstyle={styles.filterValue}
1157
1157
  />
1158
1158
  </InspectorRow>
1159
1159
  );
@@ -2329,7 +2329,7 @@ export default function CanvasEditor() {
2329
2329
  // enough for the longest option
2330
2330
  // ("100%") to avoid truncation.
2331
2331
  width={92}
2332
- xstyle={[
2332
+ controlXstyle={[
2333
2333
  styles.toolBarControl,
2334
2334
  styles.toolBarTrailing,
2335
2335
  ]}
@@ -871,7 +871,7 @@ export default function FormWizardVerticalPage() {
871
871
  ref={fieldRefs.cover}
872
872
  label="Cover image"
873
873
  isLabelHidden
874
- style={hasCover ? dropzoneFill : undefined}
874
+ controlStyle={hasCover ? dropzoneFill : undefined}
875
875
  mode="dropzone"
876
876
  accept="image/png,image/jpeg"
877
877
  maxSize={5 * 1024 * 1024}
@@ -714,7 +714,7 @@ export default function PaymentFormPage() {
714
714
  placeholder="Enter promo code"
715
715
  value={promo}
716
716
  onChange={setPromo}
717
- style={fullWidth}
717
+ controlStyle={fullWidth}
718
718
  />
719
719
  </StackItem>
720
720
  <Button
@@ -3249,7 +3249,7 @@ export default function TableFilterTemplate() {
3249
3249
  renderValue={option =>
3250
3250
  `${field.label} ${field.operatorLabel} ${option.label ?? option.value}`
3251
3251
  }
3252
- xstyle={active ? styles.filterFill : undefined}
3252
+ controlXstyle={active ? styles.filterFill : undefined}
3253
3253
  onChange={next =>
3254
3254
  setFieldFilter(
3255
3255
  field.key,
@@ -3318,7 +3318,7 @@ export default function TableFilterTemplate() {
3318
3318
  }
3319
3319
  options={[...field.options]}
3320
3320
  value={multiValues[field.key]}
3321
- xstyle={
3321
+ controlXstyle={
3322
3322
  multiValues[field.key].length > 0 ? styles.filterFill : undefined
3323
3323
  }
3324
3324
  onChange={next => setMultiValues(field.key, next)}
@@ -3341,7 +3341,7 @@ export default function TableFilterTemplate() {
3341
3341
  value={quoteDraft}
3342
3342
  onChange={commitQuote}
3343
3343
  contentXstyle={styles.quotePopover}
3344
- xstyle={hasQuoteFilter ? styles.filterFill : undefined}>
3344
+ controlXstyle={hasQuoteFilter ? styles.filterFill : undefined}>
3345
3345
  {(range, onChange, close) => (
3346
3346
  <VStack gap={4}>
3347
3347
  <VStack gap={0}>
@@ -500,7 +500,7 @@ function StorePreview({
500
500
  max={99}
501
501
  size="sm"
502
502
  width={72}
503
- style={styles.quantityInput}
503
+ controlStyle={styles.quantityInput}
504
504
  />
505
505
  <Button
506
506
  label="Add to cart"
@@ -1143,7 +1143,7 @@ function InventoryCard({
1143
1143
  value=""
1144
1144
  onChange={() => {}}
1145
1145
  startIcon={<Search size={16} />}
1146
- style={styles.searchInput}
1146
+ controlStyle={styles.searchInput}
1147
1147
  />
1148
1148
  <OverflowList
1149
1149
  gap={2}
@@ -1,8 +1,9 @@
1
1
  // Copyright (c) Meta Platforms, Inc. and affiliates.
2
2
 
3
- // Generated from neutralPalettes.generated.ts for the stops used by
4
- // neutralTheme.ts. Keep the complete palette available for authoring and
5
- // audits, but do not make consumers pay for unused palette stops.
3
+ // Generated from the committed full palette for the stops used by Neutral's
4
+ // theme source. Regenerate with `pnpm generate:neutral-palette-refs`.
5
+ // Keep the complete palette available for authoring and audits without
6
+ // making consumers pay for unused palette stops.
6
7
  // prettier-ignore
7
8
  export const neutralPaletteRefs = {
8
9
  purple: {
@@ -10,11 +11,11 @@ export const neutralPaletteRefs = {
10
11
  dark: {25: '#4a2f51', 80: '#eaacf8'},
11
12
  },
12
13
  green: {
13
- light: {25: '#00490b', 30: '#0b5615', 40: '#237028', 45: '#2f7d33', 65: '#6ab26b', 75: '#90ca90', 80: '#a4d6a3'},
14
+ light: {25: '#00490b', 30: '#0b5615', 45: '#2f7d33', 65: '#6ab26b', 75: '#90ca90', 80: '#a4d6a3'},
14
15
  dark: {25: '#2b422b', 80: '#aad4a9', 85: '#bce0bb'},
15
16
  },
16
17
  neutral: {
17
- light: {0: '#000000', 5: '#111111', 10: '#1b1b1b', 15: '#262626', 30: '#474747', 35: '#525252', 45: '#6a6a6a', 50: '#777777', 60: '#919191', 65: '#9e9e9e', 85: '#d4d4d4', 90: '#e2e2e2', 95: '#f1f1f1', 100: '#ffffff'},
18
+ light: {0: '#000000', 5: '#111111', 10: '#1b1b1b', 30: '#474747', 45: '#6a6a6a', 60: '#919191', 85: '#d4d4d4', 90: '#e2e2e2', 95: '#f1f1f1', 100: '#ffffff'},
18
19
  dark: {0: '#000000', 5: '#111111', 10: '#1b1b1b', 15: '#262626', 20: '#303030', 35: '#525252', 65: '#9e9e9e', 85: '#d4d4d4', 90: '#e2e2e2', 95: '#f1f1f1', 100: '#ffffff'},
19
20
  },
20
21
  orange: {
@@ -26,11 +27,11 @@ export const neutralPaletteRefs = {
26
27
  dark: {25: '#253c5a', 65: '#5aa0f8', 75: '#88bcff', 80: '#a1caff'},
27
28
  },
28
29
  red: {
29
- light: {25: '#76000c', 30: '#8a0011', 35: '#9e0015', 55: '#de4745', 65: '#fa6762', 70: '#ff7f77', 80: '#ffaea7', 85: '#ffc4be'},
30
+ light: {25: '#76000c', 30: '#8a0011', 55: '#de4745', 65: '#fa6762', 70: '#ff7f77', 80: '#ffaea7', 85: '#ffc4be'},
30
31
  dark: {25: '#5b2b28', 65: '#ee736c', 75: '#ff9890', 80: '#ffaea7', 85: '#ffc4be'},
31
32
  },
32
33
  yellow: {
33
- light: {25: '#4b3900', 30: '#584400', 40: '#745b00', 65: '#c29900', 75: '#e2b623', 80: '#eec448', 85: '#f8d36a'},
34
+ light: {25: '#4b3900', 30: '#584400', 65: '#c29900', 75: '#e2b623', 80: '#eec448', 85: '#f8d36a'},
34
35
  dark: {25: '#453a1c', 80: '#e3c36c', 90: '#fae19e'},
35
36
  },
36
37
  teal: {
@@ -39,10 +40,10 @@ export const neutralPaletteRefs = {
39
40
  },
40
41
  cyan: {
41
42
  dark: {25: '#274046', 65: '#49adc4', 75: '#71c7dd', 80: '#85d5e9', 85: '#9ae2f4'},
42
- light: {25: '#004351', 30: '#00505f'},
43
+ light: {25: '#004351'},
43
44
  },
44
45
  pink: {
45
- light: {25: '#70003f', 30: '#83004b', 70: '#fc78b1', 85: '#ffc0d7'},
46
+ light: {25: '#70003f', 70: '#fc78b1', 85: '#ffc0d7'},
46
47
  dark: {25: '#572b3d', 75: '#fd92bd', 80: '#ffa9ca'},
47
48
  },
48
49
  } as const;
@@ -176,8 +176,8 @@ export interface DebugEventEnv {
176
176
  /** Legacy broad detector, retained for compatibility with existing consumers. */
177
177
  agent: string | null;
178
178
  /**
179
- * Coding-agent identity from `ASTRYX_AGENT_ID`, `AGENT`,
180
- * `ASTRYX_AGENT_METADATA`, or a known public agent signal. Scrubbed.
179
+ * Coding-agent identity from `AGENT` or a known public agent signal.
180
+ * Scrubbed.
181
181
  */
182
182
  agentIdentity: string | null;
183
183
  /**
@@ -500,15 +500,6 @@ export interface ComponentThemingTarget {
500
500
  * selectors such as `[data-checked="checked"]`. Omit if the element has no
501
501
  * state-driven selectors. */
502
502
  states?: string[];
503
- /** Set when this target has been renamed and this entry is the old name.
504
- * The component continues emitting the class through `themeProps`'s
505
- * `legacyNames`, so existing themes keep working while discovery and build
506
- * guidance prefer the replacement. The value is the canonical target key
507
- * without the `astryx-` prefix — e.g. `"checkbox-indicator"`.
508
- *
509
- * A theme target is public API; deprecation alone does not authorize
510
- * removing either this metadata or runtime support. */
511
- deprecatedFor?: string;
512
503
  }
513
504
 
514
505
  /**
@@ -58,7 +58,7 @@ export const doc = {
58
58
  name: 'themes',
59
59
  type: 'string',
60
60
  description:
61
- 'The folder that holds your themes, relative to package.json, with one folder per theme. Each theme folder has the theme source and a matching .doc.mjs file with the same name. Installed themes show up in `astryx theme list`; `theme add --import` imports their built package exports, and `theme eject` creates an editable local fork.',
61
+ 'The folder that holds your themes, relative to package.json, with one folder per theme. Each theme folder has the theme source and a matching .doc.mjs file with the same name. Installed themes show up in `astryx theme list`; `theme add` imports their built package exports, and `theme eject` creates an editable local fork.',
62
62
  example: "'./themes'",
63
63
  },
64
64
  {