@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
@@ -6,40 +6,50 @@
6
6
  * Warm, golden buttery theme with blue accents.
7
7
  * Sarina for display, Outfit for headings and body.
8
8
  *
9
- * Source palette (per design):
10
- * Accent #225BFF Gray #868B99 Red #FF7553
11
- * Orange #FFA347 Yellow #fdee8c Green #5DCE5F
12
- * Cyan #60CFD3 Teal #6CD9A8 Blue #5681FF
13
- * Purple #B780F6 Pink #F680E8 Error #FF5947
14
- * Warning #F8C726 Success #91D143
15
- *
16
- * All tonal ramps derived in CIELab (matches the algorithm used by
17
- * ThemePalettePreview so card / badge / banner / strip render the
18
- * same values). Regen via scripts/butter-palette-gen.mjs if sources
19
- * change.
9
+ * All colors resolve through named stops from Butter's reviewed palette.
10
+ * The signature blue and butter yellow remain exact anchors.
20
11
  */
21
12
 
22
13
  import {defineTheme, defineSyntaxTheme} from '@astryxdesign/core/theme';
23
14
  import {butterIconRegistry} from './icons';
24
-
25
- /** Butter syntax palette — T25 / T80 of each color's ramp. */
15
+ import {butterPaletteRefs} from './butterPaletteRefs.generated';
16
+
17
+ const {
18
+ accent,
19
+ blue,
20
+ cyan,
21
+ green,
22
+ neutral,
23
+ orange,
24
+ pink,
25
+ purple,
26
+ red,
27
+ teal,
28
+ yellow,
29
+ } = butterPaletteRefs;
30
+
31
+ const withAlpha = (color: string, alpha: string): string => `${color}${alpha}`;
32
+ const lightDark = (light: string, dark: string): string =>
33
+ `light-dark(${light}, ${dark})`;
34
+
35
+ /** Butter syntax colors resolved through reviewed palette stops. */
26
36
  const butterSyntax = defineSyntaxTheme({
27
37
  name: 'astryx-butter',
28
38
  tokens: {
29
- keyword: ['#52237b', '#ddb9f6'], // Purple
30
- string: ['#004800', '#a5d29d'], // Green
31
- comment: ['#605f52', '#adac9e'],
32
- number: ['#622e00', '#f2bd81'], // Orange
33
- function: ['#203a6c', '#bdc5eb'], // Blue
34
- type: ['#52237b', '#ddb9f6'], // Purple
35
- variable: ['#605f52', '#adac9e'],
36
- operator: ['#605f52', '#adac9e'],
37
- constant: ['#622e00', '#f2bd81'],
38
- tag: ['#6d211c', '#f4b8ae'], // Red
39
- attribute: ['#413e00', '#d6c957'], // Yellow
40
- property: ['#00482d', '#94d3bb'], // Teal
41
- punctuation: ['#605f52', '#adac9e'],
42
- background: ['#FDFBE4', '#131107'],
39
+ keyword: [purple.light[25], purple.dark[80]], // Purple
40
+ string: [green.light[25], green.dark[80]], // Green
41
+ comment: [neutral.light[45], neutral.dark[70]],
42
+ number: [orange.light[25], orange.dark[80]], // Orange
43
+ function: [blue.light[25], blue.dark[80]], // Blue
44
+ type: [purple.light[25], purple.dark[80]], // Purple
45
+ variable: [neutral.light[45], neutral.dark[70]],
46
+ operator: [neutral.light[45], neutral.dark[70]],
47
+ constant: [orange.light[25], orange.dark[80]],
48
+ tag: [red.light[25], red.dark[80]], // Red
49
+ attribute: [yellow.light[25], yellow.dark[70]], // Yellow
50
+ property: [teal.light[25], teal.dark[80]], // Teal
51
+ punctuation: [neutral.light[45], neutral.dark[70]],
52
+ background: [neutral.light[95], neutral.dark[5]],
43
53
  },
44
54
  });
45
55
 
@@ -54,10 +64,13 @@ const SECONDARY_BUTTON = {
54
64
  backgroundColor: 'transparent',
55
65
  borderWidth: '1.5px',
56
66
  borderStyle: 'solid',
57
- borderColor: 'light-dark(#225BFF, #FDEE8C)',
58
- color: 'light-dark(#225BFF, #FDEE8C)',
67
+ borderColor: lightDark(accent.light[40], yellow.dark[90]),
68
+ color: lightDark(accent.light[40], yellow.dark[90]),
59
69
  ':hover': {
60
- backgroundColor: 'light-dark(#225BFF14, #FDEE8C14)',
70
+ backgroundColor: lightDark(
71
+ withAlpha(accent.light[40], '14'),
72
+ withAlpha(yellow.dark[90], '14'),
73
+ ),
61
74
  },
62
75
  } as const;
63
76
 
