@datalayer/primer-addons 1.0.36 → 1.0.38

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 (60) hide show
  1. package/README.md +19 -1
  2. package/lib/components/appearance/AppearanceControls.js +5 -0
  3. package/lib/reactor/index.d.ts +1 -1
  4. package/lib/reactor/index.js +1 -1
  5. package/lib/reactor/page-layout/PageLayout.d.ts +6 -0
  6. package/lib/reactor/page-layout/PageLayout.js +26 -0
  7. package/lib/theme/DatalayerThemeProvider.js +5 -2
  8. package/lib/theme/css/createThemeCSSVars.d.ts +5 -0
  9. package/lib/theme/css/createThemeCSSVars.js +2 -0
  10. package/lib/theme/index.d.ts +1 -0
  11. package/lib/theme/index.js +1 -0
  12. package/lib/theme/loopEyes.d.ts +84 -0
  13. package/lib/theme/loopEyes.js +82 -0
  14. package/lib/theme/portable.d.ts +16 -0
  15. package/lib/theme/portable.js +20 -0
  16. package/lib/theme/portableTheme.d.ts +1 -1
  17. package/lib/theme/portableTheme.js +2 -2
  18. package/lib/theme/themeRegistry.d.ts +3 -75
  19. package/lib/theme/themeRegistry.js +38 -509
  20. package/lib/theme/themeTokens.d.ts +101 -0
  21. package/lib/theme/themeTokens.js +494 -0
  22. package/lib/theme/themes/datalayerTheme.d.ts +2 -9
  23. package/lib/theme/themes/datalayerTheme.js +8 -236
  24. package/lib/theme/themes/datalayerThemeStyles.d.ts +2 -0
  25. package/lib/theme/themes/datalayerThemeStyles.js +234 -0
  26. package/lib/theme/themes/earthTheme.d.ts +2 -9
  27. package/lib/theme/themes/earthTheme.js +8 -235
  28. package/lib/theme/themes/earthThemeStyles.d.ts +2 -0
  29. package/lib/theme/themes/earthThemeStyles.js +233 -0
  30. package/lib/theme/themes/ivoryTheme.d.ts +2 -9
  31. package/lib/theme/themes/ivoryTheme.js +8 -249
  32. package/lib/theme/themes/ivoryThemeStyles.d.ts +2 -0
  33. package/lib/theme/themes/ivoryThemeStyles.js +247 -0
  34. package/lib/theme/themes/loopTheme.d.ts +13 -144
  35. package/lib/theme/themes/loopTheme.js +20 -517
  36. package/lib/theme/themes/loopThemeStyles.d.ts +135 -0
  37. package/lib/theme/themes/loopThemeStyles.js +521 -0
  38. package/lib/theme/themes/lovelyTheme.d.ts +2 -9
  39. package/lib/theme/themes/lovelyTheme.js +8 -231
  40. package/lib/theme/themes/lovelyThemeStyles.d.ts +2 -0
  41. package/lib/theme/themes/lovelyThemeStyles.js +229 -0
  42. package/lib/theme/themes/matrixTheme.d.ts +2 -9
  43. package/lib/theme/themes/matrixTheme.js +8 -237
  44. package/lib/theme/themes/matrixThemeStyles.d.ts +2 -0
  45. package/lib/theme/themes/matrixThemeStyles.js +235 -0
  46. package/lib/theme/themes/sandTheme.d.ts +2 -9
  47. package/lib/theme/themes/sandTheme.js +8 -248
  48. package/lib/theme/themes/sandThemeStyles.d.ts +2 -0
  49. package/lib/theme/themes/sandThemeStyles.js +246 -0
  50. package/lib/theme/themes/spatialTheme.d.ts +2 -9
  51. package/lib/theme/themes/spatialTheme.js +8 -231
  52. package/lib/theme/themes/spatialThemeStyles.d.ts +2 -0
  53. package/lib/theme/themes/spatialThemeStyles.js +229 -0
  54. package/lib/theme/themes/sunTheme.d.ts +2 -9
  55. package/lib/theme/themes/sunTheme.js +8 -249
  56. package/lib/theme/themes/sunThemeStyles.d.ts +2 -0
  57. package/lib/theme/themes/sunThemeStyles.js +247 -0
  58. package/lib/utils/Portals.d.ts +7 -0
  59. package/lib/utils/Portals.js +7 -0
  60. package/package.json +1 -1
