@astryxdesign/cli 0.7.3 → 0.7.4-canary.3f6ea7d

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 (58) 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/gothic/gothicPaletteRefs.generated.ts +41 -0
  42. package/assets/templates/themes/gothic/gothicPalettes.generated.receipt.json +979 -0
  43. package/assets/templates/themes/gothic/gothicPalettes.generated.ts +271 -0
  44. package/assets/templates/themes/gothic/gothicTheme.ts +130 -160
  45. package/assets/templates/themes/gothic/palette.config.json +371 -0
  46. package/assets/templates/themes/stone/palette.config.json +262 -0
  47. package/assets/templates/themes/stone/stonePaletteRefs.generated.ts +51 -0
  48. package/assets/templates/themes/stone/stonePalettes.generated.receipt.json +840 -0
  49. package/assets/templates/themes/stone/stonePalettes.generated.ts +501 -0
  50. package/assets/templates/themes/stone/stoneTheme.ts +190 -207
  51. package/clients/cli/commands/discover.mjs +1 -1
  52. package/clients/cli/commands/discover.sources.test.mjs +6 -0
  53. package/clients/cli/commands/doctor.doc.mjs +12 -0
  54. package/clients/cli/commands/doctor.mjs +23 -8
  55. package/foundation/response/error-codes.test.mjs +9 -0
  56. package/foundation/response/response-types.doc.mjs +5 -5
  57. package/foundation/response/response-types.doc.test.mjs +29 -0
  58. 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,262 @@
