@datalayer/primer-addons 1.0.39 → 1.0.41

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (58) hide show
  1. package/README.md +19 -8
  2. package/lib/components/box/boxCss.js +17 -1
  3. package/lib/components/box/boxTokens.d.ts +2 -1
  4. package/lib/components/box/boxTokens.js +2 -1
  5. package/lib/components/card/Card.d.ts +119 -5
  6. package/lib/components/card/Card.js +60 -46
  7. package/lib/components/card/Card.stories.d.ts +6 -0
  8. package/lib/components/card/Card.stories.js +26 -0
  9. package/lib/components/date-picker/TimeColumns.d.ts +5 -0
  10. package/lib/components/date-picker/TimeColumns.js +44 -3
  11. package/lib/components/entity-avatar/EntityAvatar.d.ts +73 -0
  12. package/lib/components/entity-avatar/EntityAvatar.js +63 -0
  13. package/lib/components/entity-avatar/index.d.ts +1 -0
  14. package/lib/components/entity-avatar/index.js +5 -0
  15. package/lib/components/hover-card/HoverCard.d.ts +63 -0
  16. package/lib/components/hover-card/HoverCard.js +55 -0
  17. package/lib/components/hover-card/HoverCardAnchor.d.ts +33 -0
  18. package/lib/components/hover-card/HoverCardAnchor.js +26 -0
  19. package/lib/components/hover-card/HoverCardDetails.d.ts +36 -0
  20. package/lib/components/hover-card/HoverCardDetails.js +65 -0
  21. package/lib/components/hover-card/HoverCardLayer.d.ts +34 -0
  22. package/lib/components/hover-card/HoverCardLayer.js +57 -0
  23. package/lib/components/hover-card/index.d.ts +12 -0
  24. package/lib/components/hover-card/index.js +16 -0
  25. package/lib/components/hover-card/useHoverCard.d.ts +57 -0
  26. package/lib/components/hover-card/useHoverCard.js +200 -0
  27. package/lib/components/hover-card/usePrefersReducedMotion.d.ts +10 -0
  28. package/lib/components/hover-card/usePrefersReducedMotion.js +28 -0
  29. package/lib/components/index.d.ts +2 -0
  30. package/lib/components/index.js +2 -0
  31. package/lib/components/logo/DatalayerLogo.js +18 -1
  32. package/lib/components/toolbar/ToolbarButton.d.ts +2 -2
  33. package/lib/components/toolbar/ToolbarButton.js +23 -21
  34. package/lib/components/toolbar/ToolbarDropdown.js +3 -1
  35. package/lib/theme/colors/index.d.ts +1 -0
  36. package/lib/theme/colors/index.js +3 -0
  37. package/lib/theme/colors/vscodeColors.d.ts +280 -0
  38. package/lib/theme/colors/vscodeColors.js +129 -0
  39. package/lib/theme/css/createThemeCSSVars.d.ts +18 -1
  40. package/lib/theme/css/createThemeCSSVars.js +17 -1
  41. package/lib/theme/css/primerBaseVars.js +59 -0
  42. package/lib/theme/css/primerComponentsCss.d.ts +47 -0
  43. package/lib/theme/css/primerComponentsCss.js +72 -0
  44. package/lib/theme/index.d.ts +2 -0
  45. package/lib/theme/index.js +2 -0
  46. package/lib/theme/palettes/ColorPalette.js +41 -1
  47. package/lib/theme/themeRegistry.js +2 -0
  48. package/lib/theme/themeTokens.d.ts +1 -1
  49. package/lib/theme/themeTokens.js +61 -1
  50. package/lib/theme/themes/loopThemeStyles.d.ts +4 -31
  51. package/lib/theme/themes/loopThemeStyles.js +17 -44
  52. package/lib/theme/themes/vscodeEditorsCss.d.ts +12 -0
  53. package/lib/theme/themes/vscodeEditorsCss.js +239 -0
  54. package/lib/theme/themes/vscodeTheme.d.ts +1085 -0
  55. package/lib/theme/themes/vscodeTheme.js +17 -0
  56. package/lib/theme/themes/vscodeThemeStyles.d.ts +7 -0
  57. package/lib/theme/themes/vscodeThemeStyles.js +246 -0
  58. package/package.json +3 -2
