@leitware/composables 3.4.1 → 3.6.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.
- package/README.md +17 -7
- package/dist/presets/gutenberg.css +131 -79
- package/dist/presets/sponder.css +350 -0
- package/dist/styles.css +1 -1
- package/package.json +6 -1
- package/src/_internal/checkbox.tsx +2 -2
- package/src/_internal/kbd.tsx +1 -1
- package/src/_internal/radio-group.tsx +1 -1
- package/src/styles/presets/gutenberg.css +131 -79
- package/src/styles/presets/sponder.css +350 -0
- package/src/styles/presets-data/gutenberg.ts +95 -43
- package/src/styles/presets-data/index.ts +10 -1
- package/src/styles/presets-data/sponder.ts +121 -0
- package/src/styles/tokens/components.css +7 -0
|
@@ -0,0 +1,350 @@
|
|
|
1
|
+
/* ============================================================================
|
|
2
|
+
@leitware/composables - Sponder Preset
|
|
3
|
+
============================================================================
|
|
4
|
+
Dark slate surfaces, green brand accents, and Inter and Geist typography.
|
|
5
|
+
|
|
6
|
+
HOW TO USE:
|
|
7
|
+
1. Copy this file into your project's global CSS (e.g. index.css)
|
|
8
|
+
2. Or import the preset: @import "@leitware/composables/presets/sponder.css";
|
|
9
|
+
3. Add class="dark" to <html> for dark mode.
|
|
10
|
+
============================================================================ */
|
|
11
|
+
|
|
12
|
+
:root {
|
|
13
|
+
--bg-default: #101318ff;
|
|
14
|
+
--bg-inverse: #e7e4deff;
|
|
15
|
+
--bg-muted: #171b21ff;
|
|
16
|
+
--bg-surface-default: #12161dff;
|
|
17
|
+
--bg-surface-popover: #171c23ff;
|
|
18
|
+
--bg-surface-accent: #1c222aff;
|
|
19
|
+
--bg-surface-field: #242a33ff;
|
|
20
|
+
--bg-surface-input: #2b323cff;
|
|
21
|
+
--bg-surface-info: #112031ff;
|
|
22
|
+
--bg-surface-success: #0f2118ff;
|
|
23
|
+
--bg-surface-warning: #251c0dff;
|
|
24
|
+
--bg-surface-critical: #261615ff;
|
|
25
|
+
--bg-surface-emphasis: #1c1731ff;
|
|
26
|
+
--bg-surface-inverse: #e7e4deff;
|
|
27
|
+
--bg-surface-transparent: #ffffff0d;
|
|
28
|
+
--bg-overlay: rgba(2, 6, 23, 0.62);
|
|
29
|
+
--bg-surface-brand: #2a1f16ff;
|
|
30
|
+
--bg-surface-brand-2: #14202dff;
|
|
31
|
+
--bg-surface-brand-3: #201a2bff;
|
|
32
|
+
--bg-surface-brand-4: #142118ff;
|
|
33
|
+
--bg-surface-brand-5: #271b14ff;
|
|
34
|
+
--bg-surface-hover: #1a1f26ff;
|
|
35
|
+
--bg-fill-default: #12161dff;
|
|
36
|
+
--bg-fill-primary: #f2f0ebff;
|
|
37
|
+
--bg-fill-primary-hover: #ffffffff;
|
|
38
|
+
--bg-fill-selected: #f2f0ebff;
|
|
39
|
+
--bg-fill-brand: #52a276ff;
|
|
40
|
+
--bg-fill-brand-2: #6b83f5ff;
|
|
41
|
+
--bg-fill-brand-3: #f0a968ff;
|
|
42
|
+
--bg-fill-brand-4: #a198eaff;
|
|
43
|
+
--bg-fill-brand-5: #a7d8ffff;
|
|
44
|
+
--bg-fill-info: #3b9cf5ff;
|
|
45
|
+
--bg-fill-success: #55c783ff;
|
|
46
|
+
--bg-fill-warning: #e4a934ff;
|
|
47
|
+
--bg-fill-critical: #ec7c72ff;
|
|
48
|
+
--bg-fill-emphasis: #8b73f2ff;
|
|
49
|
+
--bg-fill-transparent: #ffffff0d;
|
|
50
|
+
--bg-fill-secondary: #1a1f26ff;
|
|
51
|
+
--bg-fill-secondary-hover: #20262eff;
|
|
52
|
+
--bg-fill-secondary-inverse: #101318ff;
|
|
53
|
+
--text-default: #f2f0ebff;
|
|
54
|
+
--text-secondary: #cad1daff;
|
|
55
|
+
--text-muted: #8c95a2ff;
|
|
56
|
+
--text-disabled: #555e6bff;
|
|
57
|
+
--text-inverse: #101318ff;
|
|
58
|
+
--text-on-fill-primary: #101318ff;
|
|
59
|
+
--text-on-fill-selected: #101318ff;
|
|
60
|
+
--text-on-fill-brand: #101318ff;
|
|
61
|
+
--text-on-fill-secondary: #f2f0ebff;
|
|
62
|
+
--text-on-surface-accent: #f2f0ebff;
|
|
63
|
+
--text-info: #8cc5ffff;
|
|
64
|
+
--text-success: #8ee2afff;
|
|
65
|
+
--text-warning: #f6c76eff;
|
|
66
|
+
--text-critical: #ffaaa2ff;
|
|
67
|
+
--text-emphasis: #c4b5ffff;
|
|
68
|
+
--text-brand: #9be0b7ff;
|
|
69
|
+
--text-brand-2: #b6c5ffff;
|
|
70
|
+
--text-brand-3: #f4c28eff;
|
|
71
|
+
--text-brand-4: #cdc5ffff;
|
|
72
|
+
--text-brand-5: #bfe7ffff;
|
|
73
|
+
--text-link: #f2f0ebff;
|
|
74
|
+
--icon-default: #f2f0ebff;
|
|
75
|
+
--icon-secondary: #cad1daff;
|
|
76
|
+
--icon-disabled: #4c5561ff;
|
|
77
|
+
--icon-inverse: #101318ff;
|
|
78
|
+
--icon-info: #3b9cf5ff;
|
|
79
|
+
--icon-success: #55c783ff;
|
|
80
|
+
--icon-warning: #e4a934ff;
|
|
81
|
+
--icon-critical: #ec7c72ff;
|
|
82
|
+
--icon-emphasis: #8b73f2ff;
|
|
83
|
+
--icon-brand: #52a276ff;
|
|
84
|
+
--icon-brand-2: #6b83f5ff;
|
|
85
|
+
--icon-brand-3: #f0a968ff;
|
|
86
|
+
--icon-brand-4: #a198eaff;
|
|
87
|
+
--icon-brand-5: #a7d8ffff;
|
|
88
|
+
--border-default: #2a3038ff;
|
|
89
|
+
--border-secondary: #20262eff;
|
|
90
|
+
--border-input: #00000000;
|
|
91
|
+
--border-tertiary: #363d47ff;
|
|
92
|
+
--border-disabled: #20262eff;
|
|
93
|
+
--border-inverse: #f2f0ebff;
|
|
94
|
+
--border-focus: #6b83f5ff;
|
|
95
|
+
--border-brand: #52a276ff;
|
|
96
|
+
--border-brand-2: #6b83f5ff;
|
|
97
|
+
--border-brand-3: #f0a968ff;
|
|
98
|
+
--border-brand-4: #a198eaff;
|
|
99
|
+
--border-brand-5: #a7d8ffff;
|
|
100
|
+
--border-info: #3b9cf5ff;
|
|
101
|
+
--border-success: #55c783ff;
|
|
102
|
+
--border-warning: #e4a934ff;
|
|
103
|
+
--border-critical: #ec7c72ff;
|
|
104
|
+
--border-emphasis: #8b73f2ff;
|
|
105
|
+
--chart-1: #52a276ff;
|
|
106
|
+
--chart-2: #6b83f5ff;
|
|
107
|
+
--chart-3: #f0a968ff;
|
|
108
|
+
--chart-4: #a198eaff;
|
|
109
|
+
--chart-5: #3b9cf5ff;
|
|
110
|
+
--sidebar-background: #12161dff;
|
|
111
|
+
--sidebar-foreground: #f2f0ebff;
|
|
112
|
+
--sidebar-primary: #f2f0ebff;
|
|
113
|
+
--sidebar-primary-foreground: #101318ff;
|
|
114
|
+
--sidebar-accent: #1a1f26ff;
|
|
115
|
+
--sidebar-accent-foreground: #f2f0ebff;
|
|
116
|
+
--sidebar-border: #222831ff;
|
|
117
|
+
--sidebar-ring: #6b83f5ff;
|
|
118
|
+
--spacing: 0.25rem;
|
|
119
|
+
--border-width-base: 0.0625rem;
|
|
120
|
+
--radius: 0.5rem;
|
|
121
|
+
--font-size-base: 1rem;
|
|
122
|
+
--leading-base: 1.33;
|
|
123
|
+
--letter-spacing-base: 0.025em;
|
|
124
|
+
--opacity-disabled: 0.5;
|
|
125
|
+
--shadow-offset-y: 1px;
|
|
126
|
+
--shadow-blur: 2px;
|
|
127
|
+
--shadow-spread: 1px;
|
|
128
|
+
--shadow-base-color: rgba(0, 0, 0, 0.1);
|
|
129
|
+
--container-sm: 576px;
|
|
130
|
+
--container-md: 768px;
|
|
131
|
+
--container-lg: 1056px;
|
|
132
|
+
--container-xl: 1248px;
|
|
133
|
+
--container-2xl: 1440px;
|
|
134
|
+
--dropdown-offset: 4;
|
|
135
|
+
--overlay-offset: 4;
|
|
136
|
+
--font-sans: 'Inter Variable', 'Inter', 'Helvetica Neue', Arial, sans-serif;
|
|
137
|
+
--font-heading: 'Geist Variable', 'Inter Variable', 'Helvetica Neue', Arial, sans-serif;
|
|
138
|
+
--font-brand: 'Geist Variable', 'Inter Variable', 'Helvetica Neue', Arial, sans-serif;
|
|
139
|
+
--button-radius: var(--radius-md);
|
|
140
|
+
--card-radius: var(--radius-lg);
|
|
141
|
+
--card-padding: calc(var(--spacing) * 4);
|
|
142
|
+
--input-radius: var(--radius-md);
|
|
143
|
+
--control-size-md: calc(var(--spacing) * 7);
|
|
144
|
+
--badge-radius: var(--radius-4xl);
|
|
145
|
+
--motion-duration-fast: 100ms;
|
|
146
|
+
--motion-duration-normal: 200ms;
|
|
147
|
+
--motion-duration-slow: 300ms;
|
|
148
|
+
--motion-duration-color: var(--motion-duration-fast);
|
|
149
|
+
--motion-duration-interaction: var(--motion-duration-fast);
|
|
150
|
+
--motion-duration-disclosure: var(--motion-duration-normal);
|
|
151
|
+
--motion-duration-overlay: var(--motion-duration-fast);
|
|
152
|
+
--motion-ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
|
|
153
|
+
--motion-ease-accelerate: cubic-bezier(0.4, 0, 1, 1);
|
|
154
|
+
--motion-ease-decelerate: cubic-bezier(0, 0, 0.2, 1);
|
|
155
|
+
--motion-ease-linear: linear;
|
|
156
|
+
--transition-default: var(--motion-duration-normal) var(--motion-ease-standard);
|
|
157
|
+
--transition-fast: var(--motion-duration-fast) var(--motion-ease-standard);
|
|
158
|
+
--transition-slow: var(--motion-duration-slow) var(--motion-ease-decelerate);
|
|
159
|
+
--hover-transform: none;
|
|
160
|
+
--hover-shadow: var(--shadow-md);
|
|
161
|
+
--active-scale: 0.98;
|
|
162
|
+
--background: var(--bg-default);
|
|
163
|
+
--foreground: var(--text-default);
|
|
164
|
+
--card: var(--bg-surface-default);
|
|
165
|
+
--card-foreground: var(--text-default);
|
|
166
|
+
--popover: var(--bg-surface-popover);
|
|
167
|
+
--popover-foreground: var(--text-default);
|
|
168
|
+
--primary: var(--bg-fill-primary);
|
|
169
|
+
--primary-foreground: var(--text-on-fill-primary);
|
|
170
|
+
--secondary: var(--bg-fill-secondary);
|
|
171
|
+
--secondary-foreground: var(--text-on-fill-secondary);
|
|
172
|
+
--muted: var(--bg-muted);
|
|
173
|
+
--muted-foreground: var(--text-muted);
|
|
174
|
+
--accent: var(--bg-surface-accent);
|
|
175
|
+
--accent-foreground: var(--text-on-surface-accent);
|
|
176
|
+
--destructive: var(--bg-fill-critical);
|
|
177
|
+
--border: var(--border-default);
|
|
178
|
+
--input: var(--border-input);
|
|
179
|
+
--ring: var(--border-focus);
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
.dark {
|
|
183
|
+
--bg-default: #101318ff;
|
|
184
|
+
--bg-inverse: #e7e4deff;
|
|
185
|
+
--bg-muted: #171b21ff;
|
|
186
|
+
--bg-surface-default: #12161dff;
|
|
187
|
+
--bg-surface-popover: #171c23ff;
|
|
188
|
+
--bg-surface-accent: #1c222aff;
|
|
189
|
+
--bg-surface-field: #242a33ff;
|
|
190
|
+
--bg-surface-input: #2b323cff;
|
|
191
|
+
--bg-surface-info: #112031ff;
|
|
192
|
+
--bg-surface-success: #0f2118ff;
|
|
193
|
+
--bg-surface-warning: #251c0dff;
|
|
194
|
+
--bg-surface-critical: #261615ff;
|
|
195
|
+
--bg-surface-emphasis: #1c1731ff;
|
|
196
|
+
--bg-surface-inverse: #e7e4deff;
|
|
197
|
+
--bg-surface-transparent: #ffffff0d;
|
|
198
|
+
--bg-overlay: rgba(2, 6, 23, 0.62);
|
|
199
|
+
--bg-surface-brand: #2a1f16ff;
|
|
200
|
+
--bg-surface-brand-2: #14202dff;
|
|
201
|
+
--bg-surface-brand-3: #201a2bff;
|
|
202
|
+
--bg-surface-brand-4: #142118ff;
|
|
203
|
+
--bg-surface-brand-5: #271b14ff;
|
|
204
|
+
--bg-surface-hover: #1a1f26ff;
|
|
205
|
+
--bg-fill-default: #12161dff;
|
|
206
|
+
--bg-fill-primary: #f2f0ebff;
|
|
207
|
+
--bg-fill-primary-hover: #ffffffff;
|
|
208
|
+
--bg-fill-selected: #f2f0ebff;
|
|
209
|
+
--bg-fill-brand: #52a276ff;
|
|
210
|
+
--bg-fill-brand-2: #6b83f5ff;
|
|
211
|
+
--bg-fill-brand-3: #f0a968ff;
|
|
212
|
+
--bg-fill-brand-4: #a198eaff;
|
|
213
|
+
--bg-fill-brand-5: #a7d8ffff;
|
|
214
|
+
--bg-fill-info: #3b9cf5ff;
|
|
215
|
+
--bg-fill-success: #55c783ff;
|
|
216
|
+
--bg-fill-warning: #e4a934ff;
|
|
217
|
+
--bg-fill-critical: #ec7c72ff;
|
|
218
|
+
--bg-fill-emphasis: #8b73f2ff;
|
|
219
|
+
--bg-fill-transparent: #ffffff0d;
|
|
220
|
+
--bg-fill-secondary: #1a1f26ff;
|
|
221
|
+
--bg-fill-secondary-hover: #20262eff;
|
|
222
|
+
--bg-fill-secondary-inverse: #101318ff;
|
|
223
|
+
--text-default: #f2f0ebff;
|
|
224
|
+
--text-secondary: #cad1daff;
|
|
225
|
+
--text-muted: #8c95a2ff;
|
|
226
|
+
--text-disabled: #555e6bff;
|
|
227
|
+
--text-inverse: #101318ff;
|
|
228
|
+
--text-on-fill-primary: #101318ff;
|
|
229
|
+
--text-on-fill-selected: #101318ff;
|
|
230
|
+
--text-on-fill-brand: #101318ff;
|
|
231
|
+
--text-on-fill-secondary: #f2f0ebff;
|
|
232
|
+
--text-on-surface-accent: #f2f0ebff;
|
|
233
|
+
--text-info: #8cc5ffff;
|
|
234
|
+
--text-success: #8ee2afff;
|
|
235
|
+
--text-warning: #f6c76eff;
|
|
236
|
+
--text-critical: #ffaaa2ff;
|
|
237
|
+
--text-emphasis: #c4b5ffff;
|
|
238
|
+
--text-brand: #9be0b7ff;
|
|
239
|
+
--text-brand-2: #b6c5ffff;
|
|
240
|
+
--text-brand-3: #f4c28eff;
|
|
241
|
+
--text-brand-4: #cdc5ffff;
|
|
242
|
+
--text-brand-5: #bfe7ffff;
|
|
243
|
+
--text-link: #f2f0ebff;
|
|
244
|
+
--icon-default: #f2f0ebff;
|
|
245
|
+
--icon-secondary: #cad1daff;
|
|
246
|
+
--icon-disabled: #4c5561ff;
|
|
247
|
+
--icon-inverse: #101318ff;
|
|
248
|
+
--icon-info: #3b9cf5ff;
|
|
249
|
+
--icon-success: #55c783ff;
|
|
250
|
+
--icon-warning: #e4a934ff;
|
|
251
|
+
--icon-critical: #ec7c72ff;
|
|
252
|
+
--icon-emphasis: #8b73f2ff;
|
|
253
|
+
--icon-brand: #52a276ff;
|
|
254
|
+
--icon-brand-2: #6b83f5ff;
|
|
255
|
+
--icon-brand-3: #f0a968ff;
|
|
256
|
+
--icon-brand-4: #a198eaff;
|
|
257
|
+
--icon-brand-5: #a7d8ffff;
|
|
258
|
+
--border-default: #2a3038ff;
|
|
259
|
+
--border-secondary: #20262eff;
|
|
260
|
+
--border-input: #00000000;
|
|
261
|
+
--border-tertiary: #363d47ff;
|
|
262
|
+
--border-disabled: #20262eff;
|
|
263
|
+
--border-inverse: #f2f0ebff;
|
|
264
|
+
--border-focus: #6b83f5ff;
|
|
265
|
+
--border-brand: #52a276ff;
|
|
266
|
+
--border-brand-2: #6b83f5ff;
|
|
267
|
+
--border-brand-3: #f0a968ff;
|
|
268
|
+
--border-brand-4: #a198eaff;
|
|
269
|
+
--border-brand-5: #a7d8ffff;
|
|
270
|
+
--border-info: #3b9cf5ff;
|
|
271
|
+
--border-success: #55c783ff;
|
|
272
|
+
--border-warning: #e4a934ff;
|
|
273
|
+
--border-critical: #ec7c72ff;
|
|
274
|
+
--border-emphasis: #8b73f2ff;
|
|
275
|
+
--chart-1: #52a276ff;
|
|
276
|
+
--chart-2: #6b83f5ff;
|
|
277
|
+
--chart-3: #f0a968ff;
|
|
278
|
+
--chart-4: #a198eaff;
|
|
279
|
+
--chart-5: #3b9cf5ff;
|
|
280
|
+
--sidebar-background: #12161dff;
|
|
281
|
+
--sidebar-foreground: #f2f0ebff;
|
|
282
|
+
--sidebar-primary: #f2f0ebff;
|
|
283
|
+
--sidebar-primary-foreground: #101318ff;
|
|
284
|
+
--sidebar-accent: #1a1f26ff;
|
|
285
|
+
--sidebar-accent-foreground: #f2f0ebff;
|
|
286
|
+
--sidebar-border: #222831ff;
|
|
287
|
+
--sidebar-ring: #6b83f5ff;
|
|
288
|
+
--spacing: 0.25rem;
|
|
289
|
+
--border-width-base: 0.0625rem;
|
|
290
|
+
--radius: 0.5rem;
|
|
291
|
+
--font-size-base: 1rem;
|
|
292
|
+
--leading-base: 1.33;
|
|
293
|
+
--letter-spacing-base: 0.025em;
|
|
294
|
+
--opacity-disabled: 0.5;
|
|
295
|
+
--shadow-offset-y: 1px;
|
|
296
|
+
--shadow-blur: 2px;
|
|
297
|
+
--shadow-spread: 1px;
|
|
298
|
+
--shadow-base-color: rgba(0, 0, 0, 0.1);
|
|
299
|
+
--container-sm: 576px;
|
|
300
|
+
--container-md: 768px;
|
|
301
|
+
--container-lg: 1056px;
|
|
302
|
+
--container-xl: 1248px;
|
|
303
|
+
--container-2xl: 1440px;
|
|
304
|
+
--dropdown-offset: 4;
|
|
305
|
+
--overlay-offset: 4;
|
|
306
|
+
--font-sans: 'Inter Variable', 'Inter', 'Helvetica Neue', Arial, sans-serif;
|
|
307
|
+
--font-heading: 'Geist Variable', 'Inter Variable', 'Helvetica Neue', Arial, sans-serif;
|
|
308
|
+
--font-brand: 'Geist Variable', 'Inter Variable', 'Helvetica Neue', Arial, sans-serif;
|
|
309
|
+
--button-radius: var(--radius-md);
|
|
310
|
+
--card-radius: var(--radius-lg);
|
|
311
|
+
--card-padding: calc(var(--spacing) * 4);
|
|
312
|
+
--input-radius: var(--radius-md);
|
|
313
|
+
--control-size-md: calc(var(--spacing) * 7);
|
|
314
|
+
--badge-radius: var(--radius-4xl);
|
|
315
|
+
--motion-duration-fast: 100ms;
|
|
316
|
+
--motion-duration-normal: 200ms;
|
|
317
|
+
--motion-duration-slow: 300ms;
|
|
318
|
+
--motion-duration-color: var(--motion-duration-fast);
|
|
319
|
+
--motion-duration-interaction: var(--motion-duration-fast);
|
|
320
|
+
--motion-duration-disclosure: var(--motion-duration-normal);
|
|
321
|
+
--motion-duration-overlay: var(--motion-duration-fast);
|
|
322
|
+
--motion-ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
|
|
323
|
+
--motion-ease-accelerate: cubic-bezier(0.4, 0, 1, 1);
|
|
324
|
+
--motion-ease-decelerate: cubic-bezier(0, 0, 0.2, 1);
|
|
325
|
+
--motion-ease-linear: linear;
|
|
326
|
+
--transition-default: var(--motion-duration-normal) var(--motion-ease-standard);
|
|
327
|
+
--transition-fast: var(--motion-duration-fast) var(--motion-ease-standard);
|
|
328
|
+
--transition-slow: var(--motion-duration-slow) var(--motion-ease-decelerate);
|
|
329
|
+
--hover-transform: none;
|
|
330
|
+
--hover-shadow: var(--shadow-md);
|
|
331
|
+
--active-scale: 0.98;
|
|
332
|
+
--background: var(--bg-default);
|
|
333
|
+
--foreground: var(--text-default);
|
|
334
|
+
--card: var(--bg-surface-default);
|
|
335
|
+
--card-foreground: var(--text-default);
|
|
336
|
+
--popover: var(--bg-surface-popover);
|
|
337
|
+
--popover-foreground: var(--text-default);
|
|
338
|
+
--primary: var(--bg-fill-primary);
|
|
339
|
+
--primary-foreground: var(--text-on-fill-primary);
|
|
340
|
+
--secondary: var(--bg-fill-secondary);
|
|
341
|
+
--secondary-foreground: var(--text-on-fill-secondary);
|
|
342
|
+
--muted: var(--bg-muted);
|
|
343
|
+
--muted-foreground: var(--text-muted);
|
|
344
|
+
--accent: var(--bg-surface-accent);
|
|
345
|
+
--accent-foreground: var(--text-on-surface-accent);
|
|
346
|
+
--destructive: var(--bg-fill-critical);
|
|
347
|
+
--border: var(--border-default);
|
|
348
|
+
--input: var(--border-input);
|
|
349
|
+
--ring: var(--border-focus);
|
|
350
|
+
}
|
|
@@ -1,59 +1,111 @@
|
|
|
1
1
|
import { defaultPreset, defaultPresetDark } from './default'
|
|
2
2
|
|
|
3
3
|
const shape: Record<string, string> = {
|
|
4
|
-
'--font-sans':
|
|
5
|
-
|
|
6
|
-
'--
|
|
7
|
-
|
|
8
|
-
'--
|
|
9
|
-
'--
|
|
10
|
-
'--
|
|
4
|
+
'--font-sans':
|
|
5
|
+
'ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif',
|
|
6
|
+
'--font-heading':
|
|
7
|
+
'ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif',
|
|
8
|
+
'--radius': '0.75rem',
|
|
9
|
+
'--choice-size': 'calc(var(--spacing) * 6)',
|
|
10
|
+
'--checkbox-radius': 'calc(var(--radius) * 0.4)',
|
|
11
|
+
'--choice-border-width': '1px',
|
|
12
|
+
'--checkbox-icon-size': 'calc(var(--spacing) * 5.5)',
|
|
13
|
+
'--border-width-base': '0px',
|
|
14
|
+
'--hover-ring-width': '0px',
|
|
15
|
+
'--focus-ring-width': '2px',
|
|
16
|
+
'--choice-border-color': 'var(--border-default)',
|
|
17
|
+
'--kbd-height': 'calc(var(--spacing) * 6)',
|
|
18
|
+
'--kbd-radius': 'var(--radius-md)',
|
|
19
|
+
'--kbd-font-size': 'var(--text-xs)',
|
|
20
|
+
'--label-font-size': 'var(--text-xs)',
|
|
21
|
+
'--label-color': 'var(--text-muted)',
|
|
22
|
+
'--control-font-size': 'var(--text-sm)',
|
|
23
|
+
'--tabs-list-radius': '9999px',
|
|
24
|
+
'--tabs-tab-radius': '9999px',
|
|
25
|
+
'--tabs-tab-height': 'calc(var(--spacing) * 11)',
|
|
26
|
+
'--slider-size': 'calc(var(--spacing) * 14)',
|
|
27
|
+
'--switch-height': 'calc(var(--spacing) * 6)',
|
|
28
|
+
'--input-radius': 'calc(var(--radius) * 1.333333)',
|
|
29
|
+
'--button-radius': '9999px',
|
|
30
|
+
'--button-radius-sm': '9999px',
|
|
31
|
+
'--button-radius-xs': '9999px',
|
|
32
|
+
'--button-height': '3rem',
|
|
33
|
+
'--button-height-sm': '2.75rem',
|
|
34
|
+
'--button-height-lg': '3.5rem',
|
|
35
|
+
'--button-font-size': '0.9375rem',
|
|
36
|
+
'--control-size-md': 'calc(var(--spacing) * 12)',
|
|
37
|
+
'--control-size-sm': 'calc(var(--spacing) * 11)',
|
|
38
|
+
'--control-size-lg': 'calc(var(--spacing) * 14)',
|
|
11
39
|
}
|
|
12
|
-
|
|
13
40
|
export const gutenberg: Record<string, string> = {
|
|
14
41
|
...defaultPreset,
|
|
15
42
|
...shape,
|
|
16
43
|
...{
|
|
17
|
-
'--bg-default': '#
|
|
18
|
-
'--bg-surface-default': '#
|
|
19
|
-
'--bg-
|
|
20
|
-
'--bg-surface-
|
|
21
|
-
'--bg-surface-
|
|
22
|
-
'--bg-
|
|
23
|
-
'--bg-
|
|
24
|
-
'--
|
|
25
|
-
'--
|
|
26
|
-
'--text-
|
|
27
|
-
'--
|
|
28
|
-
'--
|
|
29
|
-
'--
|
|
30
|
-
'--
|
|
31
|
-
'--
|
|
32
|
-
'--
|
|
44
|
+
'--bg-default': '#f5f5f3',
|
|
45
|
+
'--bg-surface-default': '#fafaf9',
|
|
46
|
+
'--bg-surface-popover': '#fafaf9',
|
|
47
|
+
'--bg-surface-field': '#e5e5e2',
|
|
48
|
+
'--bg-surface-accent': '#e5e5e2',
|
|
49
|
+
'--bg-muted': '#eaeae7',
|
|
50
|
+
'--bg-surface-hover': '#dededb',
|
|
51
|
+
'--bg-fill-primary': '#0028ff',
|
|
52
|
+
'--bg-fill-selected': '#0028ff',
|
|
53
|
+
'--text-on-fill-selected': '#f8f8f6',
|
|
54
|
+
'--bg-surface-input': '#eaeae7',
|
|
55
|
+
'--bg-fill-brand': '#0028ff',
|
|
56
|
+
'--bg-fill-secondary': '#e5e5e2',
|
|
57
|
+
'--bg-surface-brand': '#e8ecff',
|
|
58
|
+
'--text-default': '#292b2b',
|
|
59
|
+
'--text-secondary': '#555858',
|
|
60
|
+
'--text-muted': '#666969',
|
|
61
|
+
'--text-brand': '#0028ff',
|
|
62
|
+
'--text-link': '#0028ff',
|
|
63
|
+
'--text-on-fill-primary': '#f8f8f6',
|
|
64
|
+
'--text-on-fill-brand': '#f8f8f6',
|
|
65
|
+
'--text-on-fill-secondary': '#303232',
|
|
66
|
+
'--text-on-surface-accent': '#303232',
|
|
67
|
+
'--border-default': '#d4d5d1',
|
|
68
|
+
'--border-input': 'transparent',
|
|
69
|
+
'--border-focus': '#0028ff',
|
|
70
|
+
'--border-brand': '#0028ff',
|
|
71
|
+
'--icon-default': '#303232',
|
|
72
|
+
'--icon-secondary': '#666969',
|
|
73
|
+
'--icon-brand': '#0028ff',
|
|
33
74
|
},
|
|
34
75
|
}
|
|
35
|
-
|
|
36
76
|
export const gutenbergDark: Record<string, string> = {
|
|
37
77
|
...defaultPresetDark,
|
|
38
78
|
...shape,
|
|
39
79
|
...{
|
|
40
|
-
'--bg-default': '#
|
|
41
|
-
'--bg-surface-default': '#
|
|
42
|
-
'--bg-
|
|
43
|
-
'--bg-surface-
|
|
44
|
-
'--bg-surface-
|
|
45
|
-
'--bg-
|
|
46
|
-
'--bg-
|
|
47
|
-
'--
|
|
48
|
-
'--
|
|
49
|
-
'--text-
|
|
50
|
-
'--
|
|
51
|
-
'--
|
|
52
|
-
'--
|
|
53
|
-
'--
|
|
54
|
-
'--
|
|
55
|
-
'--
|
|
56
|
-
'--
|
|
57
|
-
'--
|
|
80
|
+
'--bg-default': '#242626',
|
|
81
|
+
'--bg-surface-default': '#2c2e2e',
|
|
82
|
+
'--bg-surface-popover': '#2c2e2e',
|
|
83
|
+
'--bg-surface-field': '#424545',
|
|
84
|
+
'--bg-surface-accent': '#424545',
|
|
85
|
+
'--bg-muted': '#303333',
|
|
86
|
+
'--bg-surface-hover': '#424545',
|
|
87
|
+
'--bg-fill-primary': '#93b4ff',
|
|
88
|
+
'--bg-fill-selected': '#93b4ff',
|
|
89
|
+
'--text-on-fill-selected': '#292b2b',
|
|
90
|
+
'--bg-surface-input': '#303333',
|
|
91
|
+
'--bg-fill-brand': '#93b4ff',
|
|
92
|
+
'--bg-fill-secondary': '#3c3f3f',
|
|
93
|
+
'--bg-surface-brand': '#303c58',
|
|
94
|
+
'--text-default': '#e5e6e2',
|
|
95
|
+
'--text-secondary': '#c0c3bf',
|
|
96
|
+
'--text-muted': '#a8ada9',
|
|
97
|
+
'--text-brand': '#93b4ff',
|
|
98
|
+
'--text-link': '#93b4ff',
|
|
99
|
+
'--text-on-fill-primary': '#292b2b',
|
|
100
|
+
'--text-on-fill-brand': '#292b2b',
|
|
101
|
+
'--text-on-fill-secondary': '#e5e6e2',
|
|
102
|
+
'--text-on-surface-accent': '#e5e6e2',
|
|
103
|
+
'--border-default': '#4d5250',
|
|
104
|
+
'--border-input': 'transparent',
|
|
105
|
+
'--border-focus': '#93b4ff',
|
|
106
|
+
'--border-brand': '#93b4ff',
|
|
107
|
+
'--icon-default': '#e5e6e2',
|
|
108
|
+
'--icon-secondary': '#a8ada9',
|
|
109
|
+
'--icon-brand': '#93b4ff',
|
|
58
110
|
},
|
|
59
111
|
}
|
|
@@ -6,6 +6,7 @@ import { signalPop, signalPopDark } from './signal-pop'
|
|
|
6
6
|
import { editorialGrid, editorialGridDark } from './editorial-grid'
|
|
7
7
|
import { kumo, kumoDark } from './kumo'
|
|
8
8
|
import { oqita, oqitaDark } from './oqita'
|
|
9
|
+
import { sponder } from './sponder'
|
|
9
10
|
|
|
10
11
|
export { defaultPreset, defaultPresetDark } from './default'
|
|
11
12
|
export { brutalist, brutalistDark } from './brutalist'
|
|
@@ -13,6 +14,7 @@ export { signalPop, signalPopDark } from './signal-pop'
|
|
|
13
14
|
export { editorialGrid, editorialGridDark } from './editorial-grid'
|
|
14
15
|
export { kumo, kumoDark } from './kumo'
|
|
15
16
|
export { oqita, oqitaDark } from './oqita'
|
|
17
|
+
export { sponder } from './sponder'
|
|
16
18
|
|
|
17
19
|
export interface PresetDefinition {
|
|
18
20
|
name: string
|
|
@@ -26,7 +28,7 @@ export const presetDefinitions = [
|
|
|
26
28
|
{
|
|
27
29
|
name: 'gutenberg',
|
|
28
30
|
label: 'Gutenberg',
|
|
29
|
-
description: '
|
|
31
|
+
description: 'Soft neutral surfaces, blue accents, and generous pill-shaped controls.',
|
|
30
32
|
light: gutenberg,
|
|
31
33
|
dark: gutenbergDark,
|
|
32
34
|
},
|
|
@@ -76,6 +78,13 @@ export const presetDefinitions = [
|
|
|
76
78
|
light: oqita,
|
|
77
79
|
dark: oqitaDark,
|
|
78
80
|
},
|
|
81
|
+
{
|
|
82
|
+
name: 'sponder',
|
|
83
|
+
label: 'Sponder',
|
|
84
|
+
description: 'Dark slate surfaces, green brand accents, and Inter and Geist typography.',
|
|
85
|
+
light: sponder,
|
|
86
|
+
dark: sponder,
|
|
87
|
+
},
|
|
79
88
|
] satisfies PresetDefinition[]
|
|
80
89
|
|
|
81
90
|
export const presetDefinitionsByName = Object.fromEntries(
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
import { defaultPreset } from './default'
|
|
2
|
+
|
|
3
|
+
// Sponder uses the same dark palette in both colour modes.
|
|
4
|
+
export const sponder: Record<string, string> = {
|
|
5
|
+
...defaultPreset,
|
|
6
|
+
|
|
7
|
+
'--bg-default': '#101318FF',
|
|
8
|
+
'--bg-inverse': '#E7E4DEFF',
|
|
9
|
+
'--bg-muted': '#171B21FF',
|
|
10
|
+
'--bg-surface-default': '#12161DFF',
|
|
11
|
+
'--bg-surface-popover': '#171C23FF',
|
|
12
|
+
'--bg-surface-accent': '#1C222AFF',
|
|
13
|
+
'--bg-surface-field': '#242A33FF',
|
|
14
|
+
'--bg-surface-input': '#2B323CFF',
|
|
15
|
+
'--bg-surface-info': '#112031FF',
|
|
16
|
+
'--bg-surface-success': '#0F2118FF',
|
|
17
|
+
'--bg-surface-warning': '#251C0DFF',
|
|
18
|
+
'--bg-surface-critical': '#261615FF',
|
|
19
|
+
'--bg-surface-emphasis': '#1C1731FF',
|
|
20
|
+
'--bg-surface-inverse': '#E7E4DEFF',
|
|
21
|
+
'--bg-surface-transparent': '#FFFFFF0D',
|
|
22
|
+
'--bg-overlay': 'rgba(2, 6, 23, 0.62)',
|
|
23
|
+
'--bg-surface-brand': '#2A1F16FF',
|
|
24
|
+
'--bg-surface-brand-2': '#14202DFF',
|
|
25
|
+
'--bg-surface-brand-3': '#201A2BFF',
|
|
26
|
+
'--bg-surface-brand-4': '#142118FF',
|
|
27
|
+
'--bg-surface-brand-5': '#271B14FF',
|
|
28
|
+
'--bg-surface-hover': '#1A1F26FF',
|
|
29
|
+
'--bg-fill-default': '#12161DFF',
|
|
30
|
+
'--bg-fill-primary': '#F2F0EBFF',
|
|
31
|
+
'--bg-fill-primary-hover': '#FFFFFFFF',
|
|
32
|
+
'--bg-fill-selected': '#F2F0EBFF',
|
|
33
|
+
'--bg-fill-brand': '#52A276FF',
|
|
34
|
+
'--bg-fill-brand-2': '#6B83F5FF',
|
|
35
|
+
'--bg-fill-brand-3': '#F0A968FF',
|
|
36
|
+
'--bg-fill-brand-4': '#A198EAFF',
|
|
37
|
+
'--bg-fill-brand-5': '#A7D8FFFF',
|
|
38
|
+
'--bg-fill-info': '#3B9CF5FF',
|
|
39
|
+
'--bg-fill-success': '#55C783FF',
|
|
40
|
+
'--bg-fill-warning': '#E4A934FF',
|
|
41
|
+
'--bg-fill-critical': '#EC7C72FF',
|
|
42
|
+
'--bg-fill-emphasis': '#8B73F2FF',
|
|
43
|
+
'--bg-fill-transparent': '#FFFFFF0D',
|
|
44
|
+
'--bg-fill-secondary': '#1A1F26FF',
|
|
45
|
+
'--bg-fill-secondary-hover': '#20262EFF',
|
|
46
|
+
'--bg-fill-secondary-inverse': '#101318FF',
|
|
47
|
+
|
|
48
|
+
'--text-default': '#F2F0EBFF',
|
|
49
|
+
'--text-secondary': '#CAD1DAFF',
|
|
50
|
+
'--text-muted': '#8C95A2FF',
|
|
51
|
+
'--text-disabled': '#555E6BFF',
|
|
52
|
+
'--text-inverse': '#101318FF',
|
|
53
|
+
'--text-on-fill-primary': '#101318FF',
|
|
54
|
+
'--text-on-fill-selected': '#101318FF',
|
|
55
|
+
'--text-on-fill-brand': '#101318FF',
|
|
56
|
+
'--text-on-fill-secondary': '#F2F0EBFF',
|
|
57
|
+
'--text-on-surface-accent': '#F2F0EBFF',
|
|
58
|
+
'--text-info': '#8CC5FFFF',
|
|
59
|
+
'--text-success': '#8EE2AFFF',
|
|
60
|
+
'--text-warning': '#F6C76EFF',
|
|
61
|
+
'--text-critical': '#FFAAA2FF',
|
|
62
|
+
'--text-emphasis': '#C4B5FFFF',
|
|
63
|
+
'--text-brand': '#9BE0B7FF',
|
|
64
|
+
'--text-brand-2': '#B6C5FFFF',
|
|
65
|
+
'--text-brand-3': '#F4C28EFF',
|
|
66
|
+
'--text-brand-4': '#CDC5FFFF',
|
|
67
|
+
'--text-brand-5': '#BFE7FFFF',
|
|
68
|
+
'--text-link': '#F2F0EBFF',
|
|
69
|
+
|
|
70
|
+
'--icon-default': '#F2F0EBFF',
|
|
71
|
+
'--icon-secondary': '#CAD1DAFF',
|
|
72
|
+
'--icon-disabled': '#4C5561FF',
|
|
73
|
+
'--icon-inverse': '#101318FF',
|
|
74
|
+
'--icon-info': '#3B9CF5FF',
|
|
75
|
+
'--icon-success': '#55C783FF',
|
|
76
|
+
'--icon-warning': '#E4A934FF',
|
|
77
|
+
'--icon-critical': '#EC7C72FF',
|
|
78
|
+
'--icon-emphasis': '#8B73F2FF',
|
|
79
|
+
'--icon-brand': '#52A276FF',
|
|
80
|
+
'--icon-brand-2': '#6B83F5FF',
|
|
81
|
+
'--icon-brand-3': '#F0A968FF',
|
|
82
|
+
'--icon-brand-4': '#A198EAFF',
|
|
83
|
+
'--icon-brand-5': '#A7D8FFFF',
|
|
84
|
+
|
|
85
|
+
'--border-default': '#2A3038FF',
|
|
86
|
+
'--border-secondary': '#20262EFF',
|
|
87
|
+
'--border-input': '#00000000',
|
|
88
|
+
'--border-tertiary': '#363D47FF',
|
|
89
|
+
'--border-disabled': '#20262EFF',
|
|
90
|
+
'--border-inverse': '#F2F0EBFF',
|
|
91
|
+
'--border-focus': '#6B83F5FF',
|
|
92
|
+
'--border-brand': '#52A276FF',
|
|
93
|
+
'--border-brand-2': '#6B83F5FF',
|
|
94
|
+
'--border-brand-3': '#F0A968FF',
|
|
95
|
+
'--border-brand-4': '#A198EAFF',
|
|
96
|
+
'--border-brand-5': '#A7D8FFFF',
|
|
97
|
+
'--border-info': '#3B9CF5FF',
|
|
98
|
+
'--border-success': '#55C783FF',
|
|
99
|
+
'--border-warning': '#E4A934FF',
|
|
100
|
+
'--border-critical': '#EC7C72FF',
|
|
101
|
+
'--border-emphasis': '#8B73F2FF',
|
|
102
|
+
|
|
103
|
+
'--chart-1': '#52A276FF',
|
|
104
|
+
'--chart-2': '#6B83F5FF',
|
|
105
|
+
'--chart-3': '#F0A968FF',
|
|
106
|
+
'--chart-4': '#A198EAFF',
|
|
107
|
+
'--chart-5': '#3B9CF5FF',
|
|
108
|
+
|
|
109
|
+
'--sidebar-background': '#12161DFF',
|
|
110
|
+
'--sidebar-foreground': '#F2F0EBFF',
|
|
111
|
+
'--sidebar-primary': '#F2F0EBFF',
|
|
112
|
+
'--sidebar-primary-foreground': '#101318FF',
|
|
113
|
+
'--sidebar-accent': '#1A1F26FF',
|
|
114
|
+
'--sidebar-accent-foreground': '#F2F0EBFF',
|
|
115
|
+
'--sidebar-border': '#222831FF',
|
|
116
|
+
'--sidebar-ring': '#6B83F5FF',
|
|
117
|
+
|
|
118
|
+
'--font-sans': '"Inter Variable", "Inter", "Helvetica Neue", Arial, sans-serif',
|
|
119
|
+
'--font-heading': '"Geist Variable", "Inter Variable", "Helvetica Neue", Arial, sans-serif',
|
|
120
|
+
'--font-brand': '"Geist Variable", "Inter Variable", "Helvetica Neue", Arial, sans-serif',
|
|
121
|
+
}
|
|
@@ -159,9 +159,16 @@
|
|
|
159
159
|
|
|
160
160
|
/* ── Choice controls (checkbox, radio) ─────────────────────────────── */
|
|
161
161
|
--choice-size: calc(var(--spacing) * 4);
|
|
162
|
+
--choice-border-width: var(--border-width-base);
|
|
163
|
+
--checkbox-icon-size: calc(var(--choice-size) * 0.85);
|
|
162
164
|
--choice-border-color: var(--border-secondary);
|
|
163
165
|
--checkbox-radius: var(--radius-sm);
|
|
164
166
|
|
|
167
|
+
/* Keyboard shortcut hints. */
|
|
168
|
+
--kbd-height: calc(var(--spacing) * 5);
|
|
169
|
+
--kbd-radius: var(--radius-sm);
|
|
170
|
+
--kbd-font-size: var(--text-2xs);
|
|
171
|
+
|
|
165
172
|
/* ── Field labels ──────────────────────────────────────────────────── */
|
|
166
173
|
--label-font-size: var(--text-xs);
|
|
167
174
|
--label-color: currentColor;
|