@@ -1,239 +1,16 @@
1
1
  /*
2
- * Copyright (c) 2023-2025 Datalayer, Inc.
2
+ * Copyright (c) 2023-2026 Datalayer, Inc.
3
3
  * Distributed under the terms of the Modified BSD License.
4
4
  */
5
5
  /**
6
- * Spatial Theme for Primer React.
7
- *
8
- * Cosmic indigo & deep blues — inspired by space.
9
- * Theming is applied via **CSS custom-property overrides**.
6
+ * The spatial theme for Primer React: its styles, from `./spatialThemeStyles`,
7
+ * and the Primer theme object. Theming is done through CSS custom
8
+ * properties, so the object is Primer's unmodified default, kept for
9
+ * `<ThemeProvider theme={…}>`. Code that needs the tokens without Primer
10
+ * React (a native app) imports the styles module instead.
10
11
  */
11
12
  import { theme as primerTheme } from '@primer/react';
12
- import { spatialColors } from '../colors';
13
- import { buildThemeStyles } from '../css/createThemeCSSVars';
14
- /* ── Light-mode colour definitions ───────────────────────────────────── */
15
- const spatialLight = {
16
- canvas: {
17
- default: spatialColors.white,
18
- subtle: '#EEF1FA',
19
- },
20
- fg: {
21
- default: '#1E1E3F',
22
- muted: spatialColors.gray,
23
- onEmphasis: spatialColors.white,
24
- },
25
- accent: {
26
- fg: spatialColors.indigoText,
27
- emphasis: spatialColors.indigoBrand,
28
- muted: spatialColors.indigoAccent,
29
- subtle: spatialColors.indigoTint,
30
- },
31
- success: {
32
- fg: '#1a7f37',
33
- emphasis: '#2da44e',
34
- muted: '#4ac26b',
35
- subtle: '#dafbe1',
36
- },
37
- attention: {
38
- fg: spatialColors.attentionBrand,
39
- emphasis: spatialColors.attentionAccent,
40
- muted: spatialColors.attentionBrand,
41
- subtle: spatialColors.attentionTint,
42
- },
43
- danger: {
44
- fg: spatialColors.dangerBrand,
45
- emphasis: spatialColors.dangerBrand,
46
- muted: spatialColors.dangerAccent,
47
- subtle: spatialColors.dangerTint,
48
- },
49
- severe: {
50
- fg: spatialColors.severeBrand,
51
- emphasis: spatialColors.severeBrand,
52
- muted: spatialColors.severeAccent,
53
- subtle: spatialColors.severeTint,
54
- },
55
- done: {
56
- fg: spatialColors.doneBrand,
57
- emphasis: spatialColors.doneBrand,
58
- muted: spatialColors.doneAccent,
59
- subtle: spatialColors.doneTint,
60
- },
61
- btn: {
62
- text: '#1E1E3F',
63
- bg: spatialColors.white,
64
- border: '#C7D2FE',
65
- hoverBg: spatialColors.indigoTint,
66
- hoverBorder: spatialColors.gray,
67
- activeBg: spatialColors.indigoTint,
68
- activeBorder: spatialColors.gray,
69
- selectedBg: spatialColors.white,
70
- counterBg: spatialColors.gray,
71
- primary: {
72
- text: spatialColors.white,
73
- bg: spatialColors.indigoText,
74
- border: spatialColors.indigoText,
75
- hoverBg: spatialColors.indigoHover,
76
- hoverBorder: spatialColors.indigoHover,
77
- selectedBg: spatialColors.indigoHover,
78
- disabledText: 'rgba(255, 255, 255, 0.8)',
79
- disabledBg: '#B4B0D8',
80
- disabledBorder: '#B4B0D8',
81
- icon: spatialColors.white,
82
- counterBg: 'rgba(0, 0, 0, 0.2)',
83
- },
84
- outline: {
85
- text: spatialColors.indigoText,
86
- hoverText: spatialColors.white,
87
- hoverBg: spatialColors.indigoText,
88
- hoverBorder: spatialColors.indigoText,
89
- hoverCounterBg: 'rgba(255, 255, 255, 0.2)',
90
- selectedText: spatialColors.white,
91
- selectedBg: spatialColors.indigoHover,
92
- selectedBorder: spatialColors.indigoHover,
93
- disabledText: spatialColors.gray,
94
- disabledBg: spatialColors.indigoTint,
95
- disabledCounterBg: 'rgba(0, 0, 0, 0.05)',
96
- counterBg: 'rgba(0, 0, 0, 0.05)',
97
- counterFg: spatialColors.indigoText,
98
- hoverCounterFg: spatialColors.white,
99
- disabledCounterFg: spatialColors.gray,
100
- },
101
- danger: {
102
- text: '#d32f2f',
103
- hoverText: spatialColors.white,
104
- hoverBg: '#d32f2f',
105
- hoverBorder: '#d32f2f',
106
- hoverCounterBg: 'rgba(255, 255, 255, 0.2)',
107
- selectedText: spatialColors.white,
108
- selectedBg: '#b71c1c',
109
- selectedBorder: '#b71c1c',
110
- disabledText: 'rgba(211, 47, 47, 0.5)',
111
- disabledBg: spatialColors.indigoTint,
112
- disabledCounterBg: 'rgba(211, 47, 47, 0.05)',
113
- counterBg: 'rgba(211, 47, 47, 0.1)',
114
- counterFg: '#d32f2f',
115
- hoverCounterFg: spatialColors.white,
116
- disabledCounterFg: 'rgba(211, 47, 47, 0.5)',
117
- icon: '#d32f2f',
118
- },
119
- },
120
- };
121
- /* ── Dark-mode colour definitions ────────────────────────────────────── */
122
- const spatialDark = {
123
- canvas: {
124
- default: spatialColors.black,
125
- subtle: '#111827',
126
- },
127
- fg: {
128
- default: '#E0E7FF',
129
- muted: '#94A3B8',
130
- onEmphasis: spatialColors.white,
131
- },
132
- accent: {
133
- fg: spatialColors.indigoAccent,
134
- emphasis: spatialColors.indigoBright,
135
- muted: spatialColors.indigoBrand,
136
- subtle: '#1E1B4B',
137
- },
138
- success: {
139
- fg: '#3fb950',
140
- emphasis: '#238636',
141
- muted: '#2ea043',
142
- subtle: '#0f2a18',
143
- },
144
- attention: {
145
- fg: '#f2cc60',
146
- emphasis: '#a36f00',
147
- muted: spatialColors.attentionBrand,
148
- subtle: '#332300',
149
- },
150
- danger: {
151
- fg: '#ff9aa2',
152
- emphasis: '#c93d45',
153
- muted: spatialColors.dangerBrand,
154
- subtle: '#34161b',
155
- },
156
- severe: {
157
- fg: '#ffba84',
158
- emphasis: '#bd6a2d',
159
- muted: spatialColors.severeBrand,
160
- subtle: '#321d08',
161
- },
162
- done: {
163
- fg: '#c4b5fd',
164
- emphasis: '#8b5cf6',
165
- muted: spatialColors.doneBrand,
166
- subtle: '#22194a',
167
- },
168
- btn: {
169
- text: '#E0E7FF',
170
- bg: '#1E293B',
171
- border: 'rgba(199, 210, 254, 0.15)',
172
- hoverBg: '#334155',
173
- hoverBorder: '#94A3B8',
174
- activeBg: '#1E293B',
175
- activeBorder: '#64748B',
176
- selectedBg: '#0F172A',
177
- counterBg: '#334155',
178
- primary: {
179
- text: spatialColors.white,
180
- bg: spatialColors.indigoAccent,
181
- border: 'rgba(199, 210, 254, 0.15)',
182
- hoverBg: spatialColors.indigoBright,
183
- hoverBorder: 'rgba(199, 210, 254, 0.15)',
184
- selectedBg: spatialColors.indigoBright,
185
- disabledText: 'rgba(255, 255, 255, 0.5)',
186
- disabledBg: 'rgba(79, 70, 229, 0.35)',
187
- disabledBorder: 'rgba(79, 70, 229, 0.2)',
188
- icon: spatialColors.white,
189
- counterBg: 'rgba(0, 0, 0, 0.2)',
190
- },
191
- outline: {
192
- text: spatialColors.indigoAccent,
193
- hoverText: spatialColors.white,
194
- hoverBg: spatialColors.indigoAccent,
195
- hoverBorder: spatialColors.indigoAccent,
196
- hoverCounterBg: 'rgba(255, 255, 255, 0.2)',
197
- selectedText: spatialColors.white,
198
- selectedBg: spatialColors.indigoBright,
199
- selectedBorder: spatialColors.indigoBright,
200
- disabledText: 'rgba(99, 102, 241, 0.5)',
201
- disabledBg: 'rgba(99, 102, 241, 0.1)',
202
- disabledCounterBg: 'rgba(99, 102, 241, 0.05)',
203
- counterBg: 'rgba(99, 102, 241, 0.1)',
204
- counterFg: spatialColors.indigoAccent,
205
- hoverCounterFg: spatialColors.white,
206
- disabledCounterFg: 'rgba(99, 102, 241, 0.5)',
207
- },
208
- danger: {
209
- text: '#f85149',
210
- hoverText: spatialColors.white,
211
- hoverBg: '#da3633',
212
- hoverBorder: '#f85149',
213
- hoverCounterBg: 'rgba(255, 255, 255, 0.2)',
214
- selectedText: spatialColors.white,
215
- selectedBg: '#b62324',
216
- selectedBorder: '#ff7b72',
217
- disabledText: 'rgba(248, 81, 73, 0.5)',
218
- disabledBg: 'rgba(248, 81, 73, 0.1)',
219
- disabledCounterBg: 'rgba(248, 81, 73, 0.05)',
220
- counterBg: 'rgba(248, 81, 73, 0.1)',
221
- counterFg: '#f85149',
222
- hoverCounterFg: spatialColors.white,
223
- disabledCounterFg: 'rgba(248, 81, 73, 0.5)',
224
- icon: '#f85149',
225
- },
226
- },
227
- };
228
- /* ── Exports ─────────────────────────────────────────────────────────── */
229
- /**
230
- * The Primer theme object.
231
- *
232
- * Since theming is now done entirely via CSS custom properties
233
- * (see `spatialThemeStyles`), this is just the unmodified
234
- * default Primer theme kept for backward compatibility.
235
- */
13
+ export * from './spatialThemeStyles';
14
+ /** The Primer theme object: Primer's default. */
236
15
  export const spatialTheme = primerTheme;