1
+ {
2
+ "recipe": "astryx-oklch-v1",
3
+ "vibrancy": 16,
4
+ "neutralProfile": "neutral-v1",
5
+ "modeStrategy": "light-and-dark",
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": "Stone Neutral",
14
+ "seed": "#77777c",
15
+ "anchors": [
16
+ {
17
+ "mode": "light",
18
+ "stop": 15,
19
+ "color": "#25252a",
20
+ "policy": "exact"
21
+ },
22
+ {
23
+ "mode": "light",
24
+ "stop": 50,
25
+ "color": "#77777c",
26
+ "policy": "exact"
27
+ },
28
+ {
29
+ "mode": "light",
30
+ "stop": 90,
31
+ "color": "#e2e2e8",
32
+ "policy": "exact"
33
+ },
34
+ {
35
+ "mode": "dark",
36
+ "stop": 15,
37
+ "color": "#25252a",
38
+ "policy": "exact"
39
+ },
40
+ {
41
+ "mode": "dark",
42
+ "stop": 50,
43
+ "color": "#77777c",
44
+ "policy": "exact"
45
+ },
46
+ {
47
+ "mode": "dark",
48
+ "stop": 90,
49
+ "color": "#e2e2e8",
50
+ "policy": "exact"
51
+ }
52
+ ]
53
+ },
54
+ {
55
+ "id": "red",
56
+ "name": "Red",
57
+ "seed": "#8a716d",
58
+ "anchors": [
59
+ {
60
+ "mode": "light",
61
+ "stop": 50,
62
+ "color": "#8a716d",
63
+ "policy": "exact"
64
+ },
65
+ {
66
+ "mode": "dark",
67
+ "stop": 50,
68
+ "color": "#8a716d",
69
+ "policy": "exact"
70
+ }
71
+ ]
72
+ },
73
+ {
74
+ "id": "orange",
75
+ "name": "Orange",
76
+ "seed": "#8f7154",
77
+ "anchors": [
78
+ {
79
+ "mode": "light",
80
+ "stop": 50,
81
+ "color": "#8f7154",
82
+ "policy": "exact"
83
+ },
84
+ {
85
+ "mode": "light",
86
+ "stop": 90,
87
+ "color": "#ffdcbb",
88
+ "policy": "exact"
89
+ },
90
+ {
91
+ "mode": "dark",
92
+ "stop": 50,
93
+ "color": "#8f7154",
94
+ "policy": "exact"
95
+ },
96
+ {
97
+ "mode": "dark",
98
+ "stop": 90,
99
+ "color": "#ffdcbb",
100
+ "policy": "exact"
101
+ }
102
+ ]
103
+ },
104
+ {
105
+ "id": "yellow",
106
+ "name": "Yellow",
107
+ "seed": "#927f25",
108
+ "anchors": [
109
+ {
110
+ "mode": "light",
111
+ "stop": 50,
112
+ "color": "#927f25",
113
+ "policy": "exact"
114
+ },
115
+ {
116
+ "mode": "light",
117
+ "stop": 90,
118
+ "color": "#f4e1b7",
119
+ "policy": "exact"
120
+ },
121
+ {
122
+ "mode": "dark",
123
+ "stop": 50,
124
+ "color": "#927f25",
125
+ "policy": "exact"
126
+ },
127
+ {
128
+ "mode": "dark",
129
+ "stop": 90,
130
+ "color": "#f1e1b9",
131
+ "policy": "exact"
132
+ }
133
+ ]
134
+ },
135
+ {
136
+ "id": "green",
137
+ "name": "Green",
138
+ "seed": "#528b49",
139
+ "anchors": [
140
+ {
141
+ "mode": "light",
142
+ "stop": 50,
143
+ "color": "#528b49",
144
+ "policy": "exact"
145
+ },
146
+ {
147
+ "mode": "light",
148
+ "stop": 85,
149
+ "color": "#bfdfbb",
150
+ "policy": "exact"
151
+ },
152
+ {
153
+ "mode": "dark",
154
+ "stop": 50,
155
+ "color": "#528b49",
156
+ "policy": "exact"
157
+ },
158
+ {
159
+ "mode": "dark",
160
+ "stop": 85,
161
+ "color": "#c3ddbf",
162
+ "policy": "exact"
163
+ }
164
+ ]
165
+ },
166
+ {
167
+ "id": "teal",
168
+ "name": "Teal",
169
+ "seed": "#477b6b",
170
+ "anchors": [
171
+ {
172
+ "mode": "light",
173
+ "stop": 50,
174
+ "color": "#588174",
175
+ "policy": "exact"
176
+ },
177
+ {
178
+ "mode": "dark",
179
+ "stop": 50,
180
+ "color": "#588174",
181
+ "policy": "exact"
182
+ }
183
+ ]
184
+ },
185
+ {
186
+ "id": "cyan",
187
+ "name": "Cyan",
188
+ "seed": "#507b86",
189
+ "anchors": [
190
+ {
191
+ "mode": "light",
192
+ "stop": 50,
193
+ "color": "#507b86",
194
+ "policy": "exact"
195
+ },
196
+ {
197
+ "mode": "dark",
198
+ "stop": 50,
199
+ "color": "#507b86",
200
+ "policy": "exact"
201
+ }
202
+ ]
203
+ },
204
+ {
205
+ "id": "blue",
206
+ "name": "Blue",
207
+ "seed": "#6c7888",
208
+ "anchors": [
209
+ {
210
+ "mode": "light",
211
+ "stop": 50,
212
+ "color": "#6c7888",
213
+ "policy": "exact"
214
+ },
215
+ {
216
+ "mode": "dark",
217
+ "stop": 50,
218
+ "color": "#6c7888",
219
+ "policy": "exact"
220
+ }
221
+ ]
222
+ },
223
+ {
224
+ "id": "purple",
225
+ "name": "Purple",
226
+ "seed": "#7b7486",
227
+ "anchors": [
228
+ {
229
+ "mode": "light",
230
+ "stop": 50,
231
+ "color": "#7b7486",
232
+ "policy": "exact"
233
+ },
234
+ {
235
+ "mode": "dark",
236
+ "stop": 50,
237
+ "color": "#7b7486",
238
+ "policy": "exact"
239
+ }
240
+ ]
241
+ },
242
+ {
243
+ "id": "pink",
244
+ "name": "Pink",
245
+ "seed": "#83727c",
246
+ "anchors": [
247
+ {
248
+ "mode": "light",
249
+ "stop": 50,
250
+ "color": "#83727c",
251
+ "policy": "exact"
252
+ },
253
+ {
254
+ "mode": "dark",
255
+ "stop": 50,
256
+ "color": "#83727c",
257
+ "policy": "exact"
258
+ }
259
+ ]
260
+ }
261
+ ]
262
+ }
@@ -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 Stone's
4
+ // theme source. Regenerate with `pnpm generate:stone-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 stonePaletteRefs = {
9
+ green: {
10
+ light: {30: '#354f31', 55: '#609757', 85: '#bfdfbb', 90: '#d2eccf'},
11
+ dark: {25: '#2f412c', 35: '#3e5d38', 70: '#90ba8a', 80: '#b3d0af', 90: '#d5e9d2'},
12
+ },
13
+ yellow: {
14
+ light: {30: '#524818', 40: '#736419', 55: '#a08c36', 85: '#e7d3a4', 90: '#f4e1b7'},
15
+ dark: {25: '#433b1b', 35: '#615620', 70: '#c2af6e', 80: '#d9c794', 90: '#f1e1b9'},
16
+ },
17
+ red: {
18
+ light: {30: '#603c37', 40: '#745752', 60: '#a98984', 85: '#f0cac4', 90: '#fbdad4'},
19
+ dark: {25: '#50332e', 35: '#684a45', 70: '#c6a29c', 80: '#e0bdb8', 90: '#f7dbd7'},
20
+ },
21
+ purple: {
22
+ light: {30: '#4c405b', 40: '#635a70', 85: '#d9cfea', 90: '#e7def5'},
23
+ dark: {25: '#3f374c', 35: '#574e64', 70: '#b0a5c0', 90: '#e6def3'},
24
+ },
25
+ teal: {
26
+ light: {30: '#2c4f44', 40: '#40675c', 85: '#c3dbd2', 90: '#d4e8e1'},
27
+ dark: {25: '#274239', 35: '#3a5b50', 70: '#94b3a9', 90: '#d6e7e1'},
28
+ },
29
+ neutral: {
30
+ light: {0: '#000000', 15: '#25252a', 30: '#46464e', 40: '#5f5f64', 55: '#848489', 85: '#d4d3dd', 90: '#e2e2e8', 95: '#f0f0f7', 100: '#ffffff'},
31
+ dark: {0: '#000000', 5: '#101018', 10: '#1b1b21', 15: '#25252a', 20: '#302f36', 25: '#3a3a42', 35: '#525159', 40: '#5e5e64', 65: '#9d9ea5', 70: '#ababb3', 90: '#e2e2e8', 95: '#f0f0f9', 100: '#ffffff'},
32
+ },
33
+ orange: {
34
+ dark: {25: '#4e3522', 35: '#684c34', 70: '#c9a382', 90: '#ffdcbb'},
35
+ light: {30: '#5e3f27', 85: '#f2cdaa', 90: '#ffdcbb'},
36
+ },
37
+ blue: {
38
+ light: {30: '#344861', 40: '#516074', 85: '#c2d6f1', 90: '#d3e4fc'},
39
+ dark: {25: '#2c3c52', 35: '#445469', 70: '#9aadc7', 90: '#d5e4f8'},
40
+ },
41
+ cyan: {
42
+ light: {30: '#264d57', 85: '#badbe4', 90: '#cbe9f0'},
43
+ dark: {25: '#234048', 35: '#345761', 90: '#cfe8ee'},
44
+ },
45
+ pink: {
46
+ light: {30: '#5a3c4f', 85: '#e9cadc', 90: '#f5d9ea'},
47
+ dark: {25: '#4b3242', 35: '#624a59', 90: '#f2dbe8'},
48
+ },
49
+ } as const;
50
+
51
+ export default stonePaletteRefs;