@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,256 +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
- * Sand Theme for Primer React.
7
- *
8
- * Warm, pale desert neutrals with a terracotta-clay accent — a calm,
9
- * editorial look inspired by Anthropic's book-like warmth. Uses a warm
10
- * transitional serif type stack for a natural, printed feel.
11
- * Theming is applied via **CSS custom-property overrides**.
6
+ * The sand theme for Primer React: its styles, from `./sandThemeStyles`,
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.
12
11
  */
13
12
  import { theme as primerTheme } from '@primer/react';
14
- import { sandColors } from '../colors/sandColors';
15
- import { buildThemeStyles } from '../css/createThemeCSSVars';
16
- /* ── Light-mode colour definitions ───────────────────────────────────── */
17
- const sandLight = {
18
- canvas: {
19
- default: sandColors.white,
20
- subtle: '#F1EAD2',
21
- },
22
- fg: {
23
- default: '#2B2118',
24
- muted: sandColors.gray,
25
- onEmphasis: '#FBF7EF',
26
- },
27
- accent: {
28
- fg: sandColors.sandText,
29
- emphasis: sandColors.sandText,
30
- muted: sandColors.sandAccent,
31
- subtle: sandColors.sandTint,
32
- },
33
- success: {
34
- fg: '#3E6B47',
35
- emphasis: '#3E6B47',
36
- muted: '#5E8A5E',
37
- subtle: '#E1EEE0',
38
- },
39
- attention: {
40
- fg: sandColors.attentionBrand,
41
- emphasis: sandColors.attentionBrand,
42
- muted: sandColors.attentionAccent,
43
- subtle: sandColors.attentionTint,
44
- },
45
- danger: {
46
- fg: sandColors.dangerBrand,
47
- emphasis: sandColors.dangerBrand,
48
- muted: sandColors.dangerAccent,
49
- subtle: sandColors.dangerTint,
50
- },
51
- severe: {
52
- fg: sandColors.severeBrand,
53
- emphasis: sandColors.severeBrand,
54
- muted: sandColors.severeAccent,
55
- subtle: sandColors.severeTint,
56
- },
57
- done: {
58
- fg: sandColors.doneBrand,
59
- emphasis: sandColors.doneBrand,
60
- muted: sandColors.doneAccent,
61
- subtle: sandColors.doneTint,
62
- },
63
- border: {
64
- default: '#DBCDB4',
65
- muted: '#E7DCC7',
66
- },
67
- btn: {
68
- text: '#2B2118',
69
- bg: '#FBF7EF',
70
- border: '#D3C3A6',
71
- hoverBg: sandColors.sandTint,
72
- hoverBorder: sandColors.gray,
73
- activeBg: sandColors.sandTint,
74
- activeBorder: sandColors.gray,
75
- selectedBg: '#FBF7EF',
76
- counterBg: sandColors.gray,
77
- primary: {
78
- text: '#FBF7EF',
79
- bg: sandColors.sandText,
80
- border: sandColors.sandText,
81
- hoverBg: sandColors.sandHover,
82
- hoverBorder: sandColors.sandHover,
83
- selectedBg: sandColors.sandHover,
84
- disabledText: 'rgba(255, 255, 255, 0.8)',
85
- disabledBg: '#D8C58A',
86
- disabledBorder: '#D8C58A',
87
- icon: '#FBF7EF',
88
- counterBg: 'rgba(0, 0, 0, 0.2)',
89
- },
90
- outline: {
91
- text: sandColors.sandText,
92
- hoverText: '#FBF7EF',
93
- hoverBg: sandColors.sandText,
94
- hoverBorder: sandColors.sandText,
95
- hoverCounterBg: 'rgba(255, 255, 255, 0.2)',
96
- selectedText: '#FBF7EF',
97
- selectedBg: sandColors.sandHover,
98
- selectedBorder: sandColors.sandHover,
99
- disabledText: sandColors.gray,
100
- disabledBg: sandColors.sandTint,
101
- disabledCounterBg: 'rgba(0, 0, 0, 0.05)',
102
- counterBg: 'rgba(0, 0, 0, 0.05)',
103
- counterFg: sandColors.sandText,
104
- hoverCounterFg: '#FBF7EF',
105
- disabledCounterFg: sandColors.gray,
106
- },
107
- danger: {
108
- text: '#B42318',
109
- hoverText: '#FBF7EF',
110
- hoverBg: '#B42318',
111
- hoverBorder: '#B42318',
112
- hoverCounterBg: 'rgba(255, 255, 255, 0.2)',
113
- selectedText: '#FBF7EF',
114
- selectedBg: '#8E1B12',
115
- selectedBorder: '#8E1B12',
116
- disabledText: 'rgba(180, 35, 24, 0.5)',
117
- disabledBg: sandColors.sandTint,
118
- disabledCounterBg: 'rgba(180, 35, 24, 0.05)',
119
- counterBg: 'rgba(180, 35, 24, 0.1)',
120
- counterFg: '#B42318',
121
- hoverCounterFg: '#FBF7EF',
122
- disabledCounterFg: 'rgba(180, 35, 24, 0.5)',
123
- icon: '#B42318',
124
- },
125
- },
126
- };
127
- /* ── Dark-mode colour definitions ────────────────────────────────────── */
128
- const sandDark = {
129
- canvas: {
130
- default: sandColors.black,
131
- subtle: '#2A2118',
132
- },
133
- fg: {
134
- default: '#EDE3D3',
135
- muted: '#B7A793',
136
- onEmphasis: '#FBF7EF',
137
- },
138
- accent: {
139
- fg: sandColors.sandBright,
140
- emphasis: '#8A6E10',
141
- muted: sandColors.sandBrand,
142
- subtle: '#33290F',
143
- },
144
- success: {
145
- fg: '#7CB07E',
146
- emphasis: '#3E6B47',
147
- muted: '#5E8A5E',
148
- subtle: '#16261A',
149
- },
150
- attention: {
151
- fg: '#E7C24E',
152
- emphasis: '#8A6D08',
153
- muted: sandColors.attentionAccent,
154
- subtle: '#2E2606',
155
- },
156
- danger: {
157
- fg: '#F08A70',
158
- emphasis: '#A8412A',
159
- muted: sandColors.dangerAccent,
160
- subtle: '#2E140E',
161
- },
162
- severe: {
163
- fg: '#E6A566',
164
- emphasis: '#A85E1E',
165
- muted: sandColors.severeAccent,
166
- subtle: '#2E1D0A',
167
- },
168
- done: {
169
- fg: '#B09AD0',
170
- emphasis: '#6A548F',
171
- muted: sandColors.doneAccent,
172
- subtle: '#1F1830',
173
- },
174
- btn: {
175
- text: '#EDE3D3',
176
- bg: '#2E2418',
177
- border: 'rgba(237, 227, 211, 0.12)',
178
- hoverBg: '#3A2E1E',
179
- hoverBorder: '#B7A793',
180
- activeBg: '#2E2418',
181
- activeBorder: '#8A7A63',
182
- selectedBg: '#241C12',
183
- counterBg: '#3A2E1E',
184
- primary: {
185
- text: '#211A12',
186
- bg: sandColors.sandBright,
187
- border: 'rgba(237, 227, 211, 0.12)',
188
- hoverBg: sandColors.sandAccent,
189
- hoverBorder: 'rgba(237, 227, 211, 0.12)',
190
- selectedBg: sandColors.sandAccent,
191
- disabledText: 'rgba(33, 26, 18, 0.5)',
192
- disabledBg: 'rgba(236, 217, 143, 0.35)',
193
- disabledBorder: 'rgba(236, 217, 143, 0.2)',
194
- icon: '#211A12',
195
- counterBg: 'rgba(0, 0, 0, 0.2)',
196
- },
197
- outline: {
198
- text: sandColors.sandBright,
199
- hoverText: '#211A12',
200
- hoverBg: sandColors.sandBright,
201
- hoverBorder: sandColors.sandBright,
202
- hoverCounterBg: 'rgba(0, 0, 0, 0.2)',
203
- selectedText: '#211A12',
204
- selectedBg: sandColors.sandAccent,
205
- selectedBorder: sandColors.sandAccent,
206
- disabledText: 'rgba(236, 217, 143, 0.5)',
207
- disabledBg: 'rgba(236, 217, 143, 0.1)',
208
- disabledCounterBg: 'rgba(236, 217, 143, 0.05)',
209
- counterBg: 'rgba(236, 217, 143, 0.1)',
210
- counterFg: sandColors.sandBright,
211
- hoverCounterFg: '#211A12',
212
- disabledCounterFg: 'rgba(236, 217, 143, 0.5)',
213
- },
214
- danger: {
215
- text: '#f85149',
216
- hoverText: '#FBF7EF',
217
- hoverBg: '#da3633',
218
- hoverBorder: '#f85149',
219
- hoverCounterBg: 'rgba(255, 255, 255, 0.2)',
220
- selectedText: '#FBF7EF',
221
- selectedBg: '#b62324',
222
- selectedBorder: '#ff7b72',
223
- disabledText: 'rgba(248, 81, 73, 0.5)',
224
- disabledBg: 'rgba(248, 81, 73, 0.1)',
225
- disabledCounterBg: 'rgba(248, 81, 73, 0.05)',
226
- counterBg: 'rgba(248, 81, 73, 0.1)',
227
- counterFg: '#f85149',
228
- hoverCounterFg: '#FBF7EF',
229
- disabledCounterFg: 'rgba(248, 81, 73, 0.5)',
230
- icon: '#f85149',
231
- },
232
- },
233
- };
234
- /* ── Exports ─────────────────────────────────────────────────────────── */
235
- /**
236
- * The Primer theme object.
237
- *
238
- * Since theming is done entirely via CSS custom properties
239
- * (see `sandThemeStyles`), this is just the unmodified default Primer
240
- * theme kept for backward compatibility.
241
- */
13
+ export * from './sandThemeStyles';
14
+ /** The Primer theme object: Primer's default. */
242
15
  export const sandTheme = primerTheme;