237
- /** Comprehensive Primer CSS-variable overrides for light & dark mode. */
238
- export const spatialThemeStyles = buildThemeStyles(spatialLight, spatialDark);
239
16
  export default spatialTheme;
@@ -0,0 +1,2 @@
1
+ /** Comprehensive Primer CSS-variable overrides for light & dark mode. */
2
+ export declare const spatialThemeStyles: import("../css/createThemeCSSVars").ThemeStyles;
@@ -0,0 +1,229 @@
1
+ /*
2
+ * Copyright (c) 2023-2025 Datalayer, Inc.
3
+ * Distributed under the terms of the Modified BSD License.
4
+ */
5
+ /**
6
+ * Spatial Theme for Primer React.
7
+ *
8
+ * Cosmic indigo & deep blues — inspired by space.
9
+ * Theming is applied via **CSS custom-property overrides**.
10
+ */
11
+ import { spatialColors } from '../colors';
12
+ import { buildThemeStyles } from '../css/createThemeCSSVars';
13
+ /* ── Light-mode colour definitions ───────────────────────────────────── */
14
+ const spatialLight = {
15
+ canvas: {
16
+ default: spatialColors.white,
17
+ subtle: '#EEF1FA',
18
+ },
19
+ fg: {
20
+ default: '#1E1E3F',
21
+ muted: spatialColors.gray,
22
+ onEmphasis: spatialColors.white,
23
+ },
24
+ accent: {
25
+ fg: spatialColors.indigoText,
26
+ emphasis: spatialColors.indigoBrand,
27
+ muted: spatialColors.indigoAccent,
28
+ subtle: spatialColors.indigoTint,
29
+ },
30
+ success: {
31
+ fg: '#1a7f37',
32
+ emphasis: '#2da44e',
33
+ muted: '#4ac26b',
34
+ subtle: '#dafbe1',
35
+ },
36
+ attention: {
37
+ fg: spatialColors.attentionBrand,
38
+ emphasis: spatialColors.attentionAccent,
39
+ muted: spatialColors.attentionBrand,
40
+ subtle: spatialColors.attentionTint,
41
+ },
42
+ danger: {
43
+ fg: spatialColors.dangerBrand,
44
+ emphasis: spatialColors.dangerBrand,
45
+ muted: spatialColors.dangerAccent,
46
+ subtle: spatialColors.dangerTint,
47
+ },
48
+ severe: {
49
+ fg: spatialColors.severeBrand,
50
+ emphasis: spatialColors.severeBrand,
51
+ muted: spatialColors.severeAccent,
52
+ subtle: spatialColors.severeTint,
53
+ },
54
+ done: {
55
+ fg: spatialColors.doneBrand,
56
+ emphasis: spatialColors.doneBrand,
57
+ muted: spatialColors.doneAccent,
58
+ subtle: spatialColors.doneTint,
59
+ },
60
+ btn: {
61
+ text: '#1E1E3F',
62
+ bg: spatialColors.white,
63
+ border: '#C7D2FE',
64
+ hoverBg: spatialColors.indigoTint,
65
+ hoverBorder: spatialColors.gray,
66
+ activeBg: spatialColors.indigoTint,
67
+ activeBorder: spatialColors.gray,
68
+ selectedBg: spatialColors.white,
69
+ counterBg: spatialColors.gray,
70
+ primary: {
71
+ text: spatialColors.white,
72
+ bg: spatialColors.indigoText,
73
+ border: spatialColors.indigoText,
74
+ hoverBg: spatialColors.indigoHover,
75
+ hoverBorder: spatialColors.indigoHover,
76
+ selectedBg: spatialColors.indigoHover,
77
+ disabledText: 'rgba(255, 255, 255, 0.8)',
78
+ disabledBg: '#B4B0D8',
79
+ disabledBorder: '#B4B0D8',
80
+ icon: spatialColors.white,
81
+ counterBg: 'rgba(0, 0, 0, 0.2)',
82
+ },
83
+ outline: {
84
+ text: spatialColors.indigoText,
85
+ hoverText: spatialColors.white,
86
+ hoverBg: spatialColors.indigoText,
87
+ hoverBorder: spatialColors.indigoText,
88
+ hoverCounterBg: 'rgba(255, 255, 255, 0.2)',
89
+ selectedText: spatialColors.white,
90
+ selectedBg: spatialColors.indigoHover,
91
+ selectedBorder: spatialColors.indigoHover,
92
+ disabledText: spatialColors.gray,
93
+ disabledBg: spatialColors.indigoTint,
94
+ disabledCounterBg: 'rgba(0, 0, 0, 0.05)',
95
+ counterBg: 'rgba(0, 0, 0, 0.05)',
96
+ counterFg: spatialColors.indigoText,
97
+ hoverCounterFg: spatialColors.white,
98
+ disabledCounterFg: spatialColors.gray,
99
+ },
100
+ danger: {
101
+ text: '#d32f2f',
102
+ hoverText: spatialColors.white,
103
+ hoverBg: '#d32f2f',
104
+ hoverBorder: '#d32f2f',
105
+ hoverCounterBg: 'rgba(255, 255, 255, 0.2)',
106
+ selectedText: spatialColors.white,
107
+ selectedBg: '#b71c1c',
108
+ selectedBorder: '#b71c1c',
109
+ disabledText: 'rgba(211, 47, 47, 0.5)',
110
+ disabledBg: spatialColors.indigoTint,
111
+ disabledCounterBg: 'rgba(211, 47, 47, 0.05)',
112
+ counterBg: 'rgba(211, 47, 47, 0.1)',
113
+ counterFg: '#d32f2f',
114
+ hoverCounterFg: spatialColors.white,
115
+ disabledCounterFg: 'rgba(211, 47, 47, 0.5)',
116
+ icon: '#d32f2f',
117
+ },
118
+ },
119
+ };
120
+ /* ── Dark-mode colour definitions ────────────────────────────────────── */
121
+ const spatialDark = {
122
+ canvas: {
123
+ default: spatialColors.black,
124
+ subtle: '#111827',
125
+ },
126
+ fg: {
127
+ default: '#E0E7FF',
128
+ muted: '#94A3B8',
129
+ onEmphasis: spatialColors.white,
130
+ },
131
+ accent: {
132
+ fg: spatialColors.indigoAccent,
133
+ emphasis: spatialColors.indigoBright,
134
+ muted: spatialColors.indigoBrand,
135
+ subtle: '#1E1B4B',
136
+ },
137
+ success: {
138
+ fg: '#3fb950',
139
+ emphasis: '#238636',
140
+ muted: '#2ea043',
141
+ subtle: '#0f2a18',
142
+ },
143
+ attention: {
144
+ fg: '#f2cc60',
145
+ emphasis: '#a36f00',
146
+ muted: spatialColors.attentionBrand,
147
+ subtle: '#332300',
148
+ },
149
+ danger: {
150
+ fg: '#ff9aa2',
151
+ emphasis: '#c93d45',
152
+ muted: spatialColors.dangerBrand,
153
+ subtle: '#34161b',
154
+ },
155
+ severe: {
156
+ fg: '#ffba84',
157
+ emphasis: '#bd6a2d',
158
+ muted: spatialColors.severeBrand,
159
+ subtle: '#321d08',
160
+ },
161
+ done: {
162
+ fg: '#c4b5fd',
163
+ emphasis: '#8b5cf6',
164
+ muted: spatialColors.doneBrand,
165
+ subtle: '#22194a',
166
+ },
167
+ btn: {
168
+ text: '#E0E7FF',
169
+ bg: '#1E293B',
170
+ border: 'rgba(199, 210, 254, 0.15)',
171
+ hoverBg: '#334155',
172
+ hoverBorder: '#94A3B8',
173
+ activeBg: '#1E293B',
174
+ activeBorder: '#64748B',
175
+ selectedBg: '#0F172A',
176
+ counterBg: '#334155',
177
+ primary: {
178
+ text: spatialColors.white,
179
+ bg: spatialColors.indigoAccent,
180
+ border: 'rgba(199, 210, 254, 0.15)',
181
+ hoverBg: spatialColors.indigoBright,
182
+ hoverBorder: 'rgba(199, 210, 254, 0.15)',
183
+ selectedBg: spatialColors.indigoBright,
184
+ disabledText: 'rgba(255, 255, 255, 0.5)',
185
+ disabledBg: 'rgba(79, 70, 229, 0.35)',
186
+ disabledBorder: 'rgba(79, 70, 229, 0.2)',
187
+ icon: spatialColors.white,
188
+ counterBg: 'rgba(0, 0, 0, 0.2)',
189
+ },
190
+ outline: {
191
+ text: spatialColors.indigoAccent,
192
+ hoverText: spatialColors.white,
193
+ hoverBg: spatialColors.indigoAccent,
194
+ hoverBorder: spatialColors.indigoAccent,
195
+ hoverCounterBg: 'rgba(255, 255, 255, 0.2)',
196
+ selectedText: spatialColors.white,
197
+ selectedBg: spatialColors.indigoBright,
198
+ selectedBorder: spatialColors.indigoBright,
199
+ disabledText: 'rgba(99, 102, 241, 0.5)',
200
+ disabledBg: 'rgba(99, 102, 241, 0.1)',
201
+ disabledCounterBg: 'rgba(99, 102, 241, 0.05)',
202
+ counterBg: 'rgba(99, 102, 241, 0.1)',
203
+ counterFg: spatialColors.indigoAccent,
204
+ hoverCounterFg: spatialColors.white,
205
+ disabledCounterFg: 'rgba(99, 102, 241, 0.5)',
206
+ },
207
+ danger: {
208
+ text: '#f85149',
209
+ hoverText: spatialColors.white,
210
+ hoverBg: '#da3633',
211
+ hoverBorder: '#f85149',
212
+ hoverCounterBg: 'rgba(255, 255, 255, 0.2)',
213
+ selectedText: spatialColors.white,
214
+ selectedBg: '#b62324',
215
+ selectedBorder: '#ff7b72',
216
+ disabledText: 'rgba(248, 81, 73, 0.5)',
217
+ disabledBg: 'rgba(248, 81, 73, 0.1)',
218
+ disabledCounterBg: 'rgba(248, 81, 73, 0.05)',
219
+ counterBg: 'rgba(248, 81, 73, 0.1)',
220
+ counterFg: '#f85149',
221
+ hoverCounterFg: spatialColors.white,
222
+ disabledCounterFg: 'rgba(248, 81, 73, 0.5)',
223
+ icon: '#f85149',
224
+ },
225
+ },
226
+ };
227
+ /* ── Exports ─────────────────────────────────────────────────────────── */
228
+ /** Comprehensive Primer CSS-variable overrides for light & dark mode. */
229
+ export const spatialThemeStyles = buildThemeStyles(spatialLight, spatialDark);
@@ -1,10 +1,5 @@
1
- /**
2
- * The Primer theme object.
3
- *
4
- * Since theming is done entirely via CSS custom properties
5
- * (see `sunThemeStyles`), this is just the unmodified default Primer
6
- * theme kept for backward compatibility.
7
- */
1
+ export * from './sunThemeStyles';
2
+ /** The Primer theme object: Primer's default. */
8
3
  export declare const sunTheme: {
9
4
  animation: {
10
5
  easeOutCubic: string;
@@ -1086,6 +1081,4 @@ export declare const sunTheme: {
1086
1081
  }>;
1087
1082
  }>;
1088
1083
  };
1089
- /** Comprehensive Primer CSS-variable overrides for light & dark mode. */
1090
- export declare const sunThemeStyles: import("../css/createThemeCSSVars").ThemeStyles;
1091
1084
  export default sunTheme;