@chakra-ui/panda-preset 3.29.0 → 3.31.0

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 (47) hide show
  1. package/dist/cjs/recipes/badge.cjs +3 -1
  2. package/dist/cjs/recipes/button.cjs +3 -1
  3. package/dist/cjs/recipes/code.cjs +3 -1
  4. package/dist/cjs/semantic-tokens/colors.cjs +60 -0
  5. package/dist/cjs/slot-recipes/action-bar.cjs +28 -3
  6. package/dist/cjs/slot-recipes/alert.cjs +3 -1
  7. package/dist/cjs/slot-recipes/avatar.cjs +3 -1
  8. package/dist/cjs/slot-recipes/carousel.cjs +4 -1
  9. package/dist/cjs/slot-recipes/color-picker.cjs +2 -1
  10. package/dist/cjs/slot-recipes/combobox.cjs +2 -1
  11. package/dist/cjs/slot-recipes/hover-card.cjs +1 -1
  12. package/dist/cjs/slot-recipes/index.cjs +2 -0
  13. package/dist/cjs/slot-recipes/menu.cjs +10 -1
  14. package/dist/cjs/slot-recipes/native-select.cjs +8 -0
  15. package/dist/cjs/slot-recipes/popover.cjs +1 -1
  16. package/dist/cjs/slot-recipes/select.cjs +10 -1
  17. package/dist/cjs/slot-recipes/slider.cjs +7 -7
  18. package/dist/cjs/slot-recipes/splitter.cjs +87 -0
  19. package/dist/cjs/slot-recipes/tag.cjs +3 -1
  20. package/dist/cjs/slot-recipes/tags-input.cjs +9 -2
  21. package/dist/cjs/slot-recipes/tooltip.cjs +1 -1
  22. package/dist/esm/recipes/badge.js +3 -1
  23. package/dist/esm/recipes/button.js +3 -1
  24. package/dist/esm/recipes/code.js +3 -1
  25. package/dist/esm/semantic-tokens/colors.js +60 -0
  26. package/dist/esm/slot-recipes/action-bar.js +28 -3
  27. package/dist/esm/slot-recipes/alert.js +3 -1
  28. package/dist/esm/slot-recipes/avatar.js +3 -1
  29. package/dist/esm/slot-recipes/carousel.js +4 -1
  30. package/dist/esm/slot-recipes/color-picker.js +2 -1
  31. package/dist/esm/slot-recipes/combobox.js +2 -1
  32. package/dist/esm/slot-recipes/hover-card.js +1 -1
  33. package/dist/esm/slot-recipes/index.js +2 -0
  34. package/dist/esm/slot-recipes/menu.js +10 -1
  35. package/dist/esm/slot-recipes/native-select.js +8 -0
  36. package/dist/esm/slot-recipes/popover.js +1 -1
  37. package/dist/esm/slot-recipes/select.js +10 -1
  38. package/dist/esm/slot-recipes/slider.js +7 -7
  39. package/dist/esm/slot-recipes/splitter.js +85 -0
  40. package/dist/esm/slot-recipes/tag.js +3 -1
  41. package/dist/esm/slot-recipes/tags-input.js +9 -2
  42. package/dist/esm/slot-recipes/tooltip.js +1 -1
  43. package/dist/types/semantic-tokens/colors.d.ts +60 -0
  44. package/dist/types/semantic-tokens/index.d.ts +60 -0
  45. package/dist/types/slot-recipes/index.d.ts +1 -0
  46. package/dist/types/slot-recipes/splitter.d.ts +1 -0
  47. package/package.json +2 -2