@@ -0,0 +1,200 @@
1
+ /*
2
+ * Copyright (c) 2021-2026 Datalayer, Inc.
3
+ * Distributed under the terms of the Modified BSD License.
4
+ */
5
+ /**
6
+ * Hovering a card to see more of it, as a state machine.
7
+ *
8
+ * The gesture is the one a shelf of films uses: rest the pointer on
9
+ * something and it grows into a larger card; move off and the card plays its
10
+ * entrance backwards. Simple to describe and full of edges, all of which are
11
+ * about *time* rather than about what is drawn — which is why they live here,
12
+ * in a hook that draws nothing, instead of being written again beside every
13
+ * grid that wants the gesture.
14
+ *
15
+ * The edges, and what each one is for:
16
+ *
17
+ * - **Opening waits.** Dragging the pointer across a row would otherwise
18
+ * open a card over every item on the way, and the reader is chased by
19
+ * something they never asked for. The wait is the difference between
20
+ * passing over an item and stopping on it.
21
+ * - **Closing waits too, then plays.** First a grace, because the pointer has
22
+ * to cross the gap into the card and a card that vanished in that gap could
23
+ * never be reached. Then the exit, during which the card is still mounted
24
+ * and knows it is leaving, so it can shrink rather than blink out.
25
+ * - **Leaving is not interruptible.** A card on its way out keeps the stage
26
+ * until it is gone: two movements at once — one shrinking, one growing —
27
+ * read as a glitch rather than as a change of subject. An item reached
28
+ * mid-exit is queued, and the exit hands over to it.
29
+ * - **Moving between items plays the exit.** Sliding the open card across to
30
+ * the new one instead skips the gesture entirely: it teleports, at full
31
+ * size, and the two cards never read as two. The grace is dropped there,
32
+ * though — a pointer that has landed on another item is plainly not
33
+ * heading for the card.
34
+ * - **Escape closes it.** A card opened by resting on something can otherwise
35
+ * only be closed by moving off, and a reader who wants back what it covers
36
+ * reaches for the key every overlay answers. It also calls off a card that
37
+ * has not appeared yet: "no" is the same answer either side of the wait.
38
+ *
39
+ * The hook knows nothing about where the card goes. Callers hand it whatever
40
+ * they need to place one — a coordinate inside a scrolling row, a rectangle
41
+ * in the viewport — and get it back in `active`.
42
+ *
43
+ * @module components/hover-card/useHoverCard
44
+ */
45
+ import { useEffect, useRef, useState } from 'react';
46
+ /**
47
+ * How long the pointer must rest on something before its card opens.
48
+ *
49
+ * This is the wait that separates *reading a page* from *choosing something
50
+ * on it*: a card that opens while the eye is still travelling is an
51
+ * interruption, since the reader did not ask for it and has to wait for it
52
+ * to leave again. Set by feel, from the top of the range down — long enough
53
+ * that a pointer crossing the page is not chased by anything, short enough
54
+ * that stopping on something does not feel like waiting for it.
55
+ */
56
+ export const HOVER_CARD_OPEN_DELAY_MS = 320;
57
+ /** How long a card waits, after the pointer leaves, before it starts out. */
58
+ export const HOVER_CARD_CLOSE_DELAY_MS = 320;
59
+ /**
60
+ * How long a card takes to arrive, and to leave.
61
+ *
62
+ * The same number both ways: a card that leaves faster than it came reads as
63
+ * being dismissed rather than closed. Whatever draws the card has to animate
64
+ * for exactly this long, because the card is kept mounted for exactly this
65
+ * long after it is told it is leaving.
66
+ */
67
+ export const HOVER_CARD_MOTION_MS = 320;
68
+ export function useHoverCard({ enabled = true, openDelayMs = HOVER_CARD_OPEN_DELAY_MS, closeDelayMs = HOVER_CARD_CLOSE_DELAY_MS, motionMs = HOVER_CARD_MOTION_MS } = {}) {
69
+ const [opened, setOpened] = useState(null);
70
+ const [closing, setClosing] = useState(false);
71
+ const openTimer = useRef(null);
72
+ const closeTimer = useRef(null);
73
+ const exitTimer = useRef(null);
74
+ /**
75
+ * An item the pointer reached while a card was still leaving.
76
+ *
77
+ * A ref rather than state: nothing renders from it, and it is written and
78
+ * read inside timers that must see the latest value rather than the one
79
+ * captured when they were set.
80
+ */
81
+ const queued = useRef(null);
82
+ const clear = (timer) => {
83
+ if (timer.current !== null) {
84
+ window.clearTimeout(timer.current);
85
+ timer.current = null;
86
+ }
87
+ };
88
+ const cancelClose = () => {
89
+ queued.current = null;
90
+ clear(closeTimer);
91
+ clear(exitTimer);
92
+ setClosing(false);
93
+ };
94
+ /**
95
+ * The exit: the entrance played backwards.
96
+ *
97
+ * The card stays mounted through it, marked `closing` so it knows to
98
+ * shrink rather than to grow, and only then is it taken off the screen —
99
+ * or handed over to whichever item the pointer found in the meantime.
100
+ */
101
+ const beginExit = () => {
102
+ clear(closeTimer);
103
+ clear(exitTimer);
104
+ setClosing(true);
105
+ exitTimer.current = window.setTimeout(() => {
106
+ const next = queued.current;
107
+ queued.current = null;
108
+ setClosing(false);
109
+ // Straight into the next card if the pointer found one while this was
110
+ // leaving: the reader has already waited out the exit, and making them
111
+ // wait the hover intent again on top of it would read as being ignored.
112
+ setOpened(next ?? null);
113
+ }, motionMs);
114
+ };
115
+ const scheduleClose = () => {
116
+ /*
117
+ * The wait to open is called off, first of all.
118
+ *
119
+ * This is what makes the hover intent mean anything. Without it, a
120
+ * pointer that crossed an item and left again still had a timer running:
121
+ * it fired after the pointer had gone, opened a card over nothing, and
122
+ * the close that had been scheduled behind it took the card away again.
123
+ * Passing over a row of cards flashed one open at every item — the exact
124
+ * behaviour the wait exists to prevent, arriving a fifth of a second
125
+ * late.
126
+ */
127
+ clear(openTimer);
128
+ /*
129
+ * A card already on its way out is left to finish.
130
+ *
131
+ * Without this, the pointer leaving whatever it moved to next would
132
+ * clear the exit timer and start the whole close again — the card would
133
+ * shrink, stop, and shrink once more. Leaving is not interruptible; only
134
+ * coming back cancels it, and that goes through `cancelClose`.
135
+ */
136
+ queued.current = null;
137
+ if (closing) {
138
+ return;
139
+ }
140
+ clear(closeTimer);
141
+ clear(exitTimer);
142
+ closeTimer.current = window.setTimeout(beginExit, closeDelayMs);
143
+ };
144
+ const open = (key, at) => {
145
+ if (!enabled) {
146
+ return;
147
+ }
148
+ const next = { key, at };
149
+ if (closing) {
150
+ queued.current = next;
151
+ return;
152
+ }
153
+ if (opened !== null) {
154
+ if (opened.key === key) {
155
+ // Back on the thing it is already open for: nothing to do but stay.
156
+ cancelClose();
157
+ return;
158
+ }
159
+ queued.current = next;
160
+ beginExit();
161
+ return;
162
+ }
163
+ cancelClose();
164
+ clear(openTimer);
165
+ openTimer.current = window.setTimeout(() => setOpened(next), openDelayMs);
166
+ };
167
+ useEffect(() => () => {
168
+ clear(openTimer);
169
+ clear(closeTimer);
170
+ clear(exitTimer);
171
+ }, []);
172
+ useEffect(() => {
173
+ if (!enabled) {
174
+ return undefined;
175
+ }
176
+ const onKey = (event) => {
177
+ if (event.key !== 'Escape') {
178
+ return;
179
+ }
180
+ clear(openTimer);
181
+ if (opened !== null && !closing) {
182
+ beginExit();
183
+ }
184
+ };
185
+ document.addEventListener('keydown', onKey);
186
+ return () => document.removeEventListener('keydown', onKey);
187
+ // `beginExit` is rebuilt every render; what decides whether it should run
188
+ // is the state below, and the listener is re-attached when that changes.
189
+ // eslint-disable-next-line react-hooks/exhaustive-deps
190
+ }, [enabled, opened, closing]);
191
+ return {
192
+ active: opened?.at ?? null,
193
+ activeKey: opened?.key ?? null,
194
+ closing,
195
+ open,
196
+ scheduleClose,
197
+ cancelClose
198
+ };
199
+ }
200
+ export default useHoverCard;
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Whether the reader has asked for less movement.
3
+ *
4
+ * A hover card grows, and growing is the part somebody with vestibular
5
+ * trouble asked not to see. Everything else about it — that it appears,
6
+ * what it says — is unchanged; only the animation is dropped, and an exit
7
+ * that waited for an animation no longer waits.
8
+ */
9
+ export declare function usePrefersReducedMotion(): boolean;
10
+ export default usePrefersReducedMotion;
@@ -0,0 +1,28 @@
1
+ /*
2
+ * Copyright (c) 2021-2026 Datalayer, Inc.
3
+ * Distributed under the terms of the Modified BSD License.
4
+ */
5
+ import { useEffect, useState } from 'react';
6
+ /**
7
+ * Whether the reader has asked for less movement.
8
+ *
9
+ * A hover card grows, and growing is the part somebody with vestibular
10
+ * trouble asked not to see. Everything else about it — that it appears,
11
+ * what it says — is unchanged; only the animation is dropped, and an exit
12
+ * that waited for an animation no longer waits.
13
+ */
14
+ export function usePrefersReducedMotion() {
15
+ const [reduced, setReduced] = useState(false);
16
+ useEffect(() => {
17
+ const query = window.matchMedia?.('(prefers-reduced-motion: reduce)');
18
+ if (!query) {
19
+ return undefined;
20
+ }
21
+ setReduced(query.matches);
22
+ const listen = (event) => setReduced(event.matches);
23
+ query.addEventListener?.('change', listen);
24
+ return () => query.removeEventListener?.('change', listen);
25
+ }, []);
26
+ return reduced;
27
+ }
28
+ export default usePrefersReducedMotion;
@@ -9,6 +9,8 @@ export * from "./appearance/ThemeCircle";
9
9
  export * from "./box/Box";
