@astryxdesign/cli 0.7.3 → 0.7.4-canary.10b832e

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 (75) hide show
  1. package/README.md +5 -5
  2. package/api/discover/_adapter.mjs +22 -10
  3. package/api/discover/_catalog-view.d.mts +2 -0
  4. package/api/discover/_catalog-view.mjs +1 -0
  5. package/api/discover/_catalog-view.test.mjs +1 -0
  6. package/api/discover/detail/detail.mjs +1 -0
  7. package/api/discover/detail/detail.test.mjs +3 -0
  8. package/api/discover/detail/doc/doc.mjs +5 -1
  9. package/api/discover/detail/doc/doc.test.mjs +1 -0
  10. package/api/discover/detail/item/item.mjs +2 -0
  11. package/api/discover/detail/item/item.test.mjs +2 -0
  12. package/api/discover/discover.doc.mjs +4 -4
  13. package/api/discover/discover.type.d.mts +20 -0
  14. package/api/discover/discover.type.mjs +5 -0
  15. package/api/discover/list/list.test.mjs +2 -0
  16. package/api/discover/search/search.d.mts +3 -2
  17. package/api/discover/search/search.mjs +26 -7
  18. package/api/discover/search/search.test.mjs +67 -0
  19. package/api/doctor/_adapter.d.mts +40 -0
  20. package/api/doctor/_adapter.mjs +171 -1
  21. package/api/doctor/built-checks.d.mts +85 -0
  22. package/api/doctor/built-checks.mjs +837 -0
  23. package/api/doctor/built-checks.test.mjs +531 -0
  24. package/api/doctor/doctor.d.mts +6 -5
  25. package/api/doctor/doctor.doc.mjs +10 -0
  26. package/api/doctor/doctor.mjs +18 -3
  27. package/api/doctor/doctor.type.d.mts +6 -0
  28. package/api/doctor/doctor.type.mjs +3 -0
  29. package/api/integration/pack-check.mjs +6 -1
  30. package/api/integration/pack-check.test.mjs +14 -0
  31. package/api/theme/palette/generate/generate.d.mts +8 -0
  32. package/api/theme/palette/generate/generate.mjs +38 -11
  33. package/api/theme/palette/generate/generate.test.mjs +83 -4
  34. package/api/theme/palette/generate/generator.d.mts +6 -0
  35. package/api/theme/palette/generate/generator.mjs +6 -0
  36. package/api/theme/theme.type.d.mts +12 -1
  37. package/api/theme/theme.type.mjs +7 -1
  38. package/api/theme/themePaletteGenerate.doc.mjs +1 -1
  39. package/assets/templates/blocks/components/BottomSheet/BottomSheetSwitcherReviewFlow.doc.mjs +1 -1
  40. package/assets/templates/blocks/components/BottomSheet/BottomSheetSwitcherShowcase.doc.mjs +1 -1
  41. package/assets/templates/themes/butter/butterPaletteRefs.generated.ts +54 -0
  42. package/assets/templates/themes/butter/butterPalettes.generated.receipt.json +1499 -0
  43. package/assets/templates/themes/butter/butterPalettes.generated.ts +550 -0
  44. package/assets/templates/themes/butter/butterTheme.ts +274 -234
  45. package/assets/templates/themes/butter/palette.config.json +484 -0
  46. package/assets/templates/themes/gothic/gothicPaletteRefs.generated.ts +41 -0
  47. package/assets/templates/themes/gothic/gothicPalettes.generated.receipt.json +979 -0
  48. package/assets/templates/themes/gothic/gothicPalettes.generated.ts +271 -0
  49. package/assets/templates/themes/gothic/gothicTheme.ts +130 -160
  50. package/assets/templates/themes/gothic/palette.config.json +371 -0
  51. package/assets/templates/themes/matcha/matchaPaletteRefs.generated.ts +51 -0
  52. package/assets/templates/themes/matcha/matchaPalettes.generated.receipt.json +1502 -0
  53. package/assets/templates/themes/matcha/matchaPalettes.generated.ts +501 -0
  54. package/assets/templates/themes/matcha/matchaPalettes.ts +21 -0
  55. package/assets/templates/themes/matcha/matchaTheme.ts +164 -103
  56. package/assets/templates/themes/matcha/palette.config.json +448 -0
  57. package/assets/templates/themes/stone/palette.config.json +262 -0
  58. package/assets/templates/themes/stone/stonePaletteRefs.generated.ts +51 -0
  59. package/assets/templates/themes/stone/stonePalettes.generated.receipt.json +840 -0
  60. package/assets/templates/themes/stone/stonePalettes.generated.ts +501 -0
  61. package/assets/templates/themes/stone/stoneTheme.ts +190 -207
  62. package/assets/templates/themes/y2k/palette.config.json +166 -0
  63. package/assets/templates/themes/y2k/y2kPaletteRefs.generated.ts +54 -0
  64. package/assets/templates/themes/y2k/y2kPalettes.generated.receipt.json +872 -0
  65. package/assets/templates/themes/y2k/y2kPalettes.generated.ts +550 -0
  66. package/assets/templates/themes/y2k/y2kPalettes.ts +257 -0
  67. package/assets/templates/themes/y2k/y2kTheme.ts +164 -391
  68. package/clients/cli/commands/discover.mjs +1 -1
  69. package/clients/cli/commands/discover.sources.test.mjs +6 -0
  70. package/clients/cli/commands/doctor.doc.mjs +12 -0
  71. package/clients/cli/commands/doctor.mjs +23 -8
  72. package/foundation/response/error-codes.test.mjs +9 -0
  73. package/foundation/response/response-types.doc.mjs +5 -5
  74. package/foundation/response/response-types.doc.test.mjs +29 -0
  75. package/package.json +9 -9