@@ -27,8 +27,10 @@ const badgeRecipe = def.defineRecipe({
27
27
  },
28
28
  outline: {
29
29
  color: "colorPalette.fg",
30
+ "--outline-shadow-legacy": "colors.colorPalette.muted",
31
+ "--outline-shadow": "colors.colorPalette.border",
30
32
  shadow: "inset 0 0 0px 1px var(--shadow-color)",
31
- shadowColor: "colorPalette.muted"
33
+ shadowColor: "var(--outline-shadow, var(--outline-shadow-legacy))"
32
34
  },
33
35
  surface: {
34
36
  bg: "colorPalette.subtle",
@@ -150,7 +150,9 @@ const buttonRecipe = def.defineRecipe({
150
150
  },
151
151
  outline: {
152
152
  borderWidth: "1px",
153
- borderColor: "colorPalette.muted",
153
+ "--outline-color-legacy": "colors.colorPalette.muted",
154
+ "--outline-color": "colors.colorPalette.border",
155
+ borderColor: "var(--outline-color, var(--outline-color-legacy))",
154
156
  color: "colorPalette.fg",
155
157
  _hover: {
156
158
  bg: "colorPalette.subtle"
@@ -23,8 +23,10 @@ const codeRecipe = def.defineRecipe({
23
23
  },
24
24
  outline: {
25
25
  color: "colorPalette.fg",
26
+ "--outline-shadow-legacy": "colors.colorPalette.muted",
27
+ "--outline-shadow": "colors.colorPalette.border",
26
28
  shadow: "inset 0 0 0px 1px var(--shadow-color)",
27
- shadowColor: "colorPalette.muted"
29
+ shadowColor: "var(--outline-shadow, var(--outline-shadow-legacy))"
28
30
  },
29
31
  surface: {
30
32
  bg: "colorPalette.subtle",
@@ -214,6 +214,12 @@ const colors = def.defineSemanticTokens.colors({
214
214
  _light: "{colors.gray.400}",
215
215
  _dark: "{colors.gray.400}"
216
216
  }
217
+ },
218
+ border: {
219
+ value: {
220
+ _light: "{colors.gray.200}",
221
+ _dark: "{colors.gray.800}"
222
+ }
217
223
  }
218
224
  },
219
225
  red: {
@@ -258,6 +264,12 @@ const colors = def.defineSemanticTokens.colors({
258
264
  _light: "{colors.red.500}",
259
265
  _dark: "{colors.red.500}"
260
266
  }
267
+ },
268
+ border: {
269
+ value: {
270
+ _light: "{colors.red.500}",
271
+ _dark: "{colors.red.400}"
272
+ }
261
273
  }
262
274
  },
263
275
  orange: {
@@ -302,6 +314,12 @@ const colors = def.defineSemanticTokens.colors({
302
314
  _light: "{colors.orange.500}",
303
315
  _dark: "{colors.orange.500}"
304
316
  }
317
+ },
318
+ border: {
319
+ value: {
320
+ _light: "{colors.orange.500}",
321
+ _dark: "{colors.orange.400}"
322
+ }
305
323
  }
306
324
  },
307
325
  green: {
@@ -346,6 +364,12 @@ const colors = def.defineSemanticTokens.colors({
346
364
  _light: "{colors.green.500}",
347
365
  _dark: "{colors.green.500}"
348
366
  }
367
+ },
368
+ border: {
369
+ value: {
370
+ _light: "{colors.green.500}",
371
+ _dark: "{colors.green.400}"
372
+ }
349
373
  }
350
374
  },
351
375
  blue: {
@@ -390,6 +414,12 @@ const colors = def.defineSemanticTokens.colors({
390
414
  _light: "{colors.blue.500}",
391
415
  _dark: "{colors.blue.500}"
392
416
  }
417
+ },
418
+ border: {
419
+ value: {
420
+ _light: "{colors.blue.500}",
421
+ _dark: "{colors.blue.400}"
422
+ }
393
423
  }
394
424
  },
395
425
  yellow: {
@@ -434,6 +464,12 @@ const colors = def.defineSemanticTokens.colors({
434
464
  _light: "{colors.yellow.500}",
435
465
  _dark: "{colors.yellow.500}"
436
466
  }
467
+ },
468
+ border: {
469
+ value: {
470
+ _light: "{colors.yellow.500}",
471
+ _dark: "{colors.yellow.500}"
472
+ }
437
473
  }
438
474
  },
439
475
  teal: {
@@ -478,6 +514,12 @@ const colors = def.defineSemanticTokens.colors({
478
514
  _light: "{colors.teal.500}",
479
515
  _dark: "{colors.teal.500}"
480
516
  }
517
+ },
518
+ border: {
519
+ value: {
520
+ _light: "{colors.teal.500}",
521
+ _dark: "{colors.teal.400}"
522
+ }
481
523
  }
482
524
  },
483
525
  purple: {
@@ -522,6 +564,12 @@ const colors = def.defineSemanticTokens.colors({
522
564
  _light: "{colors.purple.500}",
523
565
  _dark: "{colors.purple.500}"
524
566
  }
567
+ },
568
+ border: {
569
+ value: {
570
+ _light: "{colors.purple.500}",
571
+ _dark: "{colors.purple.400}"
572
+ }
525
573
  }
526
574
  },
527
575
  pink: {
@@ -566,6 +614,12 @@ const colors = def.defineSemanticTokens.colors({
566
614
  _light: "{colors.pink.500}",
567
615
  _dark: "{colors.pink.500}"
568
616
  }
617
+ },
618
+ border: {
619
+ value: {
620
+ _light: "{colors.pink.500}",
621
+ _dark: "{colors.pink.400}"
622
+ }
569
623
  }
570
624
  },
571
625
  cyan: {
@@ -610,6 +664,12 @@ const colors = def.defineSemanticTokens.colors({
610
664
  _light: "{colors.cyan.500}",
611
665
  _dark: "{colors.cyan.500}"
612
666
  }
667
+ },
668
+ border: {
669
+ value: {
670
+ _light: "{colors.cyan.500}",
671
+ _dark: "{colors.cyan.400}"
672
+ }
613
673
  }
614
674
  }
615
675
  });
@@ -16,11 +16,9 @@ const actionBarSlotRecipe = def.defineSlotRecipe({
16
16
  positioner: {
17
17
  position: "fixed",
18
18
  display: "flex",
19
- justifyContent: "center",
20
19
  pointerEvents: "none",
21
20
  insetInline: "0",
22
- top: "unset",
23
- bottom: "calc(env(safe-area-inset-bottom) + 20px)"
21
+ "--action-bar-offset": "spacing.4"
24
22
  },
25
23
  content: {
26
24
  bg: "bg.panel",
@@ -59,6 +57,33 @@ const actionBarSlotRecipe = def.defineSlotRecipe({
59
57
  borderWidth: "1px",
60
58
  borderStyle: "dashed"
61
59
  }
60
+ },
61
+ variants: {
62
+ placement: {
63
+ bottom: {
64
+ positioner: {
65
+ bottom: "calc(env(safe-area-inset-bottom) + var(--action-bar-offset))",
66
+ justifyContent: "center"
67
+ }
68
+ },
69
+ "bottom-start": {
70
+ positioner: {
71
+ bottom: "calc(env(safe-area-inset-bottom) + var(--action-bar-offset))",
72
+ justifyContent: "flex-start",
73
+ ps: "var(--action-bar-offset)"
74
+ }
75
+ },
76
+ "bottom-end": {
77
+ positioner: {
78
+ bottom: "calc(env(safe-area-inset-bottom) + var(--action-bar-offset))",
79
+ justifyContent: "flex-end",
80
+ pe: "var(--action-bar-offset)"
81
+ }
82
+ }
83
+ }
84
+ },
85
+ defaultVariants: {
86
+ placement: "bottom"
62
87
  }
63
88
  });
64
89
 
@@ -102,7 +102,9 @@ const alertSlotRecipe = def.defineSlotRecipe({
102
102
  root: {
103
103
  color: "colorPalette.fg",
104
104
  shadow: "inset 0 0 0px 1px var(--shadow-color)",
105
- shadowColor: "colorPalette.muted"
105
+ "--outline-shadow-legacy": "colors.colorPalette.muted",
106
+ "--outline-shadow": "colors.colorPalette.border",
107
+ shadowColor: "var(--outline-shadow, var(--outline-shadow-legacy))"
106
108
  },
107
109
  indicator: {
108
110
  color: "colorPalette.fg"
@@ -107,7 +107,9 @@ const avatarSlotRecipe = def.defineSlotRecipe({
107
107
  root: {
108
108
  color: "colorPalette.fg",
109
109
  borderWidth: "1px",
110
- borderColor: "colorPalette.muted"
110
+ "--outline-shadow-legacy": "colors.colorPalette.muted",
111
+ "--outline-shadow": "colors.colorPalette.border",
112
+ borderColor: "var(--outline-shadow, var(--outline-shadow-legacy))"
111
113
  }
112
114
  }
113
115
  },
@@ -14,7 +14,10 @@ const carouselSlotRecipe = def.defineSlotRecipe({
14
14
  "prevTrigger",
15
15
  "indicatorGroup",
16
16
  "indicator",
17
- "autoplayTrigger"
17
+ "autoplayTrigger",
18
+ "progressText",
19
+ "progressText",
20
+ "autoplayIndicator"
18
21
  ],
19
22
  base: {
20
23
  root: {
@@ -97,7 +97,8 @@ const colorPickerSlotRecipe = def.defineSlotRecipe({
97
97
  width: "64",
98
98
  p: "4",
99
99
  gap: "3",
100
- zIndex: "dropdown",
100
+ "--color-picker-z-index": "zIndex.popover",
101
+ zIndex: "calc(var(--color-picker-z-index) + var(--layer-index, 0))",
101
102
  _open: {
102
103
  animationStyle: "slide-fade-in",
103
104
  animationDuration: "fast"
@@ -111,7 +111,8 @@ const comboboxSlotRecipe = def.defineSlotRecipe({
111
111
  background: "bg.panel",
112
112
  display: "flex",
113
113
  flexDirection: "column",
114
- zIndex: "dropdown",
114
+ "--combobox-z-index": "zIndex.popover",
115
+ zIndex: "calc(var(--combobox-z-index) + var(--layer-index, 0))",
115
116
  borderRadius: "l2",
116
117
  outline: 0,
117
118
  maxH: "96",
@@ -35,7 +35,7 @@ const hoverCardSlotRecipe = def.defineSlotRecipe({
35
35
  },
36
36
  arrowTip: {
37
37
  borderTopWidth: "0.5px",
38
- borderInlineStartWidth: "0.5px"
38
+ borderLeftWidth: "0.5px"
39
39
  }
40
40
  },
41
41
  variants: {
@@ -41,6 +41,7 @@ var scrollArea = require('./scroll-area.cjs');
41
41
  var segmentGroup = require('./segment-group.cjs');
42
42
  var select = require('./select.cjs');
43
43
  var slider = require('./slider.cjs');
44
+ var splitter = require('./splitter.cjs');
44
45
  var stat = require('./stat.cjs');
45
46
  var status = require('./status.cjs');
46
47
  var steps = require('./steps.cjs');
@@ -93,6 +94,7 @@ const slotRecipes = {
93
94
  select: select.selectSlotRecipe,
94
95
  combobox: combobox.comboboxSlotRecipe,
95
96
  slider: slider.sliderSlotRecipe,
97
+ splitter: splitter.splitterSlotRecipe,
96
98
  stat: stat.statSlotRecipe,
97
99
  steps: steps.stepsSlotRecipe,
98
100
  swittch: _switch.switchSlotRecipe,
@@ -25,7 +25,8 @@ const menuSlotRecipe = def.defineSlotRecipe({
25
25
  base: {
26
26
  content: {
27
27
  outline: 0,
28
- bg: "bg.panel",
28
+ "--menu-bg": "colors.bg.panel",
29
+ bg: "var(--menu-bg)",
29
30
  boxShadow: "lg",
30
31
  color: "fg",
31
32
  maxHeight: "var(--available-height)",
@@ -97,6 +98,14 @@ const menuSlotRecipe = def.defineSlotRecipe({
97
98
  bg: "bg.muted",
98
99
  my: "1",
99
100
  mx: "-1"
101
+ },
102
+ arrow: {
103
+ "--arrow-size": "sizes.3",
104
+ "--arrow-background": "var(--menu-bg)"
105
+ },
106
+ arrowTip: {
107
+ borderTopWidth: "1px",
108
+ borderLeftWidth: "1px"
100
109
  }
101
110
  },
102
111
  variants: {
@@ -82,6 +82,14 @@ const nativeSelectSlotRecipe = def.defineSlotRecipe({
82
82
  color: "fg",
83
83
  focusRingWidth: "2px"
84
84
  }
85
+ },
86
+ ghost: {
87
+ field: {
88
+ bg: "transparent",
89
+ _expanded: {
90
+ bg: "bg.muted"
91
+ }
92
+ }
85
93
  }
86
94
  },
87
95
  size: {
@@ -70,7 +70,7 @@ const popoverSlotRecipe = def.defineSlotRecipe({
70
70
  },
71
71
  arrowTip: {
72
72
  borderTopWidth: "1px",
73
- borderInlineStartWidth: "1px"
73
+ borderLeftWidth: "1px"
74
74
  }
75
75
  },
76
76
  variants: {
@@ -77,7 +77,8 @@ const selectSlotRecipe = def.defineSlotRecipe({
77
77
  background: "bg.panel",
78
78
  display: "flex",
79
79
  flexDirection: "column",
80
- zIndex: "dropdown",
80
+ "--select-z-index": "zIndex.popover",
81
+ zIndex: "calc(var(--select-z-index) + var(--layer-index, 0))",
81
82
  borderRadius: "l2",
82
83
  outline: 0,
83
84
  maxH: "96",
@@ -168,6 +169,14 @@ const selectSlotRecipe = def.defineSlotRecipe({
168
169
  borderColor: "transparent",
169
170
  bg: "bg.muted"
170
171
  }
172
+ },
173
+ ghost: {
174
+ trigger: {
175
+ bg: "transparent",
176
+ _expanded: {
177
+ bg: "bg.muted"
178
+ }
179
+ }
171
180
  }
172
181
  },
173
182
  size: {
@@ -16,7 +16,8 @@ const sliderSlotRecipe = def.defineSlotRecipe({
16
16
  "markerGroup",
17
17
  "marker",
18
18
  "draggingIndicator",
19
- "markerIndicator"
19
+ "markerIndicator",
20
+ "markerLabel"
20
21
  ],
21
22
  base: {
22
23
  root: {
@@ -79,11 +80,10 @@ const sliderSlotRecipe = def.defineSlotRecipe({
79
80
  outline: 0,
80
81
  zIndex: "2",
81
82
  borderRadius: "full",
83
+ transition: "shadow",
82
84
  _focusVisible: {
83
- ring: "2px",
84
- ringColor: "colorPalette.focusRing",
85
- ringOffset: "2px",
86
- ringOffsetColor: "bg"
85
+ ring: "3px",
86
+ ringColor: "colorPalette.focusRing/50"
87
87
  }
88
88
  }
89
89
  },
@@ -163,7 +163,7 @@ const sliderSlotRecipe = def.defineSlotRecipe({
163
163
  flexDirection: "column",
164
164
  height: "100%",
165
165
  minWidth: "var(--slider-thumb-size)",
166
- "&[data-has-mark-label], &:has(.slider__marker-label)": {
166
+ "&:has(.slider__markerLabel)": {
167
167
  marginEnd: "4"
168
168
  }
169
169
  },
@@ -187,7 +187,7 @@ const sliderSlotRecipe = def.defineSlotRecipe({
187
187
  flexDirection: "row",
188
188
  width: "100%",
189
189
  minHeight: "var(--slider-thumb-size)",
190
- "&[data-has-mark-label], &:has(.slider__marker-label)": {
190
+ "&:has(.slider__markerLabel)": {
191
191
  marginBottom: "4"
192
192
  }
193
193
  },
@@ -0,0 +1,87 @@
1
+ "use strict";
2
+ 'use strict';
3
+
4
+ var def = require('../def.cjs');
5
+
6
+ const splitterSlotRecipe = def.defineSlotRecipe({
7
+ slots: [
8
+ "root",
9
+ "panel",
10
+ "resizeTrigger",
11
+ "resizeTriggerIndicator",
12
+ "resizeTriggerSeparator",
13
+ "resizeTriggerIndicator"
14
+ ],
15
+ className: "splitter",
16
+ base: {
17
+ resizeTrigger: {
18
+ "--splitter-border-color": "colors.border",
19
+ "--splitter-thumb-color": "colors.bg",
20
+ "--splitter-thumb-size": "sizes.2",
21
+ "--splitter-thumb-inset": "calc(var(--splitter-thumb-size) * -0.5)",
22
+ "--splitter-border-size": "1px",
23
+ "--splitter-handle-size": "sizes.6",
24
+ outline: "0",
25
+ display: "grid",
26
+ placeItems: "center",
27
+ position: "relative",
28
+ _focus: {
29
+ "--splitter-border-color": "colors.border.emphasized",
30
+ "--splitter-thumb-color": "colors.colorPalette.subtle"
31
+ },
32
+ _dragging: {
33
+ "--splitter-thumb-color": "colors.colorPalette.focusRing"
34
+ },
35
+ _horizontal: {
36
+ minWidth: "var(--splitter-thumb-size)",
37
+ marginInline: "var(--splitter-thumb-inset)"
38
+ },
39
+ _vertical: {
40
+ minHeight: "var(--splitter-thumb-size)",
41
+ marginBlock: "var(--splitter-thumb-inset)"
42
+ }
43
+ },
44
+ resizeTriggerSeparator: {
45
+ position: "absolute",
46
+ bg: "var(--splitter-border-color)",
47
+ "[data-part='resize-trigger'][data-orientation=horizontal] &": {
48
+ insetInlineEnd: "calc(var(--splitter-thumb-size) * 0.5)",
49
+ insetBlock: "0",
50
+ insetInlineStart: "auto",
51
+ w: "var(--splitter-border-size)"
52
+ },
53
+ "[data-part='resize-trigger'][data-orientation=vertical] &": {
54
+ insetBlockEnd: "calc(var(--splitter-thumb-size) * 0.5)",
55
+ insetInline: "0",
56
+ insetBlockStart: "auto",
57
+ h: "var(--splitter-border-size)"
58
+ }
59
+ },
60
+ resizeTriggerIndicator: {
61
+ position: "relative",
62
+ rounded: "full",
63
+ bg: "var(--splitter-thumb-color)",
64
+ shadow: "xs",
65
+ borderWidth: "1px",
66
+ zIndex: "1",
67
+ "[data-part='resize-trigger'][data-orientation=horizontal] &": {
68
+ w: "full",
69
+ h: "var(--splitter-handle-size)"
70
+ },
71
+ "[data-part='resize-trigger'][data-orientation=vertical] &": {
72
+ w: "var(--splitter-handle-size)",
73
+ h: "full"
74
+ },
75
+ "[data-part='resize-trigger'][data-focus]:focus-visible &": {
76
+ outlineWidth: "2px",
77
+ outlineColor: "colorPalette.focusRing",
78
+ outlineStyle: "solid"
79
+ },
80
+ "[data-part='resize-trigger'][data-disabled] &": {
81
+ visibility: "hidden"
82
+ }
83
+ }
84
+ }
85
+ });
86
+
87
+ exports.splitterSlotRecipe = splitterSlotRecipe;
@@ -124,8 +124,10 @@ const tagSlotRecipe = def.defineSlotRecipe({
124
124
  outline: {
125
125
  root: {
126
126
  color: "colorPalette.fg",
127
+ "--outline-shadow-legacy": "colors.colorPalette.muted",
128
+ "--outline-shadow": "colors.colorPalette.border",
127
129
  shadow: "inset 0 0 0px 1px var(--shadow-color)",
128
- shadowColor: "colorPalette.muted"
130
+ shadowColor: "var(--outline-shadow, var(--outline-shadow-legacy))"
129
131
  }
130
132
  },
131
133
  surface: {
@@ -65,8 +65,13 @@ const tagsInputSlotRecipe = def.defineSlotRecipe({
65
65
  display: "none"
66
66
  }
67
67
  },
68
+ item: {
69
+ maxWidth: "100%",
70
+ minWidth: "0"
71
+ },
68
72
  itemText: {
69
- lineClamp: "1"
73
+ lineClamp: "1",
74
+ minWidth: "0"
70
75
  },
71
76
  itemInput: {
72
77
  outline: "none",
@@ -83,12 +88,14 @@ const tagsInputSlotRecipe = def.defineSlotRecipe({
83
88
  alignItems: "center",
84
89
  gap: "1",
85
90
  rounded: "l1",
86
- px: "var(--tags-input-item-px)"
91
+ px: "var(--tags-input-item-px)",
92
+ maxWidth: "100%"
87
93
  },
88
94
  itemDeleteTrigger: {
89
95
  display: "flex",
90
96
  alignItems: "center",
91
97
  justifyContent: "center",
98
+ flexShrink: "0",
92
99
  boxSize: "calc(var(--tags-input-item-height) / 1.5)",
93
100
  cursor: {
94
101
  base: "button",
@@ -35,7 +35,7 @@ const tooltipSlotRecipe = def.defineSlotRecipe({
35
35
  },
36
36
  arrowTip: {
37
37
  borderTopWidth: "1px",
38
- borderInlineStartWidth: "1px",
38
+ borderLeftWidth: "1px",
39
39
  borderColor: "var(--tooltip-bg)"
40
40
  }
41
41
  }
@@ -25,8 +25,10 @@ const badgeRecipe = defineRecipe({
25
25
  },
26
26
  outline: {
27
27
  color: "colorPalette.fg",
28
+ "--outline-shadow-legacy": "colors.colorPalette.muted",
29
+ "--outline-shadow": "colors.colorPalette.border",
28
30
  shadow: "inset 0 0 0px 1px var(--shadow-color)",
29
- shadowColor: "colorPalette.muted"
31
+ shadowColor: "var(--outline-shadow, var(--outline-shadow-legacy))"
30
32
  },
31
33
  surface: {
32
34
  bg: "colorPalette.subtle",
@@ -148,7 +148,9 @@ const buttonRecipe = defineRecipe({
148
148
  },
149
149
  outline: {
150
150
  borderWidth: "1px",
151
- borderColor: "colorPalette.muted",
151
+ "--outline-color-legacy": "colors.colorPalette.muted",
152
+ "--outline-color": "colors.colorPalette.border",
153
+ borderColor: "var(--outline-color, var(--outline-color-legacy))",
152
154
  color: "colorPalette.fg",
153
155
  _hover: {
154
156
  bg: "colorPalette.subtle"
@@ -21,8 +21,10 @@ const codeRecipe = defineRecipe({
21
21
  },
22
22
  outline: {
23
23
  color: "colorPalette.fg",
24
+ "--outline-shadow-legacy": "colors.colorPalette.muted",
25
+ "--outline-shadow": "colors.colorPalette.border",
24
26
  shadow: "inset 0 0 0px 1px var(--shadow-color)",
25
- shadowColor: "colorPalette.muted"
27
+ shadowColor: "var(--outline-shadow, var(--outline-shadow-legacy))"
26
28
  },
27
29
  surface: {
28
30
  bg: "colorPalette.subtle",