10
10
  export * from "./calendar-picker";
11
11
  export * from "./card/Card";
12
+ export * from "./hover-card";
13
+ export * from "./entity-avatar";
12
14
  export * from "./sheet/Sheet";
13
15
  export * from "./color";
14
16
  export * from "./color-picker";
@@ -13,6 +13,8 @@ export * from "./appearance/ThemeCircle";
13
13
  export * from "./box/Box";
14
14
  export * from "./calendar-picker";
15
15
  export * from "./card/Card";
16
+ export * from "./hover-card";
17
+ export * from "./entity-avatar";
16
18
  export * from "./sheet/Sheet";
17
19
  export * from "./color";
18
20
  export * from "./color-picker";
@@ -4,7 +4,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
4
4
  * Distributed under the terms of the Modified BSD License.
5
5
  */
6
6
  import { forwardRef, useId } from 'react';
7
- import { datalayerColors, spatialColors, lovelyColors, matrixColors, earthColors, sandColors, ivoryColors, sunColors, loopColors, } from '../../theme';
7
+ import { datalayerColors, spatialColors, lovelyColors, matrixColors, earthColors, sandColors, ivoryColors, sunColors, loopColors, vscodeColors, } from '../../theme';
8
8
  /**
9
9
  * Gradient pattern derived from the original brand logo SVG:
10
10
  * - Left bars: accent → brand (bright → mid)
@@ -158,6 +158,23 @@ export const THEME_LOGO_COLORS = {
158
158
  secondaryGradient: [loopColors.inkDark, loopColors.inkDark],
159
159
  },
160
160
  },
161
+ vscode: {
162
+ // The editor's blue, flat: VS Code draws no gradient.
163
+ light: {
164
+ primary: vscodeColors.vscodeText,
165
+ secondary: '#3B3B3B',
166
+ textColor: '#767676',
167
+ primaryGradient: [vscodeColors.vscodeText, vscodeColors.vscodeText],
168
+ secondaryGradient: ['#3B3B3B', '#3B3B3B'],
169
+ },
170
+ dark: {
171
+ primary: vscodeColors.vscodeAccent,
172
+ secondary: '#CCCCCC',
173
+ textColor: vscodeColors.gray,
174
+ primaryGradient: [vscodeColors.vscodeAccent, vscodeColors.vscodeAccent],
175
+ secondaryGradient: ['#CCCCCC', '#CCCCCC'],
176
+ },
177
+ },
161
178
  };
162
179
  export function getLogoColors(variant = 'datalayer', colorMode = 'light') {
163
180
  const mode = colorMode === 'auto' ? 'light' : colorMode;
@@ -1,8 +1,8 @@
1
- import type { ToolbarButtonItem } from './types';
1
+ import type { ToolbarButtonItem } from "./types";
2
2
  export interface ToolbarButtonProps {
3
3
  item: ToolbarButtonItem;
4
4
  /** Size variant: 'small' for floating toolbar, 'medium' for fixed toolbar */
