@datalayer/primer-addons 1.0.36 → 1.0.39

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 (90) hide show
  1. package/README.md +69 -19
  2. package/lib/components/appearance/AppearanceControls.d.ts +6 -1
  3. package/lib/components/appearance/AppearanceControls.js +12 -3
  4. package/lib/components/appearance/AppearanceControlsWithStore.d.ts +4 -0
  5. package/lib/components/appearance/AppearanceControlsWithStore.js +4 -4
  6. package/lib/components/appearance/CollaboratorPalette.js +7 -20
  7. package/lib/components/box/Box.d.ts +103 -16
  8. package/lib/components/box/Box.js +157 -2
  9. package/lib/components/box/boxCss.d.ts +805 -0
  10. package/lib/components/box/boxCss.js +492 -0
  11. package/lib/components/box/boxTokens.d.ts +129 -0
  12. package/lib/components/box/boxTokens.js +124 -0
  13. package/lib/components/calendar-picker/CalendarPicker.js +2 -1
  14. package/lib/components/card/Card.js +19 -10
  15. package/lib/components/color/ColorSwatch.js +2 -1
  16. package/lib/components/color-picker/ColorPicker.js +8 -4
  17. package/lib/components/date-picker/DatePicker.d.ts +12 -3
  18. package/lib/components/date-picker/DatePicker.js +24 -8
  19. package/lib/components/index.d.ts +1 -0
  20. package/lib/components/index.js +1 -0
  21. package/lib/components/sheet/Sheet.d.ts +15 -0
  22. package/lib/components/sheet/Sheet.js +21 -0
  23. package/lib/reactor/index.d.ts +1 -1
  24. package/lib/reactor/index.js +1 -1
  25. package/lib/reactor/page-layout/PageLayout.d.ts +6 -0
  26. package/lib/reactor/page-layout/PageLayout.js +30 -6
  27. package/lib/story-helpers.d.ts +2 -2
  28. package/lib/theme/DatalayerThemeProvider.d.ts +21 -0
  29. package/lib/theme/DatalayerThemeProvider.js +13 -4
  30. package/lib/theme/colors/index.d.ts +2 -1
  31. package/lib/theme/colors/index.js +2 -1
  32. package/lib/theme/colors/loopColors.d.ts +2 -48
  33. package/lib/theme/colors/loopColors.js +2 -98
  34. package/lib/theme/colors/themeAccents.d.ts +81 -0
  35. package/lib/theme/colors/themeAccents.js +139 -0
  36. package/lib/theme/css/createThemeCSSVars.d.ts +5 -0
  37. package/lib/theme/css/createThemeCSSVars.js +5 -0
  38. package/lib/theme/css/primerBaseVars.d.ts +1 -0
  39. package/lib/theme/css/primerBaseVars.js +72 -0
  40. package/lib/theme/index.d.ts +2 -0
  41. package/lib/theme/index.js +2 -0
  42. package/lib/theme/loopEyes.d.ts +84 -0
  43. package/lib/theme/loopEyes.js +82 -0
  44. package/lib/theme/portable.d.ts +16 -0
  45. package/lib/theme/portable.js +20 -0
  46. package/lib/theme/portableTheme.d.ts +1 -1
  47. package/lib/theme/portableTheme.js +2 -2
  48. package/lib/theme/themeRegistry.d.ts +3 -75
  49. package/lib/theme/themeRegistry.js +38 -509
  50. package/lib/theme/themeTokens.d.ts +101 -0
  51. package/lib/theme/themeTokens.js +494 -0
  52. package/lib/theme/themes/datalayerTheme.d.ts +2 -9
  53. package/lib/theme/themes/datalayerTheme.js +8 -236
  54. package/lib/theme/themes/datalayerThemeStyles.d.ts +2 -0
  55. package/lib/theme/themes/datalayerThemeStyles.js +234 -0
  56. package/lib/theme/themes/earthTheme.d.ts +2 -9
  57. package/lib/theme/themes/earthTheme.js +8 -235
  58. package/lib/theme/themes/earthThemeStyles.d.ts +2 -0
  59. package/lib/theme/themes/earthThemeStyles.js +233 -0
  60. package/lib/theme/themes/ivoryTheme.d.ts +2 -9
  61. package/lib/theme/themes/ivoryTheme.js +8 -249
  62. package/lib/theme/themes/ivoryThemeStyles.d.ts +2 -0
  63. package/lib/theme/themes/ivoryThemeStyles.js +247 -0
  64. package/lib/theme/themes/loopTheme.d.ts +13 -144
  65. package/lib/theme/themes/loopTheme.js +20 -517
  66. package/lib/theme/themes/loopThemeStyles.d.ts +129 -0
  67. package/lib/theme/themes/loopThemeStyles.js +531 -0
  68. package/lib/theme/themes/lovelyTheme.d.ts +2 -9
  69. package/lib/theme/themes/lovelyTheme.js +8 -231
  70. package/lib/theme/themes/lovelyThemeStyles.d.ts +2 -0
  71. package/lib/theme/themes/lovelyThemeStyles.js +229 -0
  72. package/lib/theme/themes/matrixTheme.d.ts +2 -9
  73. package/lib/theme/themes/matrixTheme.js +8 -237
  74. package/lib/theme/themes/matrixThemeStyles.d.ts +2 -0
  75. package/lib/theme/themes/matrixThemeStyles.js +235 -0
  76. package/lib/theme/themes/sandTheme.d.ts +2 -9
  77. package/lib/theme/themes/sandTheme.js +8 -248
  78. package/lib/theme/themes/sandThemeStyles.d.ts +2 -0
  79. package/lib/theme/themes/sandThemeStyles.js +246 -0
  80. package/lib/theme/themes/spatialTheme.d.ts +2 -9
  81. package/lib/theme/themes/spatialTheme.js +8 -231
  82. package/lib/theme/themes/spatialThemeStyles.d.ts +2 -0
  83. package/lib/theme/themes/spatialThemeStyles.js +229 -0
  84. package/lib/theme/themes/sunTheme.d.ts +2 -9
  85. package/lib/theme/themes/sunTheme.js +8 -249
  86. package/lib/theme/themes/sunThemeStyles.d.ts +2 -0
  87. package/lib/theme/themes/sunThemeStyles.js +247 -0
  88. package/lib/utils/Portals.d.ts +7 -0
  89. package/lib/utils/Portals.js +7 -0
  90. package/package.json +1 -1
