@astryxdesign/cli 0.7.3 → 0.7.4-canary.31e54e4
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.
- package/README.md +5 -5
- package/api/discover/_adapter.mjs +22 -10
- package/api/discover/_catalog-view.d.mts +2 -0
- package/api/discover/_catalog-view.mjs +1 -0
- package/api/discover/_catalog-view.test.mjs +1 -0
- package/api/discover/detail/detail.mjs +1 -0
- package/api/discover/detail/detail.test.mjs +3 -0
- package/api/discover/detail/doc/doc.mjs +5 -1
- package/api/discover/detail/doc/doc.test.mjs +1 -0
- package/api/discover/detail/item/item.mjs +2 -0
- package/api/discover/detail/item/item.test.mjs +2 -0
- package/api/discover/discover.doc.mjs +4 -4
- package/api/discover/discover.type.d.mts +20 -0
- package/api/discover/discover.type.mjs +5 -0
- package/api/discover/list/list.test.mjs +2 -0
- package/api/discover/search/search.d.mts +3 -2
- package/api/discover/search/search.mjs +26 -7
- package/api/discover/search/search.test.mjs +67 -0
- package/api/doctor/_adapter.d.mts +40 -0
- package/api/doctor/_adapter.mjs +171 -1
- package/api/doctor/built-checks.d.mts +85 -0
- package/api/doctor/built-checks.mjs +807 -0
- package/api/doctor/built-checks.test.mjs +502 -0
- package/api/doctor/doctor.d.mts +6 -5
- package/api/doctor/doctor.doc.mjs +10 -0
- package/api/doctor/doctor.mjs +18 -3
- package/api/doctor/doctor.type.d.mts +6 -0
- package/api/doctor/doctor.type.mjs +3 -0
- package/api/integration/pack-check.mjs +6 -1
- package/api/integration/pack-check.test.mjs +14 -0
- package/api/theme/palette/generate/generate.d.mts +8 -0
- package/api/theme/palette/generate/generate.mjs +38 -11
- package/api/theme/palette/generate/generate.test.mjs +83 -4
- package/api/theme/palette/generate/generator.d.mts +6 -0
- package/api/theme/palette/generate/generator.mjs +6 -0
- package/api/theme/theme.type.d.mts +12 -1
- package/api/theme/theme.type.mjs +7 -1
- package/api/theme/themePaletteGenerate.doc.mjs +1 -1
- package/assets/templates/blocks/components/BottomSheet/BottomSheetSwitcherReviewFlow.doc.mjs +1 -1
- package/assets/templates/blocks/components/BottomSheet/BottomSheetSwitcherShowcase.doc.mjs +1 -1
- package/assets/templates/themes/butter/butterPaletteRefs.generated.ts +54 -0
- package/assets/templates/themes/butter/butterPalettes.generated.receipt.json +1499 -0
- package/assets/templates/themes/butter/butterPalettes.generated.ts +550 -0
- package/assets/templates/themes/butter/butterTheme.ts +274 -234
- package/assets/templates/themes/butter/palette.config.json +484 -0
- package/assets/templates/themes/gothic/gothicPaletteRefs.generated.ts +41 -0
- package/assets/templates/themes/gothic/gothicPalettes.generated.receipt.json +979 -0
- package/assets/templates/themes/gothic/gothicPalettes.generated.ts +271 -0
- package/assets/templates/themes/gothic/gothicTheme.ts +130 -160
- package/assets/templates/themes/gothic/palette.config.json +371 -0
- package/assets/templates/themes/matcha/matchaPaletteRefs.generated.ts +51 -0
- package/assets/templates/themes/matcha/matchaPalettes.generated.receipt.json +1502 -0
- package/assets/templates/themes/matcha/matchaPalettes.generated.ts +501 -0
- package/assets/templates/themes/matcha/matchaPalettes.ts +21 -0
- package/assets/templates/themes/matcha/matchaTheme.ts +164 -103
- package/assets/templates/themes/matcha/palette.config.json +448 -0
- package/assets/templates/themes/stone/palette.config.json +262 -0
- package/assets/templates/themes/stone/stonePaletteRefs.generated.ts +51 -0
- package/assets/templates/themes/stone/stonePalettes.generated.receipt.json +840 -0
- package/assets/templates/themes/stone/stonePalettes.generated.ts +501 -0
- package/assets/templates/themes/stone/stoneTheme.ts +190 -207
- package/assets/templates/themes/y2k/palette.config.json +166 -0
- package/assets/templates/themes/y2k/y2kPaletteRefs.generated.ts +54 -0
- package/assets/templates/themes/y2k/y2kPalettes.generated.receipt.json +872 -0
- package/assets/templates/themes/y2k/y2kPalettes.generated.ts +550 -0
- package/assets/templates/themes/y2k/y2kPalettes.ts +257 -0
- package/assets/templates/themes/y2k/y2kTheme.ts +164 -391
- package/clients/cli/commands/discover.mjs +1 -1
- package/clients/cli/commands/discover.sources.test.mjs +6 -0
- package/clients/cli/commands/doctor.doc.mjs +12 -0
- package/clients/cli/commands/doctor.mjs +23 -8
- package/foundation/response/error-codes.test.mjs +9 -0
- package/foundation/response/response-types.doc.mjs +5 -5
- package/foundation/response/response-types.doc.test.mjs +29 -0
- 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
|
-
*
|
|
10
|
-
*
|
|
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
|
-
|
|
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: [
|
|
30
|
-
string: [
|
|
31
|
-
comment: [
|
|
32
|
-
number: [
|
|
33
|
-
function: [
|
|
34
|
-
type: [
|
|
35
|
-
variable: [
|
|
36
|
-
operator: [
|
|
37
|
-
constant: [
|
|
38
|
-
tag: [
|
|
39
|
-
attribute: [
|
|
40
|
-
property: [
|
|
41
|
-
punctuation: [
|
|
42
|
-
background: [
|
|
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:
|
|
58
|
-
color:
|
|
67
|
+
borderColor: lightDark(accent.light[40], yellow.dark[90]),
|
|
68
|
+
color: lightDark(accent.light[40], yellow.dark[90]),
|
|
59
69
|
':hover': {
|
|
60
|
-
backgroundColor:
|
|
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
|
|
150
|
+
// Core semantic — accent uses the exact signature brand stop
|
|
138
151
|
// =========================================================================
|
|
139
|
-
'--color-accent': [
|
|
140
|
-
'--color-accent-muted': [
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
'--color-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
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': [
|
|
151
|
-
'--color-text-secondary': [
|
|
152
|
-
'--color-text-disabled': [
|
|
153
|
-
'--color-text-accent': [
|
|
154
|
-
'--color-on-dark':
|
|
155
|
-
'--color-on-light':
|
|
156
|
-
'--color-on-accent': [
|
|
157
|
-
//
|
|
158
|
-
'--color-on-success': [
|
|
159
|
-
'--color-on-error': [
|
|
160
|
-
'--color-on-warning': [
|
|
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': [
|
|
164
|
-
'--color-icon-primary': [
|
|
165
|
-
'--color-icon-secondary': [
|
|
166
|
-
'--color-icon-disabled': [
|
|
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': [
|
|
170
|
-
'--color-background-popover': [
|
|
171
|
-
'--color-background-inverted': [
|
|
172
|
-
|
|
173
|
-
// Status semantics
|
|
174
|
-
'--color-error': [
|
|
175
|
-
'--color-error-muted': [
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
'--color-
|
|
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': [
|
|
183
|
-
'--color-border-emphasized': [
|
|
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': [
|
|
187
|
-
'--color-shadow': [
|
|
188
|
-
|
|
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 —
|
|
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': [
|
|
206
|
-
'--color-border-blue': [
|
|
207
|
-
'--color-icon-blue': [
|
|
208
|
-
'--color-text-blue': [
|
|
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': [
|
|
212
|
-
'--color-border-cyan': [
|
|
213
|
-
'--color-icon-cyan': [
|
|
214
|
-
'--color-text-cyan': [
|
|
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': [
|
|
218
|
-
'--color-border-gray': [
|
|
219
|
-
'--color-icon-gray': [
|
|
220
|
-
'--color-text-gray': [
|
|
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': [
|
|
224
|
-
'--color-border-green': [
|
|
225
|
-
'--color-icon-green': [
|
|
226
|
-
'--color-text-green': [
|
|
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': [
|
|
230
|
-
'--color-border-orange': [
|
|
231
|
-
'--color-icon-orange': [
|
|
232
|
-
'--color-text-orange': [
|
|
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': [
|
|
236
|
-
'--color-border-pink': [
|
|
237
|
-
'--color-icon-pink': [
|
|
238
|
-
'--color-text-pink': [
|
|
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': [
|
|
242
|
-
'--color-border-purple': [
|
|
243
|
-
'--color-icon-purple': [
|
|
244
|
-
'--color-text-purple': [
|
|
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': [
|
|
248
|
-
'--color-border-red': [
|
|
249
|
-
'--color-icon-red': [
|
|
250
|
-
'--color-text-red': [
|
|
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': [
|
|
254
|
-
'--color-border-teal': [
|
|
255
|
-
'--color-icon-teal': [
|
|
256
|
-
'--color-text-teal': [
|
|
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': [
|
|
260
|
-
'--color-border-yellow': [
|
|
261
|
-
'--color-icon-yellow': [
|
|
262
|
-
'--color-text-yellow': [
|
|
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':
|
|
283
|
-
'--shadow-med':
|
|
284
|
-
'--shadow-high':
|
|
285
|
-
'--shadow-inset-hover':
|
|
286
|
-
'--shadow-inset-selected':
|
|
287
|
-
'--shadow-inset-success':
|
|
288
|
-
'--shadow-inset-warning':
|
|
289
|
-
'--shadow-inset-error':
|
|
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:
|
|
302
|
-
'--color-text-primary':
|
|
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:
|
|
346
|
+
color: lightDark(accent.light[40], withAlpha(yellow.dark[90], 'cc')),
|
|
308
347
|
},
|
|
309
|
-
// Selected item:
|
|
310
|
-
//
|
|
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:
|
|
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:
|
|
372
|
+
color: lightDark(accent.light[40], yellow.dark[90]),
|
|
334
373
|
},
|
|
335
374
|
'variant:destructive': {
|
|
336
|
-
backgroundColor:
|
|
337
|
-
color:
|
|
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
|
|
351
|
-
// Info uses
|
|
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:
|
|
354
|
-
color:
|
|
392
|
+
backgroundColor: accent.light[55],
|
|
393
|
+
color: neutral.light[15],
|
|
355
394
|
},
|
|
356
395
|
'variant:neutral': {
|
|
357
|
-
backgroundColor:
|
|
358
|
-
color:
|
|
396
|
+
backgroundColor: yellow.light[90],
|
|
397
|
+
color: accent.light[35],
|
|
359
398
|
},
|
|
360
399
|
'variant:success': {
|
|
361
|
-
backgroundColor:
|
|
362
|
-
color:
|
|
400
|
+
backgroundColor: green.light[70],
|
|
401
|
+
color: neutral.light[15],
|
|
363
402
|
},
|
|
364
403
|
'variant:warning': {
|
|
365
|
-
backgroundColor:
|
|
366
|
-
color:
|
|
404
|
+
backgroundColor: yellow.light[80],
|
|
405
|
+
color: neutral.light[15],
|
|
367
406
|
},
|
|
368
407
|
'variant:error': {
|
|
369
|
-
backgroundColor:
|
|
370
|
-
color:
|
|
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':
|
|
381
|
-
'--color-text-primary':
|
|
382
|
-
'--color-text-secondary':
|
|
383
|
-
'--color-accent':
|
|
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':
|
|
387
|
-
'--color-text-primary':
|
|
388
|
-
'--color-text-secondary':
|
|
389
|
-
'--color-success':
|
|
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':
|
|
393
|
-
'--color-text-primary':
|
|
394
|
-
'--color-text-secondary':
|
|
395
|
-
'--color-warning':
|
|
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':
|
|
399
|
-
'--color-text-primary':
|
|
400
|
-
'--color-text-secondary':
|
|
401
|
-
'--color-error':
|
|
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':
|
|
412
|
-
'--color-text-secondary':
|
|
450
|
+
'--color-text-primary': neutral.light[15],
|
|
451
|
+
'--color-text-secondary': neutral.light[45],
|
|
413
452
|
},
|
|
414
453
|
'variant:success': {
|
|
415
|
-
'--color-text-primary':
|
|
416
|
-
'--color-text-secondary':
|
|
454
|
+
'--color-text-primary': neutral.light[15],
|
|
455
|
+
'--color-text-secondary': neutral.light[45],
|
|
417
456
|
},
|
|
418
457
|
'variant:warning': {
|
|
419
|
-
'--color-text-primary':
|
|
420
|
-
'--color-text-secondary':
|
|
458
|
+
'--color-text-primary': neutral.light[15],
|
|
459
|
+
'--color-text-secondary': neutral.light[45],
|
|
421
460
|
},
|
|
422
461
|
'variant:error': {
|
|
423
|
-
'--color-text-primary':
|
|
424
|
-
'--color-text-secondary':
|
|
462
|
+
'--color-text-primary': neutral.light[15],
|
|
463
|
+
'--color-text-secondary': neutral.light[45],
|
|
425
464
|
},
|
|
426
465
|
'variant:blue': {
|
|
427
|
-
'--color-text-primary':
|
|
428
|
-
'--color-text-secondary':
|
|
466
|
+
'--color-text-primary': neutral.light[15],
|
|
467
|
+
'--color-text-secondary': neutral.light[45],
|
|
429
468
|
},
|
|
430
469
|
'variant:cyan': {
|
|
431
|
-
'--color-text-primary':
|
|
432
|
-
'--color-text-secondary':
|
|
470
|
+
'--color-text-primary': neutral.light[15],
|
|
471
|
+
'--color-text-secondary': neutral.light[45],
|
|
433
472
|
},
|
|
434
473
|
'variant:gray': {
|
|
435
|
-
'--color-text-primary':
|
|
436
|
-
'--color-text-secondary':
|
|
474
|
+
'--color-text-primary': neutral.light[15],
|
|
475
|
+
'--color-text-secondary': neutral.light[45],
|
|
437
476
|
},
|
|
438
477
|
'variant:green': {
|
|
439
|
-
'--color-text-primary':
|
|
440
|
-
'--color-text-secondary':
|
|
478
|
+
'--color-text-primary': neutral.light[15],
|
|
479
|
+
'--color-text-secondary': neutral.light[45],
|
|
441
480
|
},
|
|
442
481
|
'variant:orange': {
|
|
443
|
-
'--color-text-primary':
|
|
444
|
-
'--color-text-secondary':
|
|
482
|
+
'--color-text-primary': neutral.light[15],
|
|
483
|
+
'--color-text-secondary': neutral.light[45],
|
|
445
484
|
},
|
|
446
485
|
'variant:pink': {
|
|
447
|
-
'--color-text-primary':
|
|
448
|
-
'--color-text-secondary':
|
|
486
|
+
'--color-text-primary': neutral.light[15],
|
|
487
|
+
'--color-text-secondary': neutral.light[45],
|
|
449
488
|
},
|
|
450
489
|
'variant:purple': {
|
|
451
|
-
'--color-text-primary':
|
|
452
|
-
'--color-text-secondary':
|
|
490
|
+
'--color-text-primary': neutral.light[15],
|
|
491
|
+
'--color-text-secondary': neutral.light[45],
|
|
453
492
|
},
|
|
454
493
|
'variant:red': {
|
|
455
|
-
'--color-text-primary':
|
|
456
|
-
'--color-text-secondary':
|
|
494
|
+
'--color-text-primary': neutral.light[15],
|
|
495
|
+
'--color-text-secondary': neutral.light[45],
|
|
457
496
|
},
|
|
458
497
|
'variant:teal': {
|
|
459
|
-
'--color-text-primary':
|
|
460
|
-
'--color-text-secondary':
|
|
498
|
+
'--color-text-primary': neutral.light[15],
|
|
499
|
+
'--color-text-secondary': neutral.light[45],
|
|
461
500
|
},
|
|
462
501
|
'variant:yellow': {
|
|
463
|
-
'--color-text-primary':
|
|
464
|
-
'--color-text-secondary':
|
|
502
|
+
'--color-text-primary': neutral.light[15],
|
|
503
|
+
'--color-text-secondary': neutral.light[45],
|
|
465
504
|
},
|
|
466
505
|
'variant:muted': {
|
|
467
|
-
'--color-text-primary':
|
|
468
|
-
'--color-text-secondary':
|
|
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 —
|
|
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:
|
|
521
|
+
backgroundColor: lightDark(neutral.light[85], neutral.dark[40]),
|
|
483
522
|
},
|
|
484
523
|
},
|
|
485
524
|
'progress-bar-fill': {
|
|
486
525
|
'variant:success': {
|
|
487
|
-
backgroundColor:
|
|
526
|
+
backgroundColor: green.light[70],
|
|
488
527
|
},
|
|
489
528
|
'variant:warning': {
|
|
490
|
-
backgroundColor:
|
|
529
|
+
backgroundColor: yellow.light[80],
|
|
491
530
|
},
|
|
492
531
|
'variant:error': {
|
|
493
|
-
backgroundColor:
|
|
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:
|
|
503
|
-
color:
|
|
541
|
+
backgroundColor: green.light[70],
|
|
542
|
+
color: neutral.light[15],
|
|
504
543
|
},
|
|
505
544
|
'type:warning': {
|
|
506
|
-
backgroundColor:
|
|
507
|
-
color:
|
|
545
|
+
backgroundColor: yellow.light[80],
|
|
546
|
+
color: neutral.light[15],
|
|
508
547
|
},
|
|
509
548
|
'type:error': {
|
|
510
|
-
backgroundColor:
|
|
511
|
-
color:
|
|
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':
|
|
526
|
-
'status:warning': {'--color-warning':
|
|
527
|
-
'status:error': {'--color-error':
|
|
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':
|
|
536
|
-
'status:warning': {'--color-warning':
|
|
537
|
-
'status:error': {'--color-error':
|
|
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':
|
|
546
|
-
'status:warning': {'--color-warning':
|
|
547
|
-
'status:error': {'--color-error':
|
|
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':
|
|
556
|
-
'status:warning': {'--color-warning':
|
|
557
|
-
'status:error': {'--color-error':
|
|
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':
|
|
566
|
-
'status:warning': {'--color-warning':
|
|
567
|
-
'status:error': {'--color-error':
|
|
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':
|
|
576
|
-
'status:warning': {'--color-warning':
|
|
577
|
-
'status:error': {'--color-error':
|
|
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':
|
|
587
|
-
'status:warning': {'--color-warning':
|
|
588
|
-
'status:error': {'--color-error':
|
|
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':
|
|
599
|
-
'status:warning': {'--color-warning':
|
|
600
|
-
'status:error': {'--color-error':
|
|
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':
|
|
609
|
-
'status:warning': {'--color-warning':
|
|
610
|
-
'status:error': {'--color-error':
|
|
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
|
-
*
|
|
636
|
-
*
|
|
637
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
647
|
-
*
|
|
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
|
-
*
|
|
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: {
|