5
- size?: 'small' | 'medium';
5
+ size?: "small" | "medium";
6
6
  /** Print `ariaLabel` beside the icon — see the module doc. Off by default. */
7
7
  showLabel?: boolean;
8
8
  }
@@ -27,9 +27,9 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
27
27
  *
28
28
  * @module components/toolbar/ToolbarButton
29
29
  */
30
- import { isValidElement, useState } from 'react';
31
- import { Tooltip } from '@primer/react';
32
- export function ToolbarButton({ item, size = 'medium', showLabel = false, }) {
30
+ import { isValidElement, useState } from "react";
31
+ import { Tooltip } from "@primer/react";
32
+ export function ToolbarButton({ item, size = "medium", showLabel = false, }) {
33
33
  const { ariaLabel, title, icon, label, isActive, onClick, disabled } = item;
34
34
  // Resolve icon → React element.
35
35
  // Octicon components use React.forwardRef, which returns an *object*
@@ -48,9 +48,9 @@ export function ToolbarButton({ item, size = 'medium', showLabel = false, }) {
48
48
  }
49
49
  else if (label) {
50
50
  // Fallback: render text label (e.g. "x₂" for subscript)
51
- iconElement = _jsx("span", { style: { fontSize: 12, fontWeight: 600, lineHeight: 1 }, children: label });
51
+ iconElement = (_jsx("span", { style: { fontSize: 12, fontWeight: 600, lineHeight: 1 }, children: label }));
52
52
  }
53
- const btnSize = size === 'small' ? 28 : 32;
53
+ const btnSize = size === "small" ? 28 : 32;
54
54
  // Only when there is a name to show, and only where it was asked for:
55
55
  // showLabel with no ariaLabel (should never happen — it is required on
56
56
  // the item — but this keeps a bare icon rather than an empty gap) falls
@@ -68,9 +68,9 @@ export function ToolbarButton({ item, size = 'medium', showLabel = false, }) {
68
68
  const [hovered, setHovered] = useState(false);
69
69
  const lit = hovered && !disabled;
70
70
  const button = (_jsxs("button", { type: "button", "aria-label": ariaLabel, "aria-disabled": disabled || undefined, onMouseDown: (e) => e.preventDefault(), onClick: disabled ? undefined : onClick, style: {
71
- display: 'inline-flex',
72
- alignItems: 'center',
73
- justifyContent: printLabel ? 'flex-start' : 'center',
71
+ display: "inline-flex",
72
+ alignItems: "center",
73
+ justifyContent: printLabel ? "flex-start" : "center",
74
74
  gap: printLabel ? 6 : 0,
75
75
  // No explicit `width` when labelled: sized to its own icon-plus-name
76
76
  // content, the same as `ToolbarDropdown`'s trigger — the two sit in
@@ -80,26 +80,28 @@ export function ToolbarButton({ item, size = 'medium', showLabel = false, }) {
80
80
  width: printLabel ? undefined : btnSize,
81
81
  minWidth: btnSize,
82
82
  height: btnSize,
83
- padding: printLabel ? '0 8px' : 0,
83
+ padding: printLabel ? "0 8px" : 0,
84
84
  margin: 0,
85
- border: 'none',
86
- borderRadius: 6,
87
- cursor: disabled ? 'not-allowed' : 'pointer',
85
+ border: "none",
86
+ // Follow the active theme: Loop makes controls pills, while every
87
+ // other theme supplies its own control radius through the same token.
88
+ borderRadius: "var(--theme-radius-control)",
89
+ cursor: disabled ? "not-allowed" : "pointer",
88
90
  background: lit
89
- ? 'var(--bgColor-neutral-muted, rgba(175,184,193,0.2))'
91
+ ? "var(--bgColor-neutral-muted, rgba(175,184,193,0.2))"
90
92
  : isActive
91
- ? 'var(--bgColor-accent-muted, rgba(9,105,218,0.1))'
92
- : 'transparent',
93
+ ? "var(--bgColor-accent-muted, rgba(9,105,218,0.1))"
94
+ : "transparent",
93
95
  color: lit
94
- ? 'var(--fgColor-default, #1f2328)'
96
+ ? "var(--fgColor-default, #1f2328)"
95
97
  : isActive
96
- ? 'var(--fgColor-accent, #0969da)'
97
- : 'var(--fgColor-muted, #656d76)',
98
+ ? "var(--fgColor-accent, #0969da)"
99
+ : "var(--fgColor-muted, #656d76)",
98
100
  opacity: disabled ? 0.5 : 1,
99
101
  lineHeight: 1,
100
- fontSize: size === 'small' ? 12 : 14,
101
- fontFamily: 'inherit',
102
- whiteSpace: 'nowrap',
102
+ fontSize: size === "small" ? 12 : 14,
103
+ fontFamily: "inherit",
104
+ whiteSpace: "nowrap",
103
105
  }, onMouseEnter: () => setHovered(true), onMouseLeave: () => setHovered(false), children: [iconElement, printLabel && _jsx("span", { children: ariaLabel })] }));
104
106
  // No title: nothing to say, no wrapper to say it with.
105
107
  return title ? (_jsx(Tooltip, { text: title, direction: "s", children: button })) : (button);
@@ -71,7 +71,9 @@ export function ToolbarDropdown({ item, size = "medium", }) {
71
71
  padding: label ? "0 8px" : 0,
72
72
  margin: 0,
73
73
  border: "none",
74
- borderRadius: 6,
74
+ // Match ToolbarButton and every Primer control in the active
75
+ // theme instead of freezing the trigger at a 6px corner.
76
+ borderRadius: "var(--theme-radius-control)",
75
77
  cursor: disabled ? "not-allowed" : "pointer",
76
78
  /*
77
79
  Neutral while the menu is open, not accented.
@@ -7,6 +7,7 @@ export { sandColors } from './sandColors';
7
7
  export { ivoryColors } from './ivoryColors';
8
8
  export { sunColors } from './sunColors';
9
9
  export { loopColors } from './loopColors';
10
+ export { vscodeColors, vscodeVars, vscodeVar, vscodeTint, vscodeFontFamily, vscodeMonoFontFamily, vscodeFontSize, type VSCodeColor, type VSCodeVarName, } from './vscodeColors';
10
11
  export { themeAccents, themeAccentNames, themeAccentVars, themeAccentTints, themeStageGradient, themeTintVars, type ThemeAccent, type ThemeAccentName, } from './themeAccents';
11
12
  import type { ThemeVariant } from '../themeRegistry';
12
13
  /**
@@ -11,6 +11,7 @@ export { sandColors } from './sandColors';
11
11
  export { ivoryColors } from './ivoryColors';
12
12
  export { sunColors } from './sunColors';
13
13
  export { loopColors } from './loopColors';
14
+ export { vscodeColors, vscodeVars, vscodeVar, vscodeTint, vscodeFontFamily, vscodeMonoFontFamily, vscodeFontSize, } from './vscodeColors';
14
15
  export { themeAccents, themeAccentNames, themeAccentVars, themeAccentTints, themeStageGradient, themeTintVars, } from './themeAccents';
15
16
  import { datalayerColors } from './datalayerColors';
16
17
  import { spatialColors } from './spatialColors';
@@ -21,6 +22,7 @@ import { sandColors } from './sandColors';
21
22
  import { ivoryColors } from './ivoryColors';
22
23
  import { sunColors } from './sunColors';
23
24
  import { loopColors } from './loopColors';
25
+ import { vscodeColors } from './vscodeColors';
24
26
  /**
25
27
  * Themed color palettes — maps each `ThemeVariant` to its corresponding
26
28
  * color object so consumers can pick the right palette at runtime.
@@ -41,4 +43,5 @@ export const themedColors = {
41
43
  ivory: ivoryColors,
42
44
  sun: sunColors,
43
45
  loop: loopColors,
46
+ vscode: vscodeColors,
44
47
  };