243
- /**
244
- * Warm humanist-serif font stack for the Sand aesthetic.
245
- *
246
- * Leads with Georgia — the most reliable warm transitional serif across
247
- * macOS / Windows / Linux — so the intended editorial, book-like feel
248
- * (Anthropic-style) renders consistently everywhere without web-font
249
- * loading (same no-download approach as the Matrix monospace stack).
250
- */
251
- const sandFontFamily = 'Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Cambria, serif';
252
- /** Comprehensive Primer CSS-variable overrides for light & dark mode. */
253
- export const sandThemeStyles = buildThemeStyles(sandLight, sandDark, {
254
- fontFamily: sandFontFamily,
255
- });
256
16
  export default sandTheme;
@@ -0,0 +1,2 @@
1
+ /** Comprehensive Primer CSS-variable overrides for light & dark mode. */
2
+ export declare const sandThemeStyles: import("../css/createThemeCSSVars").ThemeStyles;
@@ -0,0 +1,246 @@
1
+ /*
2
+ * Copyright (c) 2023-2025 Datalayer, Inc.
3
+ * Distributed under the terms of the Modified BSD License.
4
+ */
5
+ /**
6
+ * Sand Theme for Primer React.
7
+ *
8
+ * Warm, pale desert neutrals with a terracotta-clay accent — a calm,
9
+ * editorial look inspired by Anthropic's book-like warmth. Uses a warm
10
+ * transitional serif type stack for a natural, printed feel.
11
+ * Theming is applied via **CSS custom-property overrides**.
12
+ */
13
+ import { sandColors } from '../colors/sandColors';
14
+ import { buildThemeStyles } from '../css/createThemeCSSVars';
15
+ /* ── Light-mode colour definitions ───────────────────────────────────── */
16
+ const sandLight = {
17
+ canvas: {
18
+ default: sandColors.white,
19
+ subtle: '#F1EAD2',
20
+ },
21
+ fg: {
22
+ default: '#2B2118',
23
+ muted: sandColors.gray,
24
+ onEmphasis: '#FBF7EF',
25
+ },
26
+ accent: {
27
+ fg: sandColors.sandText,
28
+ emphasis: sandColors.sandText,
29
+ muted: sandColors.sandAccent,
30
+ subtle: sandColors.sandTint,
31
+ },
32
+ success: {
33
+ fg: '#3E6B47',
34
+ emphasis: '#3E6B47',
35
+ muted: '#5E8A5E',
36
+ subtle: '#E1EEE0',
37
+ },
38
+ attention: {
39
+ fg: sandColors.attentionBrand,
40
+ emphasis: sandColors.attentionBrand,
41
+ muted: sandColors.attentionAccent,
42
+ subtle: sandColors.attentionTint,
43
+ },
44
+ danger: {
45
+ fg: sandColors.dangerBrand,
46
+ emphasis: sandColors.dangerBrand,
47
+ muted: sandColors.dangerAccent,
48
+ subtle: sandColors.dangerTint,
49
+ },
50
+ severe: {
51
+ fg: sandColors.severeBrand,
52
+ emphasis: sandColors.severeBrand,
53
+ muted: sandColors.severeAccent,
54
+ subtle: sandColors.severeTint,
55
+ },
56
+ done: {
57
+ fg: sandColors.doneBrand,
58
+ emphasis: sandColors.doneBrand,
59
+ muted: sandColors.doneAccent,
60
+ subtle: sandColors.doneTint,
61
+ },
62
+ border: {
63
+ default: '#DBCDB4',
64
+ muted: '#E7DCC7',
65
+ },
66
+ btn: {
67
+ text: '#2B2118',
68
+ bg: '#FBF7EF',
69
+ border: '#D3C3A6',
70
+ hoverBg: sandColors.sandTint,
71
+ hoverBorder: sandColors.gray,
72
+ activeBg: sandColors.sandTint,
73
+ activeBorder: sandColors.gray,
74
+ selectedBg: '#FBF7EF',
75
+ counterBg: sandColors.gray,
76
+ primary: {
77
+ text: '#FBF7EF',
78
+ bg: sandColors.sandText,
79
+ border: sandColors.sandText,
80
+ hoverBg: sandColors.sandHover,
81
+ hoverBorder: sandColors.sandHover,
82
+ selectedBg: sandColors.sandHover,
83
+ disabledText: 'rgba(255, 255, 255, 0.8)',
84
+ disabledBg: '#D8C58A',
85
+ disabledBorder: '#D8C58A',
86
+ icon: '#FBF7EF',
87
+ counterBg: 'rgba(0, 0, 0, 0.2)',
88
+ },
89
+ outline: {
90
+ text: sandColors.sandText,
91
+ hoverText: '#FBF7EF',
92
+ hoverBg: sandColors.sandText,
93
+ hoverBorder: sandColors.sandText,
94
+ hoverCounterBg: 'rgba(255, 255, 255, 0.2)',
95
+ selectedText: '#FBF7EF',
96
+ selectedBg: sandColors.sandHover,
97
+ selectedBorder: sandColors.sandHover,
98
+ disabledText: sandColors.gray,
99
+ disabledBg: sandColors.sandTint,
100
+ disabledCounterBg: 'rgba(0, 0, 0, 0.05)',
101
+ counterBg: 'rgba(0, 0, 0, 0.05)',
102
+ counterFg: sandColors.sandText,
103
+ hoverCounterFg: '#FBF7EF',
104
+ disabledCounterFg: sandColors.gray,
105
+ },
106
+ danger: {
107
+ text: '#B42318',
108
+ hoverText: '#FBF7EF',
109
+ hoverBg: '#B42318',
110
+ hoverBorder: '#B42318',
111
+ hoverCounterBg: 'rgba(255, 255, 255, 0.2)',
112
+ selectedText: '#FBF7EF',
113
+ selectedBg: '#8E1B12',
114
+ selectedBorder: '#8E1B12',
115
+ disabledText: 'rgba(180, 35, 24, 0.5)',
116
+ disabledBg: sandColors.sandTint,
117
+ disabledCounterBg: 'rgba(180, 35, 24, 0.05)',
118
+ counterBg: 'rgba(180, 35, 24, 0.1)',
119
+ counterFg: '#B42318',
120
+ hoverCounterFg: '#FBF7EF',
121
+ disabledCounterFg: 'rgba(180, 35, 24, 0.5)',
122
+ icon: '#B42318',
123
+ },
124
+ },
125
+ };
126
+ /* ── Dark-mode colour definitions ────────────────────────────────────── */
127
+ const sandDark = {
128
+ canvas: {
129
+ default: sandColors.black,
130
+ subtle: '#2A2118',
131
+ },
132
+ fg: {
133
+ default: '#EDE3D3',
134
+ muted: '#B7A793',
135
+ onEmphasis: '#FBF7EF',
136
+ },
137
+ accent: {
138
+ fg: sandColors.sandBright,
139
+ emphasis: '#8A6E10',
140
+ muted: sandColors.sandBrand,
141
+ subtle: '#33290F',
142
+ },
143
+ success: {
144
+ fg: '#7CB07E',
145
+ emphasis: '#3E6B47',
146
+ muted: '#5E8A5E',
147
+ subtle: '#16261A',
148
+ },
149
+ attention: {
150
+ fg: '#E7C24E',
151
+ emphasis: '#8A6D08',
152
+ muted: sandColors.attentionAccent,
153
+ subtle: '#2E2606',
154
+ },
155
+ danger: {
156
+ fg: '#F08A70',
157
+ emphasis: '#A8412A',
158
+ muted: sandColors.dangerAccent,
159
+ subtle: '#2E140E',
160
+ },
161
+ severe: {
162
+ fg: '#E6A566',
163
+ emphasis: '#A85E1E',
164
+ muted: sandColors.severeAccent,
165
+ subtle: '#2E1D0A',
166
+ },
167
+ done: {
168
+ fg: '#B09AD0',
169
+ emphasis: '#6A548F',
170
+ muted: sandColors.doneAccent,
171
+ subtle: '#1F1830',
172
+ },
173
+ btn: {
174
+ text: '#EDE3D3',
175
+ bg: '#2E2418',
176
+ border: 'rgba(237, 227, 211, 0.12)',
177
+ hoverBg: '#3A2E1E',
178
+ hoverBorder: '#B7A793',
179
+ activeBg: '#2E2418',
180
+ activeBorder: '#8A7A63',
181
+ selectedBg: '#241C12',
182
+ counterBg: '#3A2E1E',
183
+ primary: {
184
+ text: '#211A12',
185
+ bg: sandColors.sandBright,
186
+ border: 'rgba(237, 227, 211, 0.12)',
187
+ hoverBg: sandColors.sandAccent,
188
+ hoverBorder: 'rgba(237, 227, 211, 0.12)',
189
+ selectedBg: sandColors.sandAccent,
190
+ disabledText: 'rgba(33, 26, 18, 0.5)',
191
+ disabledBg: 'rgba(236, 217, 143, 0.35)',
192
+ disabledBorder: 'rgba(236, 217, 143, 0.2)',
193
+ icon: '#211A12',
194
+ counterBg: 'rgba(0, 0, 0, 0.2)',
195
+ },
196
+ outline: {
197
+ text: sandColors.sandBright,
198
+ hoverText: '#211A12',
199
+ hoverBg: sandColors.sandBright,
200
+ hoverBorder: sandColors.sandBright,
201
+ hoverCounterBg: 'rgba(0, 0, 0, 0.2)',
202
+ selectedText: '#211A12',
203
+ selectedBg: sandColors.sandAccent,
204
+ selectedBorder: sandColors.sandAccent,
205
+ disabledText: 'rgba(236, 217, 143, 0.5)',
206
+ disabledBg: 'rgba(236, 217, 143, 0.1)',
207
+ disabledCounterBg: 'rgba(236, 217, 143, 0.05)',
208
+ counterBg: 'rgba(236, 217, 143, 0.1)',
209
+ counterFg: sandColors.sandBright,
210
+ hoverCounterFg: '#211A12',
211
+ disabledCounterFg: 'rgba(236, 217, 143, 0.5)',
212
+ },
213
+ danger: {
214
+ text: '#f85149',
215
+ hoverText: '#FBF7EF',
216
+ hoverBg: '#da3633',
217
+ hoverBorder: '#f85149',
218
+ hoverCounterBg: 'rgba(255, 255, 255, 0.2)',
219
+ selectedText: '#FBF7EF',
220
+ selectedBg: '#b62324',
221
+ selectedBorder: '#ff7b72',
222
+ disabledText: 'rgba(248, 81, 73, 0.5)',
223
+ disabledBg: 'rgba(248, 81, 73, 0.1)',
224
+ disabledCounterBg: 'rgba(248, 81, 73, 0.05)',
225
+ counterBg: 'rgba(248, 81, 73, 0.1)',
226
+ counterFg: '#f85149',
227
+ hoverCounterFg: '#FBF7EF',
228
+ disabledCounterFg: 'rgba(248, 81, 73, 0.5)',
229
+ icon: '#f85149',
230
+ },
231
+ },
232
+ };
233
+ /* ── Exports ─────────────────────────────────────────────────────────── */
234
+ /**
235
+ * Warm humanist-serif font stack for the Sand aesthetic.
236
+ *
237
+ * Leads with Georgia — the most reliable warm transitional serif across
238
+ * macOS / Windows / Linux — so the intended editorial, book-like feel
239
+ * (Anthropic-style) renders consistently everywhere without web-font
240
+ * loading (same no-download approach as the Matrix monospace stack).
241
+ */
242
+ const sandFontFamily = 'Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Cambria, serif';
243
+ /** Comprehensive Primer CSS-variable overrides for light & dark mode. */
244
+ export const sandThemeStyles = buildThemeStyles(sandLight, sandDark, {
245
+ fontFamily: sandFontFamily,
246
+ });
@@ -1,10 +1,5 @@
1
- /**
2
- * The Primer theme object.
3
- *
4
- * Since theming is now done entirely via CSS custom properties
5
- * (see `spatialThemeStyles`), this is just the unmodified
6
- * default Primer theme kept for backward compatibility.
7
- */
1
+ export * from './spatialThemeStyles';
2
+ /** The Primer theme object: Primer's default. */
8
3
  export declare const spatialTheme: {
9
4
  animation: {
10
5
  easeOutCubic: string;
@@ -1086,6 +1081,4 @@ export declare const spatialTheme: {
1086
1081
  }>;
1087
1082
  }>;
1088
1083
  };
1089
- /** Comprehensive Primer CSS-variable overrides for light & dark mode. */
1090
- export declare const spatialThemeStyles: import("../css/createThemeCSSVars").ThemeStyles;
1091
1084
  export default spatialTheme;