@@ -134,58 +147,85 @@ export const butterTheme = defineTheme({
134
147
 
135
148
  tokens: {
136
149
  // =========================================================================
137
- // Core semantic — accent is the exact brand #225BFF
150
+ // Core semantic — accent uses the exact signature brand stop
138
151
  // =========================================================================
139
- '--color-accent': ['#225BFF', '#FDEE8C'],
140
- '--color-accent-muted': ['#225BFF33', '#FDEE8C40'],
141
- '--color-neutral': ['#1d1c110F', '#f3f2e21A'],
142
- '--color-background-surface': ['#FFFFFF', '#2E2117'],
143
- '--color-background-body': ['#FDFBE4', '#261A13'],
144
- '--color-overlay': ['#1d1c1180', '#261A13cc'],
145
- '--color-overlay-hover': ['#1d1c110D', '#f3f2e20D'],
146
- '--color-overlay-pressed': ['#1d1c111A', '#f3f2e21A'],
147
- '--color-background-muted': ['#f3f2e2', '#3A2A1F'],
152
+ '--color-accent': [accent.light[40], yellow.dark[90]],
153
+ '--color-accent-muted': [
154
+ withAlpha(accent.light[40], '33'),
155
+ withAlpha(yellow.dark[90], '40'),
156
+ ],
157
+ '--color-neutral': [
158
+ withAlpha(neutral.light[15], '0f'),
159
+ withAlpha(neutral.dark[90], '1a'),
160
+ ],
161
+ '--color-background-surface': [neutral.light[100], neutral.dark[15]],
162
+ '--color-background-body': [neutral.light[95], neutral.dark[10]],
163
+ '--color-overlay': [
164
+ withAlpha(neutral.light[15], '80'),
165
+ withAlpha(neutral.dark[10], 'cc'),
166
+ ],
167
+ '--color-overlay-hover': [
168
+ withAlpha(neutral.light[15], '0d'),
169
+ withAlpha(neutral.dark[90], '0d'),
170
+ ],
171
+ '--color-overlay-pressed': [
172
+ withAlpha(neutral.light[15], '1a'),
173
+ withAlpha(neutral.dark[90], '1a'),
174
+ ],
175
+ '--color-background-muted': [neutral.light[90], neutral.dark[20]],
148
176
 
149
177
  // Text — warm neutral
150
- '--color-text-primary': ['#1d1c11', '#f3f2e2'],
151
- '--color-text-secondary': ['#605f52', '#adac9e'],
152
- '--color-text-disabled': ['#adac9e', '#605f52'],
153
- '--color-text-accent': ['#225BFF', '#FDEE8C'],
154
- '--color-on-dark': '#ffffff',
155
- '--color-on-light': '#1d1c11',
156
- '--color-on-accent': ['#ffffff', '#1d1c11'],
157
- // T95 of each ramp for use on the vivid semantic surfaces.
158
- '--color-on-success': ['#ccff88', '#0b2e00'],
159
- '--color-on-error': ['#ffe3de', '#600000'],
160
- '--color-on-warning': ['#ffeec3', '#3b2200'],
178
+ '--color-text-primary': [neutral.light[15], neutral.dark[90]],
179
+ '--color-text-secondary': [neutral.light[45], neutral.dark[70]],
180
+ '--color-text-disabled': [neutral.light[70], neutral.dark[45]],
181
+ '--color-text-accent': [accent.light[40], yellow.dark[90]],
182
+ '--color-on-dark': neutral.light[100],
183
+ '--color-on-light': neutral.light[15],
184
+ '--color-on-accent': [neutral.light[100], neutral.light[15]],
185
+ // Light foregrounds used on vivid semantic surfaces.
186
+ '--color-on-success': [green.light[85], green.dark[15]],
187
+ '--color-on-error': [red.light[95], red.dark[15]],
188
+ '--color-on-warning': [yellow.light[95], yellow.dark[15]],
161
189
 
162
190
  // Icon
163
- '--color-icon-accent': ['#225BFF', '#FDEE8C'],
164
- '--color-icon-primary': ['#1d1c11', '#f3f2e2'],
165
- '--color-icon-secondary': ['#605f52', '#adac9e'],
166
- '--color-icon-disabled': ['#adac9e', '#605f52'],
191
+ '--color-icon-accent': [accent.light[40], yellow.dark[90]],
192
+ '--color-icon-primary': [neutral.light[15], neutral.dark[90]],
193
+ '--color-icon-secondary': [neutral.light[45], neutral.dark[70]],
194
+ '--color-icon-disabled': [neutral.light[70], neutral.dark[45]],
167
195
 
168
196
  // Surface variants
169
- '--color-background-card': ['#FFFFFF', '#3A2A1F'],
170
- '--color-background-popover': ['#FFFFFF', '#3A2A1F'],
171
- '--color-background-inverted': ['#1d1c11', '#FDFBE4'],
172
-
173
- // Status semantics — T25 light / T80 dark from each status palette.
174
- '--color-error': ['#771210', '#ffb4a6'],
175
- '--color-error-muted': ['#77121033', '#ffb4a640'],
176
- '--color-warning': ['#543700', '#f7be00'],
177
- '--color-warning-muted': ['#54370033', '#f7be0040'],
178
- '--color-success': ['#004700', '#99d94b'],
179
- '--color-success-muted': ['#00470033', '#99d94b40'],
197
+ '--color-background-card': [neutral.light[100], neutral.dark[20]],
198
+ '--color-background-popover': [neutral.light[100], neutral.dark[20]],
199
+ '--color-background-inverted': [neutral.light[15], neutral.dark[95]],
200
+
201
+ // Status semantics share the Red, Yellow, and Green families.
202
+ '--color-error': [red.light[30], red.dark[85]],
203
+ '--color-error-muted': [
204
+ withAlpha(red.light[30], '33'),
205
+ withAlpha(red.dark[85], '40'),
206
+ ],
207
+ '--color-warning': [yellow.light[30], yellow.dark[75]],
208
+ '--color-warning-muted': [
209
+ withAlpha(yellow.light[30], '33'),
210
+ withAlpha(yellow.dark[75], '40'),
211
+ ],
212
+ '--color-success': [green.light[25], green.dark[70]],
213
+ '--color-success-muted': [
214
+ withAlpha(green.light[25], '33'),
215
+ withAlpha(green.dark[70], '40'),
216
+ ],
180
217
 
181
218
  // Border — softer taupe card outline (emphasized) in light mode.
182
- '--color-border': ['#e5e3d4', '#f3f2e21A'],
183
- '--color-border-emphasized': ['#C7C4B2', '#939184'],
219
+ '--color-border': [neutral.light[85], withAlpha(neutral.dark[90], '1a')],
220
+ '--color-border-emphasized': [neutral.light[75], neutral.dark[60]],
184
221
 
185
222
  // Effects
186
- '--color-skeleton': ['#e5e3d4', '#49473b'],
187
- '--color-shadow': ['#1d1c111A', '#0000004D'],
188
- '--color-tint-hover': ['black', 'white'],
223
+ '--color-skeleton': [neutral.light[85], neutral.dark[35]],
224
+ '--color-shadow': [
225
+ withAlpha(neutral.light[15], '1a'),
226
+ withAlpha(neutral.dark[0], '4d'),
227
+ ],
228
+ '--color-tint-hover': [neutral.light[0], neutral.dark[100]],
189
229
 
190
230
  // Typography override
191
231
  '--text-supporting-size': '12px',
@@ -197,69 +237,68 @@ export const butterTheme = defineTheme({
197
237
  '--size-element-lg': '48px',
198
238
 
199
239
  // =========================================================================
200
- // Categorical — same values in light and dark mode (curated dark mode
201
- // keeps the same pastel backgrounds + dark text as light mode).
240
+ // Categorical — reviewed light and dark stops for each family.
202
241
  // =========================================================================
203
242
 
204
243
  // Blue
205
- '--color-background-blue': ['#dbe1ff', '#dbe1ff'],
206
- '--color-border-blue': ['#bdc5eb', '#bdc5eb'],
207
- '--color-icon-blue': ['#203a6c', '#203a6c'],
208
- '--color-text-blue': ['#203a6c', '#203a6c'],
244
+ '--color-background-blue': [blue.light[90], blue.dark[90]],
245
+ '--color-border-blue': [blue.light[80], blue.dark[80]],
246
+ '--color-icon-blue': [blue.light[25], blue.dark[25]],
247
+ '--color-text-blue': [blue.light[25], blue.dark[25]],
209
248
 
210
249
  // Cyan
211
- '--color-background-cyan': ['#a9eff0', '#a9eff0'],
212
- '--color-border-cyan': ['#8dd2d3', '#8dd2d3'],
213
- '--color-icon-cyan': ['#004649', '#004649'],
214
- '--color-text-cyan': ['#004649', '#004649'],
250
+ '--color-background-cyan': [cyan.light[90], cyan.dark[90]],
251
+ '--color-border-cyan': [cyan.light[80], cyan.dark[80]],
252
+ '--color-icon-cyan': [cyan.light[25], cyan.dark[25]],
253
+ '--color-text-cyan': [cyan.light[25], cyan.dark[25]],
215
254
 
216
255
  // Gray (uses the neutral palette)
217
- '--color-background-gray': ['#f0edd4', '#f0edd4'],
218
- '--color-border-gray': ['#d6d3b8', '#d6d3b8'],
219
- '--color-icon-gray': ['#4a4732', '#4a4732'],
220
- '--color-text-gray': ['#4a4732', '#4a4732'],
256
+ '--color-background-gray': [neutral.dark[85], neutral.dark[85]],
257
+ '--color-border-gray': [neutral.light[80], neutral.dark[80]],
258
+ '--color-icon-gray': [neutral.light[30], neutral.dark[30]],
259
+ '--color-text-gray': [neutral.light[30], neutral.dark[30]],
221
260
 
222
261
  // Green
223
- '--color-background-green': ['#c1efb8', '#c1efb8'],
224
- '--color-border-green': ['#a5d29d', '#a5d29d'],
225
- '--color-icon-green': ['#004800', '#004800'],
226
- '--color-text-green': ['#004800', '#004800'],
262
+ '--color-background-green': [green.light[90], green.dark[90]],
263
+ '--color-border-green': [green.light[80], green.dark[80]],
264
+ '--color-icon-green': [green.light[25], green.dark[20]],
265
+ '--color-text-green': [green.light[25], green.dark[20]],
227
266
 
228
267
  // Orange
229
- '--color-background-orange': ['#ffdcb6', '#ffdcb6'],
230
- '--color-border-orange': ['#f2bd81', '#f2bd81'],
231
- '--color-icon-orange': ['#622e00', '#622e00'],
232
- '--color-text-orange': ['#622e00', '#622e00'],
268
+ '--color-background-orange': [orange.light[90], orange.dark[90]],
269
+ '--color-border-orange': [orange.light[80], orange.dark[80]],
270
+ '--color-icon-orange': [orange.light[25], orange.dark[25]],
271
+ '--color-text-orange': [orange.light[25], orange.dark[25]],
233
272
 
234
273
  // Pink
235
- '--color-background-pink': ['#ffd5fb', '#ffd5fb'],
236
- '--color-border-pink': ['#f0b3e8', '#f0b3e8'],
237
- '--color-icon-pink': ['#6c0a68', '#6c0a68'],
238
- '--color-text-pink': ['#6c0a68', '#6c0a68'],
274
+ '--color-background-pink': [pink.light[90], pink.dark[90]],
275
+ '--color-border-pink': [pink.light[80], pink.dark[80]],
276
+ '--color-icon-pink': [pink.light[25], pink.dark[25]],
277
+ '--color-text-pink': [pink.light[25], pink.dark[25]],
239
278
 
240
279
  // Purple
241
- '--color-background-purple': ['#f2daff', '#f2daff'],
242
- '--color-border-purple': ['#ddb9f6', '#ddb9f6'],
243
- '--color-icon-purple': ['#52237b', '#52237b'],
244
- '--color-text-purple': ['#52237b', '#52237b'],
280
+ '--color-background-purple': [purple.light[90], purple.dark[90]],
281
+ '--color-border-purple': [purple.light[80], purple.dark[80]],
282
+ '--color-icon-purple': [purple.light[25], purple.dark[25]],
283
+ '--color-text-purple': [purple.light[25], purple.dark[25]],
245
284
 
246
285
  // Red
247
- '--color-background-red': ['#ffdad3', '#ffdad3'],
248
- '--color-border-red': ['#f4b8ae', '#f4b8ae'],
249
- '--color-icon-red': ['#6d211c', '#6d211c'],
250
- '--color-text-red': ['#6d211c', '#6d211c'],
286
+ '--color-background-red': [red.light[90], red.dark[90]],
287
+ '--color-border-red': [red.light[80], red.dark[80]],
288
+ '--color-icon-red': [red.light[25], red.dark[25]],
289
+ '--color-text-red': [red.light[25], red.dark[25]],
251
290
 
252
291
  // Teal
253
- '--color-background-teal': ['#b0f0d7', '#b0f0d7'],
254
- '--color-border-teal': ['#94d3bb', '#94d3bb'],
255
- '--color-icon-teal': ['#00482d', '#00482d'],
256
- '--color-text-teal': ['#00482d', '#00482d'],
292
+ '--color-background-teal': [teal.light[90], teal.dark[90]],
293
+ '--color-border-teal': [teal.light[80], teal.dark[80]],
294
+ '--color-icon-teal': [teal.light[25], teal.dark[25]],
295
+ '--color-text-teal': [teal.light[25], teal.dark[25]],
257
296
 
258
297
  // Yellow
259
- '--color-background-yellow': ['#feee7b', '#feee7b'],
260
- '--color-border-yellow': ['#d6c957', '#d6c957'],
261
- '--color-icon-yellow': ['#413e00', '#413e00'],
262
- '--color-text-yellow': ['#413e00', '#413e00'],
298
+ '--color-background-yellow': [yellow.light[85], yellow.dark[85]],
299
+ '--color-border-yellow': [yellow.light[70], yellow.dark[70]],
300
+ '--color-icon-yellow': [yellow.light[25], yellow.dark[25]],
301
+ '--color-text-yellow': [yellow.light[25], yellow.dark[25]],
263
302
 
264
303
  // =========================================================================
265
304
  // Radius
@@ -279,14 +318,14 @@ export const butterTheme = defineTheme({
279
318
  // =========================================================================
280
319
  // Shadows — warm neutral tint
281
320
  // =========================================================================
282
- '--shadow-low': '0 2px 4px #1d1c110D, 0 4px 8px #1d1c111A',
283
- '--shadow-med': '0 2px 4px #1d1c110D, 0 4px 12px #1d1c111A',
284
- '--shadow-high': '0 4px 6px #1d1c111A, 0 12px 24px #1d1c1126',
285
- '--shadow-inset-hover': 'inset 0px 0px 0px 2px #79786a30',
286
- '--shadow-inset-selected': 'inset 0px 0px 0px 2px #79786a50',
287
- '--shadow-inset-success': 'inset 0px 0px 0px 2px #00470030',
288
- '--shadow-inset-warning': 'inset 0px 0px 0px 2px #54370030',
289
- '--shadow-inset-error': 'inset 0px 0px 0px 2px #77121030',
321
+ '--shadow-low': `0 2px 4px ${withAlpha(neutral.light[15], '0d')}, 0 4px 8px ${withAlpha(neutral.light[15], '1a')}`,
322
+ '--shadow-med': `0 2px 4px ${withAlpha(neutral.light[15], '0d')}, 0 4px 12px ${withAlpha(neutral.light[15], '1a')}`,
323
+ '--shadow-high': `0 4px 6px ${withAlpha(neutral.light[15], '1a')}, 0 12px 24px ${withAlpha(neutral.light[15], '26')}`,
324
+ '--shadow-inset-hover': `inset 0px 0px 0px 2px ${withAlpha(neutral.light[55], '30')}`,
325
+ '--shadow-inset-selected': `inset 0px 0px 0px 2px ${withAlpha(neutral.light[55], '50')}`,
326
+ '--shadow-inset-success': `inset 0px 0px 0px 2px ${withAlpha(green.light[25], '30')}`,
327
+ '--shadow-inset-warning': `inset 0px 0px 0px 2px ${withAlpha(yellow.light[30], '30')}`,
328
+ '--shadow-inset-error': `inset 0px 0px 0px 2px ${withAlpha(red.light[30], '30')}`,
290
329
  },
291
330
 
292
331
  components: {
@@ -298,18 +337,18 @@ export const butterTheme = defineTheme({
298
337
  // redirect that token (not just `color`) to the brand blue so the text
299
338
  // itself turns blue, not only the container.
300
339
  base: {
301
- color: 'light-dark(#225BFF, #FDEE8C)',
302
- '--color-text-primary': 'light-dark(#225BFF, #FDEE8C)',
340
+ color: lightDark(accent.light[40], yellow.dark[90]),
341
+ '--color-text-primary': lightDark(accent.light[40], yellow.dark[90]),
303
342
  },
304
343
  },
305
344
  'top-nav-item': {
306
345
  base: {
307
- color: 'light-dark(#6E92FF, #FDEE8CCC)',
346
+ color: lightDark(accent.light[40], withAlpha(yellow.dark[90], 'cc')),
308
347
  },
309
- // Selected item: full brand blue, no pill background — rely on weight +
310
- // color for emphasis. Hover/active keep the neutral overlay.
348
+ // Selected item: a darker Blue stop in light mode and full Butter Yellow
349
+ // in dark mode, with no pill background. Weight + color carry emphasis.
311
350
  selected: {
312
- color: 'light-dark(#225BFF, #FDEE8C)',
351
+ color: lightDark(accent.light[35], yellow.dark[90]),
313
352
  backgroundColor: 'transparent',
314
353
  ':hover': {
315
354
  backgroundColor: 'var(--color-overlay-hover)',
@@ -330,11 +369,11 @@ export const butterTheme = defineTheme({
330
369
  'variant:secondary': SECONDARY_BUTTON,
331
370
  // Ghost: same accent color as secondary, no background.
332
371
  'variant:ghost': {
333
- color: 'light-dark(#225BFF, #FDEE8C)',
372
+ color: lightDark(accent.light[40], yellow.dark[90]),
334
373
  },
335
374
  'variant:destructive': {
336
- backgroundColor: 'light-dark(#ffdad3, #f4b8ae)',
337
- color: 'light-dark(#550000, #6d211c)',
375
+ backgroundColor: lightDark(red.light[90], red.dark[80]),
376
+ color: lightDark(red.light[10], red.dark[25]),
338
377
  },
339
378
  },
340
379
 
@@ -347,27 +386,27 @@ export const butterTheme = defineTheme({
347
386
  paddingBlock: '0',
348
387
  paddingInline: 'var(--spacing-3)',
349
388
  },
350
- // Vivid semantic badges — pinned to the brand colors from the spec.
351
- // Info uses the Blue palette source (NOT the brand accent #225BFF).
389
+ // Vivid semantic badges — pinned to the reviewed semantic stops.
390
+ // Info uses Butter’s lighter accent stop rather than its signature stop.
352
391
  'variant:info': {
353
- backgroundColor: '#4883fd',
354
- color: '#ffffff',
392
+ backgroundColor: accent.light[55],
393
+ color: neutral.light[15],
355
394
  },
356
395
  'variant:neutral': {
357
- backgroundColor: '#ffee7b',
358
- color: '#225BFF',
396
+ backgroundColor: yellow.light[90],
397
+ color: accent.light[35],
359
398
  },
360
399
  'variant:success': {
361
- backgroundColor: '#91D143',
362
- color: '#1d1c11',
400
+ backgroundColor: green.light[70],
401
+ color: neutral.light[15],
363
402
  },
364
403
  'variant:warning': {
365
- backgroundColor: '#ffc502',
366
- color: '#1d1c11',
404
+ backgroundColor: yellow.light[80],
405
+ color: neutral.light[15],
367
406
  },
368
407
  'variant:error': {
369
- backgroundColor: '#fc473b',
370
- color: '#ffffff',
408
+ backgroundColor: red.light[60],
409
+ color: neutral.light[15],
371
410
  },
372
411
  },
373
412
 
@@ -377,28 +416,28 @@ export const butterTheme = defineTheme({
377
416
  // matching the badge palette. Scoped to the banner root, doesn't leak.
378
417
  banner: {
379
418
  'status:info': {
380
- '--color-accent-muted': '#4883fd',
381
- '--color-text-primary': '#ffffff',
382
- '--color-text-secondary': '#ffffff',
383
- '--color-accent': '#ffffff',
419
+ '--color-accent-muted': accent.light[55],
420
+ '--color-text-primary': neutral.light[15],
421
+ '--color-text-secondary': neutral.light[15],
422
+ '--color-accent': neutral.light[15],
384
423
  },
385
424
  'status:success': {
386
- '--color-success-muted': '#91D143',
387
- '--color-text-primary': '#1d1c11',
388
- '--color-text-secondary': '#1d1c11',
389
- '--color-success': '#1d1c11',
425
+ '--color-success-muted': green.light[70],
426
+ '--color-text-primary': neutral.light[15],
427
+ '--color-text-secondary': neutral.light[15],
428
+ '--color-success': neutral.light[15],
390
429
  },
391
430
  'status:warning': {
392
- '--color-warning-muted': '#ffc502',
393
- '--color-text-primary': '#1d1c11',
394
- '--color-text-secondary': '#1d1c11',
395
- '--color-warning': '#1d1c11',
431
+ '--color-warning-muted': yellow.light[80],
432
+ '--color-text-primary': neutral.light[15],
433
+ '--color-text-secondary': neutral.light[15],
434
+ '--color-warning': neutral.light[15],
396
435
  },
397
436
  'status:error': {
398
- '--color-error-muted': '#fc473b',
399
- '--color-text-primary': '#ffffff',
400
- '--color-text-secondary': '#ffffff',
401
- '--color-error': '#ffffff',
437
+ '--color-error-muted': red.light[60],
438
+ '--color-text-primary': neutral.light[15],
439
+ '--color-text-secondary': neutral.light[15],
440
+ '--color-error': neutral.light[15],
402
441
  },
403
442
  },
404
443
 
@@ -408,64 +447,64 @@ export const butterTheme = defineTheme({
408
447
  padding: 'var(--spacing-4)',
409
448
  },
410
449
  'variant:info': {
411
- '--color-text-primary': '#1d1c11',
412
- '--color-text-secondary': '#605f52',
450
+ '--color-text-primary': neutral.light[15],
451
+ '--color-text-secondary': neutral.light[45],
413
452
  },
414
453
  'variant:success': {
415
- '--color-text-primary': '#1d1c11',
416
- '--color-text-secondary': '#605f52',
454
+ '--color-text-primary': neutral.light[15],
455
+ '--color-text-secondary': neutral.light[45],
417
456
  },
418
457
  'variant:warning': {
419
- '--color-text-primary': '#1d1c11',
420
- '--color-text-secondary': '#605f52',
458
+ '--color-text-primary': neutral.light[15],
459
+ '--color-text-secondary': neutral.light[45],
421
460
  },
422
461
  'variant:error': {
423
- '--color-text-primary': '#1d1c11',
424
- '--color-text-secondary': '#605f52',
462
+ '--color-text-primary': neutral.light[15],
463
+ '--color-text-secondary': neutral.light[45],
425
464
  },
426
465
  'variant:blue': {
427
- '--color-text-primary': '#1d1c11',
428
- '--color-text-secondary': '#605f52',
466
+ '--color-text-primary': neutral.light[15],
467
+ '--color-text-secondary': neutral.light[45],
429
468
  },
430
469
  'variant:cyan': {
431
- '--color-text-primary': '#1d1c11',
432
- '--color-text-secondary': '#605f52',
470
+ '--color-text-primary': neutral.light[15],
471
+ '--color-text-secondary': neutral.light[45],
433
472
  },
434
473
  'variant:gray': {
435
- '--color-text-primary': '#1d1c11',
436
- '--color-text-secondary': '#605f52',
474
+ '--color-text-primary': neutral.light[15],
475
+ '--color-text-secondary': neutral.light[45],
437
476
  },
438
477
  'variant:green': {
439
- '--color-text-primary': '#1d1c11',
440
- '--color-text-secondary': '#605f52',
478
+ '--color-text-primary': neutral.light[15],
479
+ '--color-text-secondary': neutral.light[45],
441
480
  },
442
481
  'variant:orange': {
443
- '--color-text-primary': '#1d1c11',
444
- '--color-text-secondary': '#605f52',
482
+ '--color-text-primary': neutral.light[15],
483
+ '--color-text-secondary': neutral.light[45],
445
484
  },
446
485
  'variant:pink': {
447
- '--color-text-primary': '#1d1c11',
448
- '--color-text-secondary': '#605f52',
486
+ '--color-text-primary': neutral.light[15],
487
+ '--color-text-secondary': neutral.light[45],
449
488
  },
450
489
  'variant:purple': {
451
- '--color-text-primary': '#1d1c11',
452
- '--color-text-secondary': '#605f52',
490
+ '--color-text-primary': neutral.light[15],
491
+ '--color-text-secondary': neutral.light[45],
453
492
  },
454
493
  'variant:red': {
455
- '--color-text-primary': '#1d1c11',
456
- '--color-text-secondary': '#605f52',
494
+ '--color-text-primary': neutral.light[15],
495
+ '--color-text-secondary': neutral.light[45],
457
496
  },
458
497
  'variant:teal': {
459
- '--color-text-primary': '#1d1c11',
460
- '--color-text-secondary': '#605f52',
498
+ '--color-text-primary': neutral.light[15],
499
+ '--color-text-secondary': neutral.light[45],
461
500
  },
462
501
  'variant:yellow': {
463
- '--color-text-primary': '#1d1c11',
464
- '--color-text-secondary': '#605f52',
502
+ '--color-text-primary': neutral.light[15],
503
+ '--color-text-secondary': neutral.light[45],
465
504
  },
466
505
  'variant:muted': {
467
- '--color-text-primary': '#1d1c11',
468
- '--color-text-secondary': '#605f52',
506
+ '--color-text-primary': neutral.light[15],
507
+ '--color-text-secondary': neutral.light[45],
469
508
  },
470
509
  },
471
510
 
@@ -475,22 +514,22 @@ export const butterTheme = defineTheme({
475
514
  },
476
515
  },
477
516
 
478
- // Progress bar — white track in light, warm brown in dark. Vivid
517
+ // Progress bar — pale track in light, warm brown in dark. Vivid
479
518
  // semantic fills match the banner colors (Success / Warning / Error).
480
519
  'progress-bar-track': {
481
520
  base: {
482
- backgroundColor: 'light-dark(#e5e3d4, #725538)',
521
+ backgroundColor: lightDark(neutral.light[85], neutral.dark[40]),
483
522
  },
484
523
  },
485
524
  'progress-bar-fill': {
486
525
  'variant:success': {
487
- backgroundColor: '#91D143',
526
+ backgroundColor: green.light[70],
488
527
  },
489
528
  'variant:warning': {
490
- backgroundColor: '#ffc502',
529
+ backgroundColor: yellow.light[80],
491
530
  },
492
531
  'variant:error': {
493
- backgroundColor: '#fc473b',
532
+ backgroundColor: red.light[60],
494
533
  },
495
534
  },
496
535
 
@@ -499,16 +538,16 @@ export const butterTheme = defineTheme({
499
538
  // error / success" surface as the standalone banner.
500
539
  'field-status': {
501
540
  'type:success': {
502
- backgroundColor: '#91D143',
503
- color: '#1d1c11',
541
+ backgroundColor: green.light[70],
542
+ color: neutral.light[15],
504
543
  },
505
544
  'type:warning': {
506
- backgroundColor: '#ffc502',
507
- color: '#1d1c11',
545
+ backgroundColor: yellow.light[80],
546
+ color: neutral.light[15],
508
547
  },
509
548
  'type:error': {
510
- backgroundColor: '#fc473b',
511
- color: '#ffffff',
549
+ backgroundColor: red.light[60],
550
+ color: neutral.light[15],
512
551
  },
513
552
  },
514
553
 
@@ -522,9 +561,9 @@ export const butterTheme = defineTheme({
522
561
  paddingInline: 'var(--spacing-3)',
523
562
  borderColor: 'var(--color-border)',
524
563
  },
525
- 'status:success': {'--color-success': '#91D143'},
526
- 'status:warning': {'--color-warning': '#ffc502'},
527
- 'status:error': {'--color-error': '#fc473b'},
564
+ 'status:success': {'--color-success': green.light[70]},
565
+ 'status:warning': {'--color-warning': yellow.light[80]},
566
+ 'status:error': {'--color-error': red.light[60]},
528
567
  },
529
568
  'text-area': {
530
569
  base: {
@@ -532,9 +571,9 @@ export const butterTheme = defineTheme({
532
571
  paddingInline: 'var(--spacing-3)',
533
572
  borderColor: 'var(--color-border)',
534
573
  },
535
- 'status:success': {'--color-success': '#91D143'},
536
- 'status:warning': {'--color-warning': '#ffc502'},
537
- 'status:error': {'--color-error': '#fc473b'},
574
+ 'status:success': {'--color-success': green.light[70]},
575
+ 'status:warning': {'--color-warning': yellow.light[80]},
576
+ 'status:error': {'--color-error': red.light[60]},
538
577
  },
539
578
  'number-input': {
540
579
  base: {
@@ -542,9 +581,9 @@ export const butterTheme = defineTheme({
542
581
  paddingInline: 'var(--spacing-3)',
543
582
  borderColor: 'var(--color-border)',
544
583
  },
545
- 'status:success': {'--color-success': '#91D143'},
546
- 'status:warning': {'--color-warning': '#ffc502'},
547
- 'status:error': {'--color-error': '#fc473b'},
584
+ 'status:success': {'--color-success': green.light[70]},
585
+ 'status:warning': {'--color-warning': yellow.light[80]},
586
+ 'status:error': {'--color-error': red.light[60]},
548
587
  },
549
588
  'date-input': {
550
589
  base: {
@@ -552,9 +591,9 @@ export const butterTheme = defineTheme({
552
591
  paddingInline: 'var(--spacing-3)',
553
592
  borderColor: 'var(--color-border)',
554
593
  },
555
- 'status:success': {'--color-success': '#91D143'},
556
- 'status:warning': {'--color-warning': '#ffc502'},
557
- 'status:error': {'--color-error': '#fc473b'},
594
+ 'status:success': {'--color-success': green.light[70]},
595
+ 'status:warning': {'--color-warning': yellow.light[80]},
596
+ 'status:error': {'--color-error': red.light[60]},
558
597
  },
559
598
  'time-input': {
560
599
  base: {
@@ -562,9 +601,9 @@ export const butterTheme = defineTheme({
562
601
  paddingInline: 'var(--spacing-3)',
563
602
  borderColor: 'var(--color-border)',
564
603
  },
565
- 'status:success': {'--color-success': '#91D143'},
566
- 'status:warning': {'--color-warning': '#ffc502'},
567
- 'status:error': {'--color-error': '#fc473b'},
604
+ 'status:success': {'--color-success': green.light[70]},
605
+ 'status:warning': {'--color-warning': yellow.light[80]},
606
+ 'status:error': {'--color-error': red.light[60]},
568
607
  },
569
608
  selector: {
570
609
  base: {
@@ -572,9 +611,9 @@ export const butterTheme = defineTheme({
572
611
  paddingInline: 'var(--spacing-3)',
573
612
  borderColor: 'var(--color-border)',
574
613
  },
575
- 'status:success': {'--color-success': '#91D143'},
576
- 'status:warning': {'--color-warning': '#ffc502'},
577
- 'status:error': {'--color-error': '#fc473b'},
614
+ 'status:success': {'--color-success': green.light[70]},
615
+ 'status:warning': {'--color-warning': yellow.light[80]},
616
+ 'status:error': {'--color-error': red.light[60]},
578
617
  'variant:secondary': SECONDARY_SELECTOR,
579
618
  },
580
619
  'multi-selector': {
@@ -583,9 +622,9 @@ export const butterTheme = defineTheme({
583
622
  paddingInline: 'var(--spacing-3)',
584
623
  borderColor: 'var(--color-border)',
585
624
  },
586
- 'status:success': {'--color-success': '#91D143'},
587
- 'status:warning': {'--color-warning': '#ffc502'},
588
- 'status:error': {'--color-error': '#fc473b'},
625
+ 'status:success': {'--color-success': green.light[70]},
626
+ 'status:warning': {'--color-warning': yellow.light[80]},
627
+ 'status:error': {'--color-error': red.light[60]},
589
628
  'variant:secondary': SECONDARY_SELECTOR,
590
629
  },
591
630
  'complex-selector': {'variant:secondary': SECONDARY_COMPLEX_SELECTOR},
@@ -595,9 +634,9 @@ export const butterTheme = defineTheme({
595
634
  paddingInline: 'var(--spacing-3)',
596
635
  borderColor: 'var(--color-border)',
597
636
  },
598
- 'status:success': {'--color-success': '#91D143'},
599
- 'status:warning': {'--color-warning': '#ffc502'},
600
- 'status:error': {'--color-error': '#fc473b'},
637
+ 'status:success': {'--color-success': green.light[70]},
638
+ 'status:warning': {'--color-warning': yellow.light[80]},
639
+ 'status:error': {'--color-error': red.light[60]},
601
640
  },
602
641
  tokenizer: {
603
642
  base: {
@@ -605,9 +644,9 @@ export const butterTheme = defineTheme({
605
644
  paddingInline: 'var(--spacing-3)',
606
645
  borderColor: 'var(--color-border)',
607
646
  },
608
- 'status:success': {'--color-success': '#91D143'},
609
- 'status:warning': {'--color-warning': '#ffc502'},
610
- 'status:error': {'--color-error': '#fc473b'},
647
+ 'status:success': {'--color-success': green.light[70]},
648
+ 'status:warning': {'--color-warning': yellow.light[80]},
649
+ 'status:error': {'--color-error': red.light[60]},
611
650
  },
612
651
 
613
652
  // Display sizes use Sarina — the signature buttery display
@@ -632,22 +671,23 @@ export const butterTheme = defineTheme({
632
671
  });
633
672
 
634
673
  /**
635
- * Raw tonal palettes — generated from design-spec source hexes via the
636
- * same CIELab algorithm `ThemePalettePreview` uses for the displayed
637
- * strip, so the rendered ramp and the consumed token values are 1:1.
674
+ * Frozen released compatibility palettes. These ramps preserve the public
675
+ * `butterPalettes` shape and values for existing consumers; the maintained
676
+ * theme renders selected stops from `butterPalettes.generated.ts` instead.
677
+ * Do not regenerate this object from the private mode-aware palette.
638
678
  *
639
- * Source colors:
679
+ * Historical source labels for this compatibility snapshot:
640
680
  * accent #225BFF neutral #868B99
641
681
  * red #ffc3b8 orange #ffc98d yellow #feee7b
642
682
  * green #bdebb4 cyan #abf1f1 teal #aeefd6
643
683
  * blue #cdd5fc purple #e6c2ff pink #fec0f5
644
684
  * error #fc473b warning #ffc502 success #91D143
645
685
  *
646
- * Categorical sources are the pastel pill hexes from the design spec so
647
- * each ramp's T85 lands directly on the card / badge background color.
648
- * Semantic sources are vivid so the ramp anchors near the badge fill.
686
+ * The original snapshot used pastel categorical source labels and vivid semantic
687
+ * source labels. The current maintained theme does not derive from this object.
649
688
  *
650
- * Regenerate with: node packages/themes/butter/scripts/generate-palettes.mjs
689
+ * These notes describe the released snapshot and are not regeneration
690
+ * instructions for the maintained theme.
651
691
  */
652
692
  export const butterPalettes = {
653
693
  blue: {