@@ -1,245 +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
- * Matrix Theme for Primer React.
7
- *
8
- * Phosphor green on black — CRT terminal aesthetic.
9
- * Theming is applied via **CSS custom-property overrides**.
6
+ * The matrix theme for Primer React: its styles, from `./matrixThemeStyles`,
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 { matrixColors } from '../colors';
13
- import { buildThemeStyles } from '../css/createThemeCSSVars';
14
- /* ── Light-mode colour definitions ───────────────────────────────────── */
15
- const matrixLight = {
16
- canvas: {
17
- default: matrixColors.white,
18
- subtle: '#E4F5E4',
19
- },
20
- fg: {
21
- default: '#0A2E1A',
22
- muted: matrixColors.gray,
23
- onEmphasis: matrixColors.white,
24
- },
25
- accent: {
26
- fg: matrixColors.greenText,
27
- emphasis: matrixColors.greenBrand,
28
- muted: matrixColors.greenAccent,
29
- subtle: matrixColors.greenTint,
30
- },
31
- success: {
32
- fg: '#1a7f37',
33
- emphasis: '#2da44e',
34
- muted: '#4ac26b',
35
- subtle: '#dafbe1',
36
- },
37
- attention: {
38
- fg: '#3B3200',
39
- emphasis: matrixColors.attentionAccent,
40
- muted: '#CBB100',
41
- subtle: '#FFF7C2',
42
- },
43
- danger: {
44
- fg: matrixColors.dangerBrand,
45
- emphasis: matrixColors.dangerBrand,
46
- muted: matrixColors.dangerAccent,
47
- subtle: '#ffd7df',
48
- },
49
- severe: {
50
- fg: matrixColors.severeBrand,
51
- emphasis: matrixColors.severeBrand,
52
- muted: matrixColors.severeAccent,
53
- subtle: '#ffe3c2',
54
- },
55
- done: {
56
- fg: matrixColors.doneBrand,
57
- emphasis: matrixColors.doneBrand,
58
- muted: matrixColors.doneAccent,
59
- subtle: '#d9fbff',
60
- },
61
- btn: {
62
- text: '#0A2E1A',
63
- bg: matrixColors.white,
64
- border: '#A5D6A7',
65
- hoverBg: matrixColors.greenTint,
66
- hoverBorder: matrixColors.gray,
67
- activeBg: matrixColors.greenTint,
68
- activeBorder: matrixColors.gray,
69
- selectedBg: matrixColors.white,
70
- counterBg: matrixColors.gray,
71
- primary: {
72
- text: matrixColors.white,
73
- bg: matrixColors.greenText,
74
- border: matrixColors.greenText,
75
- hoverBg: matrixColors.greenHover,
76
- hoverBorder: matrixColors.greenHover,
77
- selectedBg: matrixColors.greenHover,
78
- disabledText: 'rgba(255, 255, 255, 0.8)',
79
- disabledBg: '#94C9B9',
80
- disabledBorder: '#94C9B9',
81
- icon: matrixColors.white,
82
- counterBg: 'rgba(0, 0, 0, 0.2)',
83
- },
84
- outline: {
85
- text: matrixColors.greenText,
86
- hoverText: matrixColors.white,
87
- hoverBg: matrixColors.greenText,
88
- hoverBorder: matrixColors.greenText,
89
- hoverCounterBg: 'rgba(255, 255, 255, 0.2)',
90
- selectedText: matrixColors.white,
91
- selectedBg: matrixColors.greenHover,
92
- selectedBorder: matrixColors.greenHover,
93
- disabledText: matrixColors.gray,
94
- disabledBg: matrixColors.greenTint,
95
- disabledCounterBg: 'rgba(0, 0, 0, 0.05)',
96
- counterBg: 'rgba(0, 0, 0, 0.05)',
97
- counterFg: matrixColors.greenText,
98
- hoverCounterFg: matrixColors.white,
99
- disabledCounterFg: matrixColors.gray,
100
- },
101
- danger: {
102
- text: '#d32f2f',
103
- hoverText: matrixColors.white,
104
- hoverBg: '#d32f2f',
105
- hoverBorder: '#d32f2f',
106
- hoverCounterBg: 'rgba(255, 255, 255, 0.2)',
107
- selectedText: matrixColors.white,
108
- selectedBg: '#b71c1c',
109
- selectedBorder: '#b71c1c',
110
- disabledText: 'rgba(211, 47, 47, 0.5)',
111
- disabledBg: matrixColors.greenTint,
112
- disabledCounterBg: 'rgba(211, 47, 47, 0.05)',
113
- counterBg: 'rgba(211, 47, 47, 0.1)',
114
- counterFg: '#d32f2f',
115
- hoverCounterFg: matrixColors.white,
116
- disabledCounterFg: 'rgba(211, 47, 47, 0.5)',
117
- icon: '#d32f2f',
118
- },
119
- },
120
- };
121
- /* ── Dark-mode colour definitions ────────────────────────────────────── */
122
- const matrixDark = {
123
- canvas: {
124
- default: matrixColors.black,
125
- subtle: matrixColors.greenTerminal,
126
- },
127
- fg: {
128
- default: '#C8E6C9',
129
- muted: '#66BB6A',
130
- onEmphasis: matrixColors.white,
131
- },
132
- accent: {
133
- fg: matrixColors.greenPhosphor,
134
- emphasis: matrixColors.greenGlow,
135
- muted: matrixColors.greenAccent,
136
- subtle: '#0A1F0A',
137
- },
138
- success: {
139
- fg: '#56d364',
140
- emphasis: '#238636',
141
- muted: '#2ea043',
142
- subtle: '#0f2a18',
143
- },
144
- attention: {
145
- fg: '#ffea00',
146
- emphasis: '#a78e00',
147
- muted: '#ffd000',
148
- subtle: '#332b00',
149
- },
150
- danger: {
151
- fg: '#ff5a77',
152
- emphasis: '#c62828',
153
- muted: matrixColors.dangerAccent,
154
- subtle: '#2f0f17',
155
- },
156
- severe: {
157
- fg: '#ffad4d',
158
- emphasis: '#c75b12',
159
- muted: matrixColors.severeAccent,
160
- subtle: '#302000',
161
- },
162
- done: {
163
- fg: '#6af7ff',
164
- emphasis: '#008b8b',
165
- muted: matrixColors.doneAccent,
166
- subtle: '#062327',
167
- },
168
- btn: {
169
- text: '#C8E6C9',
170
- bg: '#0A1F0A',
171
- border: 'rgba(0, 255, 65, 0.15)',
172
- hoverBg: '#122812',
173
- hoverBorder: '#66BB6A',
174
- activeBg: '#0A1F0A',
175
- activeBorder: '#4A7856',
176
- selectedBg: '#061206',
177
- counterBg: '#122812',
178
- primary: {
179
- text: matrixColors.black,
180
- bg: matrixColors.greenPhosphor,
181
- border: 'rgba(0, 255, 65, 0.15)',
182
- hoverBg: matrixColors.greenGlow,
183
- hoverBorder: 'rgba(0, 255, 65, 0.15)',
184
- selectedBg: matrixColors.greenGlow,
185
- disabledText: 'rgba(13, 2, 8, 0.5)',
186
- disabledBg: 'rgba(0, 255, 65, 0.35)',
187
- disabledBorder: 'rgba(0, 255, 65, 0.2)',
188
- icon: matrixColors.black,
189
- counterBg: 'rgba(0, 0, 0, 0.2)',
190
- },
191
- outline: {
192
- text: matrixColors.greenPhosphor,
193
- hoverText: matrixColors.black,
194
- hoverBg: matrixColors.greenPhosphor,
195
- hoverBorder: matrixColors.greenPhosphor,
196
- hoverCounterBg: 'rgba(0, 0, 0, 0.2)',
197
- selectedText: matrixColors.black,
198
- selectedBg: matrixColors.greenGlow,
199
- selectedBorder: matrixColors.greenGlow,
200
- disabledText: 'rgba(0, 255, 65, 0.5)',
201
- disabledBg: 'rgba(0, 255, 65, 0.1)',
202
- disabledCounterBg: 'rgba(0, 255, 65, 0.05)',
203
- counterBg: 'rgba(0, 255, 65, 0.1)',
204
- counterFg: matrixColors.greenPhosphor,
205
- hoverCounterFg: matrixColors.black,
206
- disabledCounterFg: 'rgba(0, 255, 65, 0.5)',
207
- },
208
- danger: {
209
- text: '#f85149',
210
- hoverText: matrixColors.white,
211
- hoverBg: '#da3633',
212
- hoverBorder: '#f85149',
213
- hoverCounterBg: 'rgba(255, 255, 255, 0.2)',
214
- selectedText: matrixColors.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: matrixColors.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 `matrixThemeStyles`), this is just the unmodified
234
- * default Primer theme kept for backward compatibility.
235
- */
13
+ export * from './matrixThemeStyles';
14
+ /** The Primer theme object: Primer's default. */
236
15
  export const matrixTheme = primerTheme;
237
- /**
238
- * Monospace font stack for the Matrix terminal aesthetic.
239
- * Uses fonts pre-installed across macOS / Windows / Linux so no
240
- * web-font loading is required.
241
- */
242
- const matrixFontFamily = '"SF Mono", "Cascadia Code", "Fira Code", Menlo, Consolas, "Liberation Mono", "Courier New", monospace';
243
- /** Comprehensive Primer CSS-variable overrides for light & dark mode. */
244
- export const matrixThemeStyles = buildThemeStyles(matrixLight, matrixDark, { fontFamily: matrixFontFamily });
245
16
  export default matrixTheme;
@@ -0,0 +1,2 @@
1
+ /** Comprehensive Primer CSS-variable overrides for light & dark mode. */
2
+ export declare const matrixThemeStyles: import("../css/createThemeCSSVars").ThemeStyles;
@@ -0,0 +1,235 @@
1
+ /*
2
+ * Copyright (c) 2023-2025 Datalayer, Inc.
3
+ * Distributed under the terms of the Modified BSD License.
4
+ */
5
+ /**
6
+ * Matrix Theme for Primer React.
7
+ *
8
+ * Phosphor green on black — CRT terminal aesthetic.
9
+ * Theming is applied via **CSS custom-property overrides**.
10
+ */
11
+ import { matrixColors } from '../colors';
12
+ import { buildThemeStyles } from '../css/createThemeCSSVars';
13
+ /* ── Light-mode colour definitions ───────────────────────────────────── */
14
+ const matrixLight = {
15
+ canvas: {
16
+ default: matrixColors.white,
17
+ subtle: '#E4F5E4',
18
+ },
19
+ fg: {
20
+ default: '#0A2E1A',
21
+ muted: matrixColors.gray,
22
+ onEmphasis: matrixColors.white,
23
+ },
24
+ accent: {
25
+ fg: matrixColors.greenText,
26
+ emphasis: matrixColors.greenBrand,
27
+ muted: matrixColors.greenAccent,
28
+ subtle: matrixColors.greenTint,
29
+ },
30
+ success: {
31
+ fg: '#1a7f37',
32
+ emphasis: '#2da44e',
33
+ muted: '#4ac26b',
34
+ subtle: '#dafbe1',
35
+ },
36
+ attention: {
37
+ fg: '#3B3200',
38
+ emphasis: matrixColors.attentionAccent,
39
+ muted: '#CBB100',
40
+ subtle: '#FFF7C2',
41
+ },
42
+ danger: {
43
+ fg: matrixColors.dangerBrand,
44
+ emphasis: matrixColors.dangerBrand,
45
+ muted: matrixColors.dangerAccent,
46
+ subtle: '#ffd7df',
47
+ },
48
+ severe: {
49
+ fg: matrixColors.severeBrand,
50
+ emphasis: matrixColors.severeBrand,
51
+ muted: matrixColors.severeAccent,
52
+ subtle: '#ffe3c2',
53
+ },
54
+ done: {
55
+ fg: matrixColors.doneBrand,
56
+ emphasis: matrixColors.doneBrand,
57
+ muted: matrixColors.doneAccent,
58
+ subtle: '#d9fbff',
59
+ },
60
+ btn: {
61
+ text: '#0A2E1A',
62
+ bg: matrixColors.white,
63
+ border: '#A5D6A7',
64
+ hoverBg: matrixColors.greenTint,
65
+ hoverBorder: matrixColors.gray,
66
+ activeBg: matrixColors.greenTint,
67
+ activeBorder: matrixColors.gray,
68
+ selectedBg: matrixColors.white,
69
+ counterBg: matrixColors.gray,
70
+ primary: {
71
+ text: matrixColors.white,
72
+ bg: matrixColors.greenText,
73
+ border: matrixColors.greenText,
74
+ hoverBg: matrixColors.greenHover,
75
+ hoverBorder: matrixColors.greenHover,
76
+ selectedBg: matrixColors.greenHover,
77
+ disabledText: 'rgba(255, 255, 255, 0.8)',
78
+ disabledBg: '#94C9B9',
79
+ disabledBorder: '#94C9B9',
80
+ icon: matrixColors.white,
81
+ counterBg: 'rgba(0, 0, 0, 0.2)',
82
+ },
83
+ outline: {
84
+ text: matrixColors.greenText,
85
+ hoverText: matrixColors.white,
86
+ hoverBg: matrixColors.greenText,
87
+ hoverBorder: matrixColors.greenText,
88
+ hoverCounterBg: 'rgba(255, 255, 255, 0.2)',
89
+ selectedText: matrixColors.white,
90
+ selectedBg: matrixColors.greenHover,
91
+ selectedBorder: matrixColors.greenHover,
92
+ disabledText: matrixColors.gray,
93
+ disabledBg: matrixColors.greenTint,
94
+ disabledCounterBg: 'rgba(0, 0, 0, 0.05)',
95
+ counterBg: 'rgba(0, 0, 0, 0.05)',
96
+ counterFg: matrixColors.greenText,
97
+ hoverCounterFg: matrixColors.white,
98
+ disabledCounterFg: matrixColors.gray,
99
+ },
100
+ danger: {
101
+ text: '#d32f2f',
102
+ hoverText: matrixColors.white,
103
+ hoverBg: '#d32f2f',
104
+ hoverBorder: '#d32f2f',
105
+ hoverCounterBg: 'rgba(255, 255, 255, 0.2)',
106
+ selectedText: matrixColors.white,
107
+ selectedBg: '#b71c1c',
108
+ selectedBorder: '#b71c1c',
109
+ disabledText: 'rgba(211, 47, 47, 0.5)',
110
+ disabledBg: matrixColors.greenTint,
111
+ disabledCounterBg: 'rgba(211, 47, 47, 0.05)',
112
+ counterBg: 'rgba(211, 47, 47, 0.1)',
113
+ counterFg: '#d32f2f',
114
+ hoverCounterFg: matrixColors.white,
115
+ disabledCounterFg: 'rgba(211, 47, 47, 0.5)',
116
+ icon: '#d32f2f',
117
+ },
118
+ },
119
+ };
120
+ /* ── Dark-mode colour definitions ────────────────────────────────────── */
121
+ const matrixDark = {
122
+ canvas: {
123
+ default: matrixColors.black,
124
+ subtle: matrixColors.greenTerminal,
125
+ },
126
+ fg: {
127
+ default: '#C8E6C9',
128
+ muted: '#66BB6A',
129
+ onEmphasis: matrixColors.white,
130
+ },
131
+ accent: {
132
+ fg: matrixColors.greenPhosphor,
133
+ emphasis: matrixColors.greenGlow,
134
+ muted: matrixColors.greenAccent,
135
+ subtle: '#0A1F0A',
136
+ },
137
+ success: {
138
+ fg: '#56d364',
139
+ emphasis: '#238636',
140
+ muted: '#2ea043',
141
+ subtle: '#0f2a18',
142
+ },
143
+ attention: {
144
+ fg: '#ffea00',
145
+ emphasis: '#a78e00',
146
+ muted: '#ffd000',
147
+ subtle: '#332b00',
148
+ },
149
+ danger: {
150
+ fg: '#ff5a77',
151
+ emphasis: '#c62828',
152
+ muted: matrixColors.dangerAccent,
153
+ subtle: '#2f0f17',
154
+ },
155
+ severe: {
156
+ fg: '#ffad4d',
157
+ emphasis: '#c75b12',
158
+ muted: matrixColors.severeAccent,
159
+ subtle: '#302000',
160
+ },
161
+ done: {
162
+ fg: '#6af7ff',
163
+ emphasis: '#008b8b',
164
+ muted: matrixColors.doneAccent,
165
+ subtle: '#062327',
166
+ },
167
+ btn: {
168
+ text: '#C8E6C9',
169
+ bg: '#0A1F0A',
170
+ border: 'rgba(0, 255, 65, 0.15)',
171
+ hoverBg: '#122812',
172
+ hoverBorder: '#66BB6A',
173
+ activeBg: '#0A1F0A',
174
+ activeBorder: '#4A7856',
175
+ selectedBg: '#061206',
176
+ counterBg: '#122812',
177
+ primary: {
178
+ text: matrixColors.black,
179
+ bg: matrixColors.greenPhosphor,
180
+ border: 'rgba(0, 255, 65, 0.15)',
181
+ hoverBg: matrixColors.greenGlow,
182
+ hoverBorder: 'rgba(0, 255, 65, 0.15)',
183
+ selectedBg: matrixColors.greenGlow,
184
+ disabledText: 'rgba(13, 2, 8, 0.5)',
185
+ disabledBg: 'rgba(0, 255, 65, 0.35)',
186
+ disabledBorder: 'rgba(0, 255, 65, 0.2)',
187
+ icon: matrixColors.black,
188
+ counterBg: 'rgba(0, 0, 0, 0.2)',
189
+ },
190
+ outline: {
191
+ text: matrixColors.greenPhosphor,
192
+ hoverText: matrixColors.black,
193
+ hoverBg: matrixColors.greenPhosphor,
194
+ hoverBorder: matrixColors.greenPhosphor,
195
+ hoverCounterBg: 'rgba(0, 0, 0, 0.2)',
196
+ selectedText: matrixColors.black,
197
+ selectedBg: matrixColors.greenGlow,
198
+ selectedBorder: matrixColors.greenGlow,
199
+ disabledText: 'rgba(0, 255, 65, 0.5)',
200
+ disabledBg: 'rgba(0, 255, 65, 0.1)',
201
+ disabledCounterBg: 'rgba(0, 255, 65, 0.05)',
202
+ counterBg: 'rgba(0, 255, 65, 0.1)',
203
+ counterFg: matrixColors.greenPhosphor,
204
+ hoverCounterFg: matrixColors.black,
205
+ disabledCounterFg: 'rgba(0, 255, 65, 0.5)',
206
+ },
207
+ danger: {
208
+ text: '#f85149',
209
+ hoverText: matrixColors.white,
210
+ hoverBg: '#da3633',
211
+ hoverBorder: '#f85149',
212
+ hoverCounterBg: 'rgba(255, 255, 255, 0.2)',
213
+ selectedText: matrixColors.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: matrixColors.white,
222
+ disabledCounterFg: 'rgba(248, 81, 73, 0.5)',
223
+ icon: '#f85149',
224
+ },
225
+ },
226
+ };
227
+ /* ── Exports ─────────────────────────────────────────────────────────── */
228
+ /**
229
+ * Monospace font stack for the Matrix terminal aesthetic.
230
+ * Uses fonts pre-installed across macOS / Windows / Linux so no
231
+ * web-font loading is required.
232
+ */
233
+ const matrixFontFamily = '"SF Mono", "Cascadia Code", "Fira Code", Menlo, Consolas, "Liberation Mono", "Courier New", monospace';
234
+ /** Comprehensive Primer CSS-variable overrides for light & dark mode. */
235
+ export const matrixThemeStyles = buildThemeStyles(matrixLight, matrixDark, { fontFamily: matrixFontFamily });
@@ -1,10 +1,5 @@
1
- /**
2
- * The Primer theme object.
3
- *
4
- * Since theming is done entirely via CSS custom properties
5
- * (see `sandThemeStyles`), this is just the unmodified default Primer
6
- * theme kept for backward compatibility.
7
- */
1
+ export * from './sandThemeStyles';
2
+ /** The Primer theme object: Primer's default. */
8
3
  export declare const sandTheme: {
9
4
  animation: {
10
5
  easeOutCubic: string;
@@ -1086,6 +1081,4 @@ export declare const sandTheme: {
1086
1081
  }>;
1087
1082
  }>;
1088
1083
  };
1089
- /** Comprehensive Primer CSS-variable overrides for light & dark mode. */
1090
- export declare const sandThemeStyles: import("../css/createThemeCSSVars").ThemeStyles;
1091
1084
  export default sandTheme;