@astryxdesign/cli 0.7.3 → 0.7.4-canary.39f7153

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 (69) 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 +807 -0
  23. package/api/doctor/built-checks.test.mjs +502 -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/clients/cli/commands/discover.mjs +1 -1
  63. package/clients/cli/commands/discover.sources.test.mjs +6 -0
  64. package/clients/cli/commands/doctor.doc.mjs +12 -0
  65. package/clients/cli/commands/doctor.mjs +23 -8
  66. package/foundation/response/error-codes.test.mjs +9 -0
  67. package/foundation/response/response-types.doc.mjs +5 -5
  68. package/foundation/response/response-types.doc.test.mjs +29 -0
  69. package/package.json +9 -9
@@ -0,0 +1,371 @@
1
+ {
2
+ "recipe": "astryx-oklch-v1",
3
+ "vibrancy": 36,
4
+ "neutralProfile": "custom",
5
+ "modeStrategy": "dark-only",
6
+ "stops": [
7
+ 0, 5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55, 60, 65, 70, 75, 80, 85, 90,
8
+ 95, 100
9
+ ],
10
+ "families": [
11
+ {
12
+ "id": "neutral",
13
+ "name": "Gothic Neutral",
14
+ "seed": "#5d646b",
15
+ "kind": "neutral",
16
+ "anchors": [
17
+ {
18
+ "mode": "dark",
19
+ "stop": 10,
20
+ "color": "#101314",
21
+ "policy": "exact"
22
+ },
23
+ {
24
+ "mode": "dark",
25
+ "stop": 20,
26
+ "color": "#24292d",
27
+ "policy": "exact"
28
+ },
29
+ {
30
+ "mode": "dark",
31
+ "stop": 40,
32
+ "color": "#495056",
33
+ "policy": "exact"
34
+ },
35
+ {
36
+ "mode": "dark",
37
+ "stop": 75,
38
+ "color": "#96a0ab",
39
+ "policy": "exact"
40
+ },
41
+ {
42
+ "mode": "dark",
43
+ "stop": 95,
44
+ "color": "#e8f1f6",
45
+ "policy": "exact"
46
+ }
47
+ ]
48
+ },
49
+ {
50
+ "id": "red",
51
+ "name": "Blood Crimson",
52
+ "seed": "#7d5e51",
53
+ "anchors": [
54
+ {
55
+ "mode": "dark",
56
+ "stop": 20,
57
+ "color": "#4a2520",
58
+ "policy": "exact"
59
+ },
60
+ {
61
+ "mode": "dark",
62
+ "stop": 30,
63
+ "color": "#5e3a35",
64
+ "policy": "exact"
65
+ },
66
+ {
67
+ "mode": "dark",
68
+ "stop": 60,
69
+ "color": "#a48581",
70
+ "policy": "exact"
71
+ },
72
+ {
73
+ "mode": "dark",
74
+ "stop": 75,
75
+ "color": "#c6a6a2",
76
+ "policy": "exact"
77
+ }
78
+ ]
79
+ },
80
+ {
81
+ "id": "orange",
82
+ "name": "Rust Copper",
83
+ "seed": "#c87a4a",
84
+ "anchors": [
85
+ {
86
+ "mode": "dark",
87
+ "stop": 20,
88
+ "color": "#6e3812",
89
+ "policy": "exact"
90
+ },
91
+ {
92
+ "mode": "dark",
93
+ "stop": 30,
94
+ "color": "#8a4818",
95
+ "policy": "exact"
96
+ },
97
+ {
98
+ "mode": "dark",
99
+ "stop": 60,
100
+ "color": "#b6987d",
101
+ "policy": "exact"
102
+ },
103
+ {
104
+ "mode": "dark",
105
+ "stop": 75,
106
+ "color": "#d3b89a",
107
+ "policy": "exact"
108
+ }
109
+ ]
110
+ },
111
+ {
112
+ "id": "yellow",
113
+ "name": "Aged Gold",
114
+ "seed": "#cca74c",
115
+ "anchors": [
116
+ {
117
+ "mode": "dark",
118
+ "stop": 20,
119
+ "color": "#6c5010",
120
+ "policy": "exact"
121
+ },
122
+ {
123
+ "mode": "dark",
124
+ "stop": 30,
125
+ "color": "#876515",
126
+ "policy": "exact"
127
+ },
128
+ {
129
+ "mode": "dark",
130
+ "stop": 60,
131
+ "color": "#b6a775",
132
+ "policy": "exact"
133
+ },
134
+ {
135
+ "mode": "dark",
136
+ "stop": 65,
137
+ "color": "#e6b85e",
138
+ "policy": "exact"
139
+ },
140
+ {
141
+ "mode": "dark",
142
+ "stop": 70,
143
+ "color": "#dec074",
144
+ "policy": "exact"
145
+ },
146
+ {
147
+ "mode": "dark",
148
+ "stop": 75,
149
+ "color": "#d3c490",
150
+ "policy": "exact"
151
+ }
152
+ ]
153
+ },
154
+ {
155
+ "id": "green",
156
+ "name": "Forest Moss",
157
+ "seed": "#779e5d",
158
+ "anchors": [
159
+ {
160
+ "mode": "dark",
161
+ "stop": 20,
162
+ "color": "#244023",
163
+ "policy": "exact"
164
+ },
165
+ {
166
+ "mode": "dark",
167
+ "stop": 30,
168
+ "color": "#3a5e2c",
169
+ "policy": "exact"
170
+ },
171
+ {
172
+ "mode": "dark",
173
+ "stop": 60,
174
+ "color": "#96a880",
175
+ "policy": "exact"
176
+ },
177
+ {
178
+ "mode": "dark",
179
+ "stop": 70,
180
+ "color": "#a3c987",
181
+ "policy": "exact"
182
+ },
183
+ {
184
+ "mode": "dark",
185
+ "stop": 75,
186
+ "color": "#b3c79a",
187
+ "policy": "exact"
188
+ }
189
+ ]
190
+ },
191
+ {
192
+ "id": "teal",
193
+ "name": "Verdigris",
194
+ "seed": "#5aa091",
195
+ "anchors": [
196
+ {
197
+ "mode": "dark",
198
+ "stop": 20,
199
+ "color": "#174a40",
200
+ "policy": "exact"
201
+ },
202
+ {
203
+ "mode": "dark",
204
+ "stop": 30,
205
+ "color": "#1f5e52",
206
+ "policy": "exact"
207
+ },
208
+ {
209
+ "mode": "dark",
210
+ "stop": 60,
211
+ "color": "#86a499",
212
+ "policy": "exact"
213
+ },
214
+ {
215
+ "mode": "dark",
216
+ "stop": 70,
217
+ "color": "#7cc5b3",
218
+ "policy": "exact"
219
+ },
220
+ {
221
+ "mode": "dark",
222
+ "stop": 75,
223
+ "color": "#a3c2b6",
224
+ "policy": "exact"
225
+ }
226
+ ]
227
+ },
228
+ {
229
+ "id": "cyan",
230
+ "name": "Cathedral Mist",
231
+ "seed": "#6a9eb1",
232
+ "anchors": [
233
+ {
234
+ "mode": "dark",
235
+ "stop": 20,
236
+ "color": "#204858",
237
+ "policy": "exact"
238
+ },
239
+ {
240
+ "mode": "dark",
241
+ "stop": 30,
242
+ "color": "#2a5e75",
243
+ "policy": "exact"
244
+ },
245
+ {
246
+ "mode": "dark",
247
+ "stop": 60,
248
+ "color": "#86a4b1",
249
+ "policy": "exact"
250
+ },
251
+ {
252
+ "mode": "dark",
253
+ "stop": 75,
254
+ "color": "#a3c2cf",
255
+ "policy": "exact"
256
+ }
257
+ ]
258
+ },
259
+ {
260
+ "id": "blue",
261
+ "name": "Midnight Indigo",
262
+ "seed": "#6170bf",
263
+ "anchors": [
264
+ {
265
+ "mode": "dark",
266
+ "stop": 20,
267
+ "color": "#1f2c54",
268
+ "policy": "exact"
269
+ },
270
+ {
271
+ "mode": "dark",
272
+ "stop": 30,
273
+ "color": "#2a3b6e",
274
+ "policy": "exact"
275
+ },
276
+ {
277
+ "mode": "dark",
278
+ "stop": 60,
279
+ "color": "#8696b8",
280
+ "policy": "exact"
281
+ },
282
+ {
283
+ "mode": "dark",
284
+ "stop": 65,
285
+ "color": "#8aa1d8",
286
+ "policy": "exact"
287
+ },
288
+ {
289
+ "mode": "dark",
290
+ "stop": 75,
291
+ "color": "#a3b5d6",
292
+ "policy": "exact"
293
+ }
294
+ ]
295
+ },
296
+ {
297
+ "id": "purple",
298
+ "name": "Cathedral Plum",
299
+ "seed": "#a363bd",
300
+ "anchors": [
301
+ {
302
+ "mode": "dark",
303
+ "stop": 20,
304
+ "color": "#481b58",
305
+ "policy": "exact"
306
+ },
307
+ {
308
+ "mode": "dark",
309
+ "stop": 30,
310
+ "color": "#5a2370",
311
+ "policy": "exact"
312
+ },
313
+ {
314
+ "mode": "dark",
315
+ "stop": 60,
316
+ "color": "#947da6",
317
+ "policy": "exact"
318
+ },
319
+ {
320
+ "mode": "dark",
321
+ "stop": 75,
322
+ "color": "#b29bc4",
323
+ "policy": "exact"
324
+ },
325
+ {
326
+ "mode": "dark",
327
+ "stop": 80,
328
+ "color": "#c39adb",
329
+ "policy": "exact"
330
+ }
331
+ ]
332
+ },
333
+ {
334
+ "id": "pink",
335
+ "name": "Rose Madder",
336
+ "seed": "#b15876",
337
+ "anchors": [
338
+ {
339
+ "mode": "dark",
340
+ "stop": 20,
341
+ "color": "#71223c",
342
+ "policy": "exact"
343
+ },
344
+ {
345
+ "mode": "dark",
346
+ "stop": 30,
347
+ "color": "#8d2d4c",
348
+ "policy": "exact"
349
+ },
350
+ {
351
+ "mode": "dark",
352
+ "stop": 60,
353
+ "color": "#aa7d8e",
354
+ "policy": "exact"
355
+ },
356
+ {
357
+ "mode": "dark",
358
+ "stop": 65,
359
+ "color": "#d97580",
360
+ "policy": "exact"
361
+ },
362
+ {
363
+ "mode": "dark",
364
+ "stop": 75,
365
+ "color": "#c89aab",
366
+ "policy": "exact"
367
+ }
368
+ ]
369
+ }
370
+ ]
371
+ }
@@ -0,0 +1,51 @@
1
+ // Copyright (c) Meta Platforms, Inc. and affiliates.
2
+
3
+ // Generated from the committed full palette for the stops used by Matcha's
4
+ // theme source. Regenerate with `pnpm generate:matcha-palette-refs`.
5
+ // Keep the complete palette available for authoring and audits without
6
+ // making consumers pay for unused palette stops.
7
+ // prettier-ignore
8
+ export const matchaPaletteRefs = {
9
+ neutral: {
10
+ light: {0: '#000000', 20: '#3e481d', 30: '#5a6b2a', 40: '#707e46', 70: '#b7c29e', 75: '#c0cba9', 85: '#dce3ce', 95: '#f0f0e0', 100: '#ffffff'},
11
+ dark: {0: '#000000', 5: '#12140e', 10: '#1a1c14', 15: '#1e2016', 20: '#3e481d', 30: '#5a6440', 40: '#707e46', 60: '#94a468', 65: '#92af6a', 70: '#a8bf6a', 75: '#c0cba9', 100: '#ffffff'},
12
+ },
13
+ teal: {
14
+ light: {35: '#245546', 50: '#2e6b5a', 55: '#3a7c6b'},
15
+ dark: {70: '#5ab898', 75: '#6ccaaa'},
16
+ },
17
+ yellow: {
18
+ light: {45: '#836700', 65: '#c19800', 80: '#f2c000'},
19
+ dark: {70: '#d1a500', 75: '#e0b318', 85: '#f6d066', 90: '#ffe08b'},
20
+ },
21
+ blue: {
22
+ light: {35: '#2e4a6e', 50: '#3a5e8c'},
23
+ dark: {50: '#3a5e8c', 70: '#7ba8d4', 75: '#8dbce0'},
24
+ },
25
+ purple: {
26
+ light: {35: '#553a70', 50: '#6b4a8c'},
27
+ dark: {70: '#b08ed4', 75: '#c0a0e0'},
28
+ },
29
+ pink: {
30
+ light: {30: '#8c3a3a', 35: '#a03a5a', 50: '#c44a70'},
31
+ dark: {65: '#d47a7a', 70: '#e07a9a', 75: '#f08aaa'},
32
+ },
33
+ orange: {
34
+ light: {30: '#7c5e3a', 35: '#a06018', 50: '#c47620'},
35
+ dark: {70: '#d4903a', 75: '#e0a04a'},
36
+ },
37
+ green: {
38
+ light: {35: '#3d7a00', 50: '#4d9900'},
39
+ dark: {70: '#6dbf2a', 75: '#80d43a'},
40
+ },
41
+ red: {
42
+ light: {35: '#cc0000', 50: '#fd0000'},
43
+ dark: {70: '#ff5c5c', 75: '#ff7a7a'},
44
+ },
45
+ cyan: {
46
+ light: {35: '#2e6060', 50: '#3a7c7c'},
47
+ dark: {50: '#3a7c7c', 70: '#70c4c4', 75: '#82d4d4'},
48
+ },
49
+ } as const;
50
+
51
+ export default matchaPaletteRefs;