@@ -4,39 +4,53 @@
4
4
  * Y2K Theme
5
5
  *
6
6
  * A bubbly, playful pop theme inspired by early 2000s aesthetics.
7
- * Periwinkle body (#CCCFFA), charcoal accent, Poppins for body/headings, and
8
- * Crimson Text for display sizes.
9
- * Core neutral: H=75 C=8 (warm cream neutral derived from #FFF6ED)
7
+ * Colors resolve through named stops from Y2K's reviewed light and dark palette.
8
+ * The signature periwinkle and neon green remain exact anchors.
10
9
  */
11
10
 
12
11
  import {defineTheme, defineSyntaxTheme} from '@astryxdesign/core/theme';
13
12
  import {y2kIconRegistry} from './icons';
13
+ import {y2kPaletteRefs} from './y2kPaletteRefs.generated';
14
+
15
+ const {
16
+ accent,
17
+ blue,
18
+ cyan,
19
+ green,
20
+ neutral,
21
+ orange,
22
+ pink,
23
+ purple,
24
+ red,
25
+ teal,
26
+ yellow,
27
+ } = y2kPaletteRefs;
28
+
29
+ const withAlpha = (color: string, alpha: string): string => `${color}${alpha}`;
14
30
 
15
31
  const y2kSyntax = defineSyntaxTheme({
16
32
  name: 'astryx-y2k',
17
33
  tokens: {
18
- keyword: ['#615a7a', '#aea6ca'],
19
- string: ['#586242', '#a5af8b'],
20
- comment: ['#5e5e5e', '#ababab'],
21
- number: ['#775843', '#c8a48c'],
22
- function: ['#39637d', '#87b0cd'],
23
- type: ['#615a7a', '#aea6ca'],
24
- variable: ['#5e5e5e', '#ababab'],
25
- operator: ['#5e5e5e', '#ababab'],
26
- constant: ['#775843', '#c8a48c'],
27
- tag: ['#7f5351', '#d19f9d'],
28
- attribute: ['#6c5c3e', '#bca987'],
29
- property: ['#3c6755', '#87b5a1'],
30
- punctuation: ['#5e5e5e', '#ababab'],
31
- background: ['#FFF6ED', '#190f00'],
32
- // Diff rows: the muted green/red at 25% in light and 20% in dark keep
33
- // every token at or above 4.5:1 on the tint. Markers: the tinted text
34
- // tokens in light (7.3:1 / 7.9:1); in dark those tokens are near-black,
35
- // so the string and tag colours mark the rows (5.1:1 each).
36
- added: ['#C5E17A40', '#C5E17A33'],
37
- removed: ['#FFC5C340', '#FFC5C333'],
38
- 'added-marker': ['#3a5500', '#a5af8b'],
39
- 'removed-marker': ['#8b1d24', '#d19f9d'],
34
+ keyword: [purple.light[40], purple.dark[75]],
35
+ string: [green.light[40], green.dark[65]],
36
+ comment: [neutral.light[40], neutral.dark[70]],
37
+ number: [orange.light[40], orange.dark[80]],
38
+ function: [blue.light[40], blue.dark[75]],
39
+ type: [purple.light[40], purple.dark[75]],
40
+ variable: [neutral.light[40], neutral.dark[70]],
41
+ operator: [neutral.light[40], neutral.dark[70]],
42
+ constant: [orange.light[40], orange.dark[80]],
43
+ tag: [red.light[35], red.dark[75]],
44
+ attribute: [yellow.light[40], yellow.dark[70]],
45
+ property: [teal.light[40], teal.dark[70]],
46
+ punctuation: [neutral.light[40], neutral.dark[70]],
47
+ background: [neutral.light[95], neutral.dark[5]],
48
+ // Markers stay readable on diff tints in both modes. The closest pairing
49
+ // is the dark added marker, which remains above the 4.5:1 text threshold.
50
+ added: [withAlpha(green.light[80], '40'), withAlpha(green.dark[80], '33')],
51
+ removed: [withAlpha(red.light[85], '40'), withAlpha(red.dark[85], '33')],
52
+ 'added-marker': [green.light[30], green.dark[65]],
53
+ 'removed-marker': [red.light[30], red.dark[75]],
40
54
  },
41
55
  });
42
56
 
@@ -138,116 +152,131 @@ export const y2kTheme = defineTheme({
138
152
 
139
153
  // =========================================================================
140
154
  // Colors — Y2K pop palette
141
- // Neutral: H=75 C=8 (warm cream)
142
- // Accent: charcoal (#292427)
143
155
  // =========================================================================
144
156
 
145
- // Core semantic — neutral H=75 C=8 (cream)
146
- '--color-accent': ['#2d241b', '#EDEFFC'],
147
- '--color-accent-muted': ['#2d241b14', '#EDEFFC20'],
148
- '--color-neutral': ['#2d241b10', '#EDEFFC1A'],
149
- '--color-background-surface': ['#FFFFFF', '#16182b'],
150
- '--color-background-body': ['#CCCFFA', '#0e0f1a'],
151
- '--color-overlay': ['#2d241b80', '#0a0b14CC'],
152
- '--color-overlay-hover': ['#2d241b0D', '#EDEFFC0D'],
153
- '--color-overlay-pressed': ['#2d241b1A', '#EDEFFC1A'],
154
- '--color-background-muted': ['#ede0d4', '#1f2238'],
155
-
156
- // Text — neutral H=75 (cream)
157
- '--color-text-primary': ['#2d241b', '#EDEFFC'],
158
- '--color-text-secondary': ['#675d52', '#a6acd6'],
159
- '--color-text-disabled': ['#d1c5b8', '#4a4f6b'],
160
- '--color-text-accent': ['#2d241b', '#EDEFFC'],
161
- '--color-on-dark': '#FFFFFF',
162
- '--color-on-light': '#2d241b',
163
- '--color-on-accent': ['#FFFFFF', '#16182b'],
164
- '--color-on-success': ['#3a5500', '#1e3200'],
165
- '--color-on-error': ['#8b1d24', '#5c0008'],
166
- '--color-on-warning': ['#614400', '#3f2600'],
167
-
168
- // Icon — neutral H=75 (cream)
169
- '--color-icon-accent': ['#2d241b', '#EDEFFC'],
170
- '--color-icon-primary': ['#2d241b', '#EDEFFC'],
171
- '--color-icon-secondary': ['#675d52', '#a6acd6'],
172
- '--color-icon-disabled': ['#d1c5b8', '#4a4f6b'],
173
-
174
- // Surface variants — white cards, cream body
175
- '--color-background-card': ['#FFFFFF', '#16182b'],
176
- '--color-background-popover': ['#FFFFFF', '#1f2238'],
177
- '--color-background-inverted': ['#2d241b', '#EDEFFC'],
178
-
179
- // Status / Sentiment — same in light and dark
180
- '--color-success': ['#C5E17A', '#C5E17A'],
181
- '--color-success-muted': ['#C5E17A', '#C5E17A'],
182
- '--color-error': ['#FFC5C3', '#FFC5C3'],
183
- '--color-error-muted': ['#FFC5C3', '#FFC5C3'],
184
- '--color-warning': ['#FFE08A', '#FFE08A'],
185
- '--color-warning-muted': ['#FFE08A', '#FFE08A'],
186
-
187
- // Bold charcoal borders in light mode (default + card) for the heavy-outline
188
- // Y2K look. Dark mode unchanged.
189
- '--color-border': ['#2F292E', '#EDEFFC1A'],
190
- '--color-border-emphasized': ['#2F292E', '#3a3f5e'],
157
+ // Core semantic colors
158
+ '--color-accent': [neutral.light[15], neutral.dark[95]],
159
+ '--color-accent-muted': [
160
+ withAlpha(neutral.light[15], '14'),
161
+ withAlpha(neutral.dark[95], '20'),
162
+ ],
163
+ '--color-neutral': [
164
+ withAlpha(neutral.light[15], '10'),
165
+ withAlpha(neutral.dark[95], '1A'),
166
+ ],
167
+ '--color-background-surface': [neutral.light[100], neutral.dark[10]],
168
+ '--color-background-body': [accent.light[80], neutral.dark[5]],
169
+ '--color-overlay': [
170
+ withAlpha(neutral.light[15], '80'),
171
+ withAlpha(neutral.dark[5], 'CC'),
172
+ ],
173
+ '--color-overlay-hover': [
174
+ withAlpha(neutral.light[15], '0D'),
175
+ withAlpha(neutral.dark[95], '0D'),
176
+ ],
177
+ '--color-overlay-pressed': [
178
+ withAlpha(neutral.light[15], '1A'),
179
+ withAlpha(neutral.dark[95], '1A'),
180
+ ],
181
+ '--color-background-muted': [neutral.light[90], neutral.dark[20]],
182
+
183
+ // Text
184
+ '--color-text-primary': [neutral.light[15], neutral.dark[95]],
185
+ '--color-text-secondary': [neutral.light[40], neutral.dark[70]],
186
+ '--color-text-disabled': [neutral.light[80], neutral.dark[35]],
187
+ '--color-text-accent': [neutral.light[15], neutral.dark[95]],
188
+ '--color-on-dark': neutral.light[100],
189
+ '--color-on-light': neutral.light[15],
190
+ '--color-on-accent': [neutral.light[100], neutral.dark[10]],
191
+ '--color-on-success': [green.light[30], green.dark[20]],
192
+ '--color-on-error': [red.light[30], red.dark[20]],
193
+ '--color-on-warning': [yellow.light[30], yellow.dark[20]],
194
+
195
+ // Icon
196
+ '--color-icon-accent': [neutral.light[15], neutral.dark[95]],
197
+ '--color-icon-primary': [neutral.light[15], neutral.dark[95]],
198
+ '--color-icon-secondary': [neutral.light[40], neutral.dark[70]],
199
+ '--color-icon-disabled': [neutral.light[80], neutral.dark[35]],
200
+
201
+ // Surface variants
202
+ '--color-background-card': [neutral.light[100], neutral.dark[10]],
203
+ '--color-background-popover': [neutral.light[100], neutral.dark[20]],
204
+ '--color-background-inverted': [neutral.light[15], neutral.dark[95]],
205
+
206
+ // Status / sentiment
207
+ '--color-success': [green.light[80], green.dark[80]],
208
+ '--color-success-muted': [green.light[80], green.dark[80]],
209
+ '--color-error': [red.light[85], red.dark[85]],
210
+ '--color-error-muted': [red.light[85], red.dark[85]],
211
+ '--color-warning': [yellow.light[90], yellow.dark[90]],
212
+ '--color-warning-muted': [yellow.light[90], yellow.dark[90]],
213
+
214
+ // Bold borders preserve the heavy-outline Y2K look.
215
+ '--color-border': [neutral.light[20], withAlpha(neutral.dark[95], '1A')],
216
+ '--color-border-emphasized': [neutral.light[20], neutral.dark[45]],
191
217
 
192
218
  // Effects
193
- '--color-skeleton': ['#d1c5b8', '#2a2e47'],
194
- '--color-shadow': ['#2d241b1A', '#0000004D'],
195
- '--color-tint-hover': ['#2d241b', '#EDEFFC'],
219
+ '--color-skeleton': [neutral.light[80], neutral.dark[25]],
220
+ '--color-shadow': [
221
+ withAlpha(neutral.light[15], '1A'),
222
+ withAlpha(neutral.dark[0], '4D'),
223
+ ],
224
+ '--color-tint-hover': [neutral.light[15], neutral.dark[95]],
196
225
 
197
226
  // Typography override
198
227
  '--text-supporting-size': '12px',
199
228
 
200
- // Categorical — hand-tuned for equal optical brightness, same light/dark
201
- '--color-background-green': ['#C5E17A', '#C5E17A'],
202
- '--color-border-green': ['#B5D16A', '#B5D16A'],
203
- '--color-icon-green': ['#3a5500', '#1e3200'],
204
- '--color-text-green': ['#3a5500', '#1e3200'],
205
-
206
- '--color-background-red': ['#FFC5C3', '#FFC5C3'],
207
- '--color-border-red': ['#FF9E9A', '#FF9E9A'],
208
- '--color-icon-red': ['#8b1d24', '#5c0008'],
209
- '--color-text-red': ['#8b1d24', '#5c0008'],
210
-
211
- '--color-background-yellow': ['#FFE08A', '#FFE08A'],
212
- '--color-border-yellow': ['#FFCC55', '#FFCC55'],
213
- '--color-icon-yellow': ['#614400', '#3f2600'],
214
- '--color-text-yellow': ['#614400', '#3f2600'],
215
-
216
- '--color-background-blue': ['#B8E0FF', '#B8E0FF'],
217
- '--color-border-blue': ['#8ECFFF', '#8ECFFF'],
218
- '--color-icon-blue': ['#004e74', '#002c4d'],
219
- '--color-text-blue': ['#004e74', '#002c4d'],
220
-
221
- '--color-background-pink': ['#FFC8E0', '#FFC8E0'],
222
- '--color-border-pink': ['#FFA0C8', '#FFA0C8'],
223
- '--color-icon-pink': ['#822050', '#580030'],
224
- '--color-text-pink': ['#822050', '#580030'],
225
-
226
- '--color-background-purple': ['#DDD0FF', '#DDD0FF'],
227
- '--color-border-purple': ['#C0AAFF', '#C0AAFF'],
228
- '--color-icon-purple': ['#453080', '#201058'],
229
- '--color-text-purple': ['#453080', '#201058'],
230
-
231
- '--color-background-cyan': ['#A8F0E2', '#A8F0E2'],
232
- '--color-border-cyan': ['#70E8D0', '#70E8D0'],
233
- '--color-icon-cyan': ['#005548', '#003028'],
234
- '--color-text-cyan': ['#005548', '#003028'],
235
-
236
- '--color-background-orange': ['#FFCCA0', '#FFCCA0'],
237
- '--color-border-orange': ['#FFAA66', '#FFAA66'],
238
- '--color-icon-orange': ['#703500', '#4a1800'],
239
- '--color-text-orange': ['#703500', '#4a1800'],
240
-
241
- '--color-background-teal': ['#A8EED0', '#A8EED0'],
242
- '--color-border-teal': ['#78E0B0', '#78E0B0'],
243
- '--color-icon-teal': ['#005530', '#003018'],
244
- '--color-text-teal': ['#005530', '#003018'],
245
-
246
- // Gray (cream neutral H=75 C=8)
247
- '--color-background-gray': ['#ede0d4', '#ede0d4'],
248
- '--color-border-gray': ['#dfd2c6', '#dfd2c6'],
249
- '--color-icon-gray': ['#4f453b', '#2d241b'],
250
- '--color-text-gray': ['#4f453b', '#2d241b'],
229
+ // Categorical colors
230
+ '--color-background-green': [green.light[80], green.dark[80]],
231
+ '--color-border-green': [green.light[75], green.dark[75]],
232
+ '--color-icon-green': [green.light[30], green.dark[20]],
233
+ '--color-text-green': [green.light[30], green.dark[20]],
234
+
235
+ '--color-background-red': [red.light[85], red.dark[85]],
236
+ '--color-border-red': [red.light[75], red.dark[75]],
237
+ '--color-icon-red': [red.light[30], red.dark[20]],
238
+ '--color-text-red': [red.light[30], red.dark[20]],
239
+
240
+ '--color-background-yellow': [yellow.light[90], yellow.dark[90]],
241
+ '--color-border-yellow': [yellow.light[85], yellow.dark[85]],
242
+ '--color-icon-yellow': [yellow.light[30], yellow.dark[20]],
243
+ '--color-text-yellow': [yellow.light[30], yellow.dark[20]],
244
+
245
+ '--color-background-blue': [blue.light[85], blue.dark[85]],
246
+ '--color-border-blue': [blue.light[75], blue.dark[75]],
247
+ '--color-icon-blue': [blue.light[20], blue.dark[20]],
248
+ '--color-text-blue': [blue.light[20], blue.dark[20]],
249
+
250
+ '--color-background-pink': [pink.light[85], pink.dark[85]],
251
+ '--color-border-pink': [pink.light[80], pink.dark[80]],
252
+ '--color-icon-pink': [pink.light[30], pink.dark[20]],
253
+ '--color-text-pink': [pink.light[30], pink.dark[20]],
254
+
255
+ '--color-background-purple': [purple.light[85], purple.dark[85]],
256
+ '--color-border-purple': [purple.light[75], purple.dark[75]],
257
+ '--color-icon-purple': [purple.light[25], purple.dark[15]],
258
+ '--color-text-purple': [purple.light[25], purple.dark[15]],
259
+
260
+ '--color-background-cyan': [cyan.light[90], cyan.dark[90]],
261
+ '--color-border-cyan': [cyan.light[80], cyan.dark[80]],
262
+ '--color-icon-cyan': [cyan.light[30], cyan.dark[15]],
263
+ '--color-text-cyan': [cyan.light[30], cyan.dark[15]],
264
+
265
+ '--color-background-orange': [orange.light[85], orange.dark[85]],
266
+ '--color-border-orange': [orange.light[80], orange.dark[80]],
267
+ '--color-icon-orange': [orange.light[30], orange.dark[15]],
268
+ '--color-text-orange': [orange.light[30], orange.dark[15]],
269
+
270
+ '--color-background-teal': [teal.light[90], teal.dark[85]],
271
+ '--color-border-teal': [teal.light[80], teal.dark[80]],
272
+ '--color-icon-teal': [teal.light[30], teal.dark[15]],
273
+ '--color-text-teal': [teal.light[30], teal.dark[15]],
274
+
275
+ // Gray
276
+ '--color-background-gray': [neutral.light[90], neutral.dark[90]],
277
+ '--color-border-gray': [neutral.light[85], neutral.dark[85]],
278
+ '--color-icon-gray': [neutral.light[30], neutral.dark[10]],
279
+ '--color-text-gray': [neutral.light[30], neutral.dark[10]],
251
280
 
252
281
  // =========================================================================
253
282
  // Radius — sharp / brutalist (multiplier: 0 via radius config + explicit)
@@ -262,14 +291,14 @@ export const y2kTheme = defineTheme({
262
291
  // =========================================================================
263
292
  // Shadows — warm cream neutral
264
293
  // =========================================================================
265
- '--shadow-low': '0 2px 4px #2d241b0D, 0 4px 8px #2d241b1A',
266
- '--shadow-med': '0 2px 4px #2d241b0D, 0 4px 12px #2d241b1A',
267
- '--shadow-high': '0 4px 6px #2d241b1A, 0 12px 24px #2d241b26',
268
- '--shadow-inset-hover': 'inset 0px 0px 0px 2px #2d241b30',
269
- '--shadow-inset-selected': 'inset 0px 0px 0px 2px #2d241b50',
270
- '--shadow-inset-success': 'inset 0px 0px 0px 2px #3a550050',
271
- '--shadow-inset-warning': 'inset 0px 0px 0px 2px #61440050',
272
- '--shadow-inset-error': 'inset 0px 0px 0px 2px #8b1d2450',
294
+ '--shadow-low': `0 2px 4px ${withAlpha(neutral.light[15], '0D')}, 0 4px 8px ${withAlpha(neutral.light[15], '1A')}`,
295
+ '--shadow-med': `0 2px 4px ${withAlpha(neutral.light[15], '0D')}, 0 4px 12px ${withAlpha(neutral.light[15], '1A')}`,
296
+ '--shadow-high': `0 4px 6px ${withAlpha(neutral.light[15], '1A')}, 0 12px 24px ${withAlpha(neutral.light[15], '26')}`,
297
+ '--shadow-inset-hover': `inset 0px 0px 0px 2px ${withAlpha(neutral.light[15], '30')}`,
298
+ '--shadow-inset-selected': `inset 0px 0px 0px 2px ${withAlpha(neutral.light[15], '50')}`,
299
+ '--shadow-inset-success': `inset 0px 0px 0px 2px ${withAlpha(green.light[30], '50')}`,
300
+ '--shadow-inset-warning': `inset 0px 0px 0px 2px ${withAlpha(yellow.light[30], '50')}`,
301
+ '--shadow-inset-error': `inset 0px 0px 0px 2px ${withAlpha(red.light[30], '50')}`,
273
302
  },
274
303
 
275
304
  components: {
@@ -411,259 +440,3 @@ export const y2kTheme = defineTheme({
411
440
 
412
441
  icons: y2kIconRegistry,
413
442
  });
414
-
415
- /**
416
- * Raw tonal palettes — every color at every tone step (0-100 in 5s).
417
- */
418
- export const y2kPalettes = {
419
- neutral: {
420
- hue: 75,
421
- chroma: 8,
422
- 0: '#000000',
423
- 5: '#190f00',
424
- 10: '#221a10',
425
- 15: '#2d241b',
426
- 20: '#382f25',
427
- 25: '#433a30',
428
- 30: '#4f453b',
429
- 35: '#5b5146',
430
- 40: '#675d52',
431
- 45: '#73695e',
432
- 50: '#80756a',
433
- 55: '#8d8276',
434
- 60: '#9a8f83',
435
- 65: '#a79c90',
436
- 70: '#b5a99d',
437
- 75: '#c3b7ab',
438
- 80: '#d1c5b8',
439
- 85: '#dfd2c6',
440
- 90: '#ede0d4',
441
- 95: '#fbefe2',
442
- 100: '#ffffff',
443
- },
444
- green: {
445
- hue: 120,
446
- chroma: 60,
447
- 0: '#000000',
448
- 5: '#061800',
449
- 10: '#132200',
450
- 15: '#152d00',
451
- 20: '#173900',
452
- 25: '#1e4500',
453
- 30: '#285100',
454
- 35: '#355d00',
455
- 40: '#426900',
456
- 45: '#4f7600',
457
- 50: '#5c830b',
458
- 55: '#69901d',
459
- 60: '#779d2c',
460
- 65: '#84aa39',
461
- 70: '#92b847',
462
- 75: '#a0c654',
463
- 80: '#aed461',
464
- 85: '#bce26e',
465
- 90: '#caf07b',
466
- 95: '#d9fe89',
467
- 100: '#ffffff',
468
- },
469
- red: {
470
- hue: 25,
471
- chroma: 55,
472
- 0: '#000000',
473
- 5: '#480000',
474
- 10: '#540000',
475
- 15: '#620002',
476
- 20: '#700012',
477
- 25: '#7f001b',
478
- 30: '#8e1126',
479
- 35: '#9c2330',
480
- 40: '#ab313b',
481
- 45: '#ba3f47',
482
- 50: '#c94d52',
483
- 55: '#d95b5e',
484
- 60: '#e8686b',
485
- 65: '#f87677',
486
- 70: '#ff8787',
487
- 75: '#ff9d9b',
488
- 80: '#ffb2af',
489
- 85: '#ffc6c3',
490
- 90: '#ffd9d7',
491
- 95: '#ffeceb',
492
- 100: '#ffffff',
493
- },
494
- yellow: {
495
- hue: 85,
496
- chroma: 65,
497
- 0: '#000000',
498
- 5: '#270c00',
499
- 10: '#301800',
500
- 15: '#3b2200',
501
- 20: '#472c00',
502
- 25: '#533700',
503
- 30: '#604200',
504
- 35: '#6d4d00',
505
- 40: '#7b5900',
506
- 45: '#896500',
507
- 50: '#977100',
508
- 55: '#a67e00',
509
- 60: '#b58b01',
510
- 65: '#c39819',
511
- 70: '#d2a52a',
512
- 75: '#e2b239',
513
- 80: '#f1c047',
514
- 85: '#ffcd55',
515
- 90: '#ffde9b',
516
- 95: '#ffeecf',
517
- 100: '#ffffff',
518
- },
519
- blue: {
520
- hue: 250,
521
- chroma: 40,
522
- 0: '#000000',
523
- 5: '#001939',
524
- 10: '#002244',
525
- 15: '#002c4d',
526
- 20: '#003759',
527
- 25: '#004266',
528
- 30: '#004e74',
529
- 35: '#005a83',
530
- 40: '#006693',
531
- 45: '#0073a3',
532
- 50: '#0080b4',
533
- 55: '#008ec4',
534
- 60: '#0e9bd2',
535
- 65: '#2fa8e0',
536
- 70: '#45b6ef',
537
- 75: '#57c3fd',
538
- 80: '#7ed0ff',
539
- 85: '#a3dbff',
540
- 90: '#c4e7ff',
541
- 95: '#e1f3ff',
542
- 100: '#ffffff',
543
- },
544
- pink: {
545
- hue: 350,
546
- chroma: 45,
547
- 0: '#000000',
548
- 5: '#3d001d',
549
- 10: '#490027',
550
- 15: '#560032',
551
- 20: '#64003d',
552
- 25: '#711248',
553
- 30: '#7f2154',
554
- 35: '#8c2f60',
555
- 40: '#9a3c6c',
556
- 45: '#a84979',
557
- 50: '#b75685',
558
- 55: '#c56392',
559
- 60: '#d371a0',
560
- 65: '#e27ead',
561
- 70: '#f18bbb',
562
- 75: '#ff99c8',
563
- 80: '#ffaed3',
564
- 85: '#ffc3de',
565
- 90: '#ffd7e9',
566
- 95: '#ffebf4',
567
- 100: '#ffffff',
568
- },
569
- purple: {
570
- hue: 300,
571
- chroma: 40,
572
- 0: '#000000',
573
- 5: '#020840',
574
- 10: '#11144b',
575
- 15: '#1f1e57',
576
- 20: '#2c2864',
577
- 25: '#393370',
578
- 30: '#453e7d',
579
- 35: '#524a8a',
580
- 40: '#5f5697',
581
- 45: '#6c62a4',
582
- 50: '#796eb2',
583
- 55: '#867bc0',
584
- 60: '#9387ce',
585
- 65: '#a194dc',
586
- 70: '#afa2ea',
587
- 75: '#bdaff8',
588
- 80: '#cbbeff',
589
- 85: '#d9ceff',
590
- 90: '#e6deff',
591
- 95: '#f3eeff',
592
- 100: '#ffffff',
593
- },
594
- cyan: {
595
- hue: 185,
596
- chroma: 35,
597
- 0: '#000000',
598
- 5: '#001e14',
599
- 10: '#00261f',
600
- 15: '#003029',
601
- 20: '#003b34',
602
- 25: '#00473f',
603
- 30: '#00534a',
604
- 35: '#005f56',
605
- 40: '#006c62',
606
- 45: '#00796f',
607
- 50: '#00867b',
608
- 55: '#0f9488',
609
- 60: '#29a195',
610
- 65: '#3bafa2',
611
- 70: '#4cbcb0',
612
- 75: '#5bcabd',
613
- 80: '#6ad8cb',
614
- 85: '#79e7d9',
615
- 90: '#87f5e7',
616
- 95: '#a6fff5',
617
- 100: '#ffffff',
618
- },
619
- orange: {
620
- hue: 60,
621
- chroma: 60,
622
- 0: '#000000',
623
- 5: '#340000',
624
- 10: '#420500',
625
- 15: '#520b00',
626
- 20: '#601700',
627
- 25: '#6d2400',
628
- 30: '#7b3000',
629
- 35: '#893c00',
630
- 40: '#984800',
631
- 45: '#a75409',
632
- 50: '#b66019',
633
- 55: '#c56d26',
634
- 60: '#d47a33',
635
- 65: '#e48740',
636
- 70: '#f3944c',
637
- 75: '#ffa25c',
638
- 80: '#ffb682',
639
- 85: '#ffc9a3',
640
- 90: '#ffdbc3',
641
- 95: '#ffede1',
642
- 100: '#ffffff',
643
- },
644
- teal: {
645
- hue: 165,
646
- chroma: 30,
647
- 0: '#000000',
648
- 5: '#001d00',
649
- 10: '#00240f',
650
- 15: '#002f1a',
651
- 20: '#003a24',
652
- 25: '#00462f',
653
- 30: '#00513a',
654
- 35: '#115e45',
655
- 40: '#226a51',
656
- 45: '#30775d',
657
- 50: '#3d8469',
658
- 55: '#4a9175',
659
- 60: '#589e82',
660
- 65: '#65ab8f',
661
- 70: '#72b99c',
662
- 75: '#7fc7a9',
663
- 80: '#8dd5b7',
664
- 85: '#9be3c5',
665
- 90: '#a9f2d3',
666
- 95: '#b6ffe1',
667
- 100: '#ffffff',
668
- },
669
- } as const;
@@ -488,7 +488,7 @@ export function registerDiscover(program) {
488
488
  : detail === 'compact'
489
489
  ? formatCompact(docs, docs.name, '')
490
490
  : formatFull(docs);
491
- emit(code(md));
491
+ emit(record({package: result.package}), code(md));
492
492
  break;
493
493
  }
494
494
 
@@ -154,6 +154,7 @@ describe('astryx discover with a discover source', () => {
154
154
  expect(meta.available.slice(official.length)).toEqual([
155
155
  {
156
156
  name: '@test/charts',
157
+ package: '@test/charts',
157
158
  components: ['Chart'],
158
159
  version: '2.0.0',
159
160
  templates: ['pages/Report'],
@@ -162,6 +163,7 @@ describe('astryx discover with a discover source', () => {
162
163
  },
163
164
  {
164
165
  name: '@test/boards',
166
+ package: '@test/boards',
165
167
  components: [],
166
168
  version: '1.0.0',
167
169
  templates: ['pages/DialBoard'],
@@ -269,6 +271,10 @@ describe('astryx discover with a discover source', () => {
269
271
  cwd: project,
270
272
  });
271
273
  expect(JSON.parse(opened.stdout).type).toBe('discover.detail.doc');
274
+
275
+ // Text mode names the package on stdout, so a pipe keeps it.
276
+ const text = await runCli(['discover', '@test/kit/Dial'], {cwd: project});
277
+ expect(text.stdout).toMatch(/package: @test\/kit/);
272
278
  });
273
279
 
274
280
  it('saves the answer in the user cache and writes nothing into the project', async () => {
@@ -25,9 +25,21 @@ export const doc = {
25
25
  'It never fails a check because the folder has no project.',
26
26
  fn: 'doctor',
27
27
  subcommands: ['integration'],
28
+ options: [
29
+ {
30
+ flag: '--built <path>',
31
+ param: 'options.built',
32
+ description:
33
+ 'Also check a finished build before you deliver it: a project folder, a build output folder, or one built HTML file. Fails when it does not use Astryx at all, and warns with each raw element, icon or custom style in its source.',
34
+ },
35
+ ],
28
36
  examples: [
29
37
  {label: 'Run project diagnostics', cli: 'astryx doctor'},
30
38
  {label: 'Machine-readable project report', cli: 'astryx doctor --json'},
39
+ {
40
+ label: 'Before you deliver a build: check that it uses Astryx',
41
+ cli: 'astryx doctor --built dist',
42
+ },
31
43
  {
32
44
  label: 'Validate an integration',
33
45
  cli: 'astryx doctor integration validate @acme/widgets',