@a-t-h-i/bot-lobby 0.6.68 → 0.6.70
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/THIRD_PARTY_NOTICES.md +0 -1
- package/package.json +1 -1
- package/src/lobby/host.ts +7 -0
- package/src/lobby/keys.ts +2 -0
- package/src/lobby/saved-sessions.ts +75 -0
- package/src/lobby/service.ts +78 -3
- package/src/webui/api/index.ts +7 -3
- package/src/webui/api/sessions.ts +20 -5
- package/src/webui/dev/fake-service.ts +22 -0
- package/src/webui/palette-core.ts +6 -749
- package/src/webui/protocol.ts +12 -2
- package/webui/dist/assets/{CodeSurface-CUNGWpkc.js → CodeSurface-Dhsd3Lpo.js} +1 -1
- package/webui/dist/assets/{TerminalView-qi3aVzXz.js → TerminalView-D2mD9dHh.js} +2 -2
- package/webui/dist/assets/index-DPjod_px.css +2 -0
- package/webui/dist/assets/index-DR4Rajdi.js +112 -0
- package/webui/dist/build.json +35 -39
- package/webui/dist/index.html +2 -2
- package/webui/dist/assets/index-D3V8jczg.js +0 -109
- package/webui/dist/assets/index-tTm3L-a2.css +0 -2
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Colour themes, as plain data and pure functions (no DOM, so they can be
|
|
3
3
|
* unit-tested). A theme is two maps of shadcn variables, one for light and one
|
|
4
|
-
* for dark: exactly what tweakcn exports.
|
|
4
|
+
* for dark: exactly what tweakcn exports. The page comes with its own; the
|
|
5
5
|
* user can paste or upload another from tweakcn (its `:root { … } .dark { … }`
|
|
6
6
|
* CSS, or its registry JSON).
|
|
7
7
|
*
|
|
@@ -173,758 +173,15 @@ export function paletteCss(palette: Palette): string {
|
|
|
173
173
|
export const DEFAULT_ID = "mist"
|
|
174
174
|
|
|
175
175
|
/**
|
|
176
|
-
* The
|
|
177
|
-
* sets nothing
|
|
178
|
-
* T3 Tools Inc., packages/shared/src/themePalettes.ts), their roles mapped onto
|
|
179
|
-
* the shadcn variables: canvas is the background, surface the card, accent the
|
|
180
|
-
* primary, accent surface the accent, error the destructive colour. Slate,
|
|
181
|
-
* Sand, Rosewood, Aurora and Midnight, and Graphite, Lagoon, Dune, Plum, Moss and Crimson, are original
|
|
182
|
-
* complementary palettes.
|
|
176
|
+
* The theme that comes with the page: its own colours, Claude's warm ivory and charcoal surfaces, which it sets
|
|
177
|
+
* itself (index.css), so this sets nothing. Other themes are the user's own, imported from tweakcn.
|
|
183
178
|
*/
|
|
184
|
-
export const PRESETS: readonly Palette[] = [
|
|
185
|
-
{ id: DEFAULT_ID, name: "Default" },
|
|
186
|
-
{
|
|
187
|
-
id: "blossom",
|
|
188
|
-
name: "Blossom",
|
|
189
|
-
light: {
|
|
190
|
-
"background": "oklch(0.982446 0.010114 325.653)",
|
|
191
|
-
"foreground": "oklch(0.325698 0.116116 325.037)",
|
|
192
|
-
"card": "oklch(0.971835 0.012884 321.894)",
|
|
193
|
-
"card-foreground": "oklch(0.325698 0.116116 325.037)",
|
|
194
|
-
"popover": "oklch(1 0 0)",
|
|
195
|
-
"popover-foreground": "oklch(0.325698 0.116116 325.037)",
|
|
196
|
-
"primary": "oklch(0.591646 0.217985 0.584)",
|
|
197
|
-
"primary-foreground": "oklch(1 0 0)",
|
|
198
|
-
"secondary": "oklch(0.869588 0.06751 334.899)",
|
|
199
|
-
"secondary-foreground": "oklch(0.444777 0.134061 324.799)",
|
|
200
|
-
"muted": "oklch(0.802407 0.090963 345.892)",
|
|
201
|
-
"muted-foreground": "oklch(0.428932 0.163929 354.332)",
|
|
202
|
-
"accent": "oklch(0.939552 0.024286 321.664)",
|
|
203
|
-
"accent-foreground": "oklch(0.396296 0.025134 285.196)",
|
|
204
|
-
"destructive": "oklch(0.627117 0.248974 7.734)",
|
|
205
|
-
"border": "oklch(0.923531 0.021247 328.096)",
|
|
206
|
-
"input": "oklch(0.851713 0.055822 336.6)",
|
|
207
|
-
"ring": "oklch(0.591646 0.217985 0.584)",
|
|
208
|
-
"chart-1": "oklch(0.591646 0.217985 0.584)",
|
|
209
|
-
},
|
|
210
|
-
dark: {
|
|
211
|
-
"background": "oklch(0.22813 0.020366 307.469)",
|
|
212
|
-
"foreground": "oklch(0.980735 0.004092 301.426)",
|
|
213
|
-
"card": "oklch(0.267101 0.02016 311.799)",
|
|
214
|
-
"card-foreground": "oklch(0.980735 0.004092 301.426)",
|
|
215
|
-
"popover": "oklch(0.154761 0.01316 338.901)",
|
|
216
|
-
"popover-foreground": "oklch(0.980735 0.004092 301.426)",
|
|
217
|
-
"primary": "oklch(0.460685 0.185347 4.099)",
|
|
218
|
-
"primary-foreground": "oklch(0.901233 0.057189 343.694)",
|
|
219
|
-
"secondary": "oklch(0.313674 0.030572 310.061)",
|
|
220
|
-
"secondary-foreground": "oklch(0.848252 0.038248 307.961)",
|
|
221
|
-
"muted": "oklch(0.360924 0.021469 316.83)",
|
|
222
|
-
"muted-foreground": "oklch(0.880303 0.03077 342.696)",
|
|
223
|
-
"accent": "oklch(0.364912 0.050794 308.491)",
|
|
224
|
-
"accent-foreground": "oklch(0.964695 0.009139 341.803)",
|
|
225
|
-
"destructive": "oklch(0.458704 0.169677 3.815)",
|
|
226
|
-
"border": "oklch(0.266943 0.015262 302.425)",
|
|
227
|
-
"input": "oklch(0.266817 0.02897 344.461)",
|
|
228
|
-
"ring": "oklch(0.591646 0.217985 0.584)",
|
|
229
|
-
"chart-1": "oklch(0.460685 0.185347 4.099)",
|
|
230
|
-
},
|
|
231
|
-
},
|
|
232
|
-
{
|
|
233
|
-
id: "grove",
|
|
234
|
-
name: "Grove",
|
|
235
|
-
light: {
|
|
236
|
-
"background": "oklch(0.972369 0.005497 157.15)",
|
|
237
|
-
"foreground": "oklch(0.222003 0.03479 328.979)",
|
|
238
|
-
"card": "oklch(0.972369 0.005497 157.15)",
|
|
239
|
-
"card-foreground": "oklch(0.222003 0.03479 328.979)",
|
|
240
|
-
"popover": "oklch(0.932695 0.003778 160.944)",
|
|
241
|
-
"popover-foreground": "oklch(0.222003 0.03479 328.979)",
|
|
242
|
-
"primary": "oklch(0.523295 0.112292 158.089)",
|
|
243
|
-
"primary-foreground": "oklch(0.990339 0.008411 325.64)",
|
|
244
|
-
"secondary": "oklch(0.936464 0.014601 163.554)",
|
|
245
|
-
"secondary-foreground": "oklch(0.222003 0.03479 328.979)",
|
|
246
|
-
"muted": "oklch(0.945455 0.012308 162.879)",
|
|
247
|
-
"muted-foreground": "oklch(0.527266 0.012309 320.683)",
|
|
248
|
-
"accent": "oklch(0.909438 0.021521 164.612)",
|
|
249
|
-
"accent-foreground": "oklch(0.222003 0.03479 328.979)",
|
|
250
|
-
"destructive": "oklch(0.637823 0.237287 25.436)",
|
|
251
|
-
"border": "oklch(0.864831 0.01312 167.255)",
|
|
252
|
-
"input": "oklch(0.829746 0.016084 168.234)",
|
|
253
|
-
"ring": "oklch(0.523295 0.112292 158.089)",
|
|
254
|
-
"chart-1": "oklch(0.523295 0.112292 158.089)",
|
|
255
|
-
},
|
|
256
|
-
dark: {
|
|
257
|
-
"background": "oklch(0.260865 0.02152 162.75)",
|
|
258
|
-
"foreground": "oklch(0.990339 0.008411 325.64)",
|
|
259
|
-
"card": "oklch(0.260865 0.02152 162.75)",
|
|
260
|
-
"card-foreground": "oklch(0.990339 0.008411 325.64)",
|
|
261
|
-
"popover": "oklch(0.411828 0.014378 166.627)",
|
|
262
|
-
"popover-foreground": "oklch(0.990339 0.008411 325.64)",
|
|
263
|
-
"primary": "oklch(0.796228 0.133058 157.319)",
|
|
264
|
-
"primary-foreground": "oklch(0.222003 0.03479 328.979)",
|
|
265
|
-
"secondary": "oklch(0.380487 0.048313 159.608)",
|
|
266
|
-
"secondary-foreground": "oklch(0.990339 0.008411 325.64)",
|
|
267
|
-
"muted": "oklch(0.339728 0.039456 160.274)",
|
|
268
|
-
"muted-foreground": "oklch(0.715427 0.010896 171.428)",
|
|
269
|
-
"accent": "oklch(0.437021 0.060312 158.962)",
|
|
270
|
-
"accent-foreground": "oklch(0.990339 0.008411 325.64)",
|
|
271
|
-
"destructive": "oklch(0.655108 0.221148 23.473)",
|
|
272
|
-
"border": "oklch(0.457475 0.044046 160.971)",
|
|
273
|
-
"input": "oklch(0.519849 0.049896 160.863)",
|
|
274
|
-
"ring": "oklch(0.796228 0.133058 157.319)",
|
|
275
|
-
"chart-1": "oklch(0.796228 0.133058 157.319)",
|
|
276
|
-
},
|
|
277
|
-
},
|
|
278
|
-
{
|
|
279
|
-
id: "ocean",
|
|
280
|
-
name: "Ocean",
|
|
281
|
-
light: {
|
|
282
|
-
"background": "oklch(0.974199 0.002856 241.597)",
|
|
283
|
-
"foreground": "oklch(0.222003 0.03479 328.979)",
|
|
284
|
-
"card": "oklch(0.974199 0.002856 241.597)",
|
|
285
|
-
"card-foreground": "oklch(0.222003 0.03479 328.979)",
|
|
286
|
-
"popover": "oklch(0.934442 0.003181 269.1)",
|
|
287
|
-
"popover-foreground": "oklch(0.222003 0.03479 328.979)",
|
|
288
|
-
"primary": "oklch(0.536684 0.120219 247.01)",
|
|
289
|
-
"primary-foreground": "oklch(0.990339 0.008411 325.64)",
|
|
290
|
-
"secondary": "oklch(0.939254 0.01193 241.729)",
|
|
291
|
-
"secondary-foreground": "oklch(0.222003 0.03479 328.979)",
|
|
292
|
-
"muted": "oklch(0.948004 0.009649 241.695)",
|
|
293
|
-
"muted-foreground": "oklch(0.528741 0.01828 313.823)",
|
|
294
|
-
"accent": "oklch(0.91295 0.018827 241.836)",
|
|
295
|
-
"accent-foreground": "oklch(0.222003 0.03479 328.979)",
|
|
296
|
-
"destructive": "oklch(0.637823 0.237287 25.436)",
|
|
297
|
-
"border": "oklch(0.867646 0.013482 252.362)",
|
|
298
|
-
"input": "oklch(0.832939 0.017389 252.598)",
|
|
299
|
-
"ring": "oklch(0.536684 0.120219 247.01)",
|
|
300
|
-
"chart-1": "oklch(0.536684 0.120219 247.01)",
|
|
301
|
-
},
|
|
302
|
-
dark: {
|
|
303
|
-
"background": "oklch(0.242641 0.024125 250.573)",
|
|
304
|
-
"foreground": "oklch(0.990339 0.008411 325.64)",
|
|
305
|
-
"card": "oklch(0.242641 0.024125 250.573)",
|
|
306
|
-
"card-foreground": "oklch(0.990339 0.008411 325.64)",
|
|
307
|
-
"popover": "oklch(0.398517 0.018232 255.72)",
|
|
308
|
-
"popover-foreground": "oklch(0.990339 0.008411 325.64)",
|
|
309
|
-
"primary": "oklch(0.758933 0.105833 241.548)",
|
|
310
|
-
"primary-foreground": "oklch(0.222003 0.03479 328.979)",
|
|
311
|
-
"secondary": "oklch(0.358725 0.043145 244.911)",
|
|
312
|
-
"secondary-foreground": "oklch(0.990339 0.008411 325.64)",
|
|
313
|
-
"muted": "oklch(0.319287 0.036766 246.065)",
|
|
314
|
-
"muted-foreground": "oklch(0.691936 0.016294 261.588)",
|
|
315
|
-
"accent": "oklch(0.413315 0.051874 243.855)",
|
|
316
|
-
"accent-foreground": "oklch(0.990339 0.008411 325.64)",
|
|
317
|
-
"destructive": "oklch(0.655108 0.221148 23.473)",
|
|
318
|
-
"border": "oklch(0.438653 0.039496 245.44)",
|
|
319
|
-
"input": "oklch(0.500905 0.043574 244.781)",
|
|
320
|
-
"ring": "oklch(0.758933 0.105833 241.548)",
|
|
321
|
-
"chart-1": "oklch(0.758933 0.105833 241.548)",
|
|
322
|
-
},
|
|
323
|
-
},
|
|
324
|
-
{
|
|
325
|
-
id: "ember",
|
|
326
|
-
name: "Ember",
|
|
327
|
-
light: {
|
|
328
|
-
"background": "oklch(0.976527 0.002685 60.725)",
|
|
329
|
-
"foreground": "oklch(0.222003 0.03479 328.979)",
|
|
330
|
-
"card": "oklch(0.976527 0.002685 60.725)",
|
|
331
|
-
"card-foreground": "oklch(0.222003 0.03479 328.979)",
|
|
332
|
-
"popover": "oklch(0.936659 0.002879 29.96)",
|
|
333
|
-
"popover-foreground": "oklch(0.222003 0.03479 328.979)",
|
|
334
|
-
"primary": "oklch(0.552831 0.129438 44.656)",
|
|
335
|
-
"primary-foreground": "oklch(0.990339 0.008411 325.64)",
|
|
336
|
-
"secondary": "oklch(0.942267 0.01151 50.785)",
|
|
337
|
-
"secondary-foreground": "oklch(0.222003 0.03479 328.979)",
|
|
338
|
-
"muted": "oklch(0.950842 0.009273 51.528)",
|
|
339
|
-
"muted-foreground": "oklch(0.530413 0.018453 341.181)",
|
|
340
|
-
"accent": "oklch(0.916502 0.01832 49.597)",
|
|
341
|
-
"accent-foreground": "oklch(0.222003 0.03479 328.979)",
|
|
342
|
-
"destructive": "oklch(0.637823 0.237287 25.436)",
|
|
343
|
-
"border": "oklch(0.870631 0.013204 39.431)",
|
|
344
|
-
"input": "oklch(0.836213 0.017153 38.661)",
|
|
345
|
-
"ring": "oklch(0.552831 0.129438 44.656)",
|
|
346
|
-
"chart-1": "oklch(0.552831 0.129438 44.656)",
|
|
347
|
-
},
|
|
348
|
-
dark: {
|
|
349
|
-
"background": "oklch(0.245899 0.019144 42.044)",
|
|
350
|
-
"foreground": "oklch(0.990339 0.008411 325.64)",
|
|
351
|
-
"card": "oklch(0.245899 0.019144 42.044)",
|
|
352
|
-
"card-foreground": "oklch(0.990339 0.008411 325.64)",
|
|
353
|
-
"popover": "oklch(0.401111 0.014308 34.896)",
|
|
354
|
-
"popover-foreground": "oklch(0.990339 0.008411 325.64)",
|
|
355
|
-
"primary": "oklch(0.762174 0.124117 52.082)",
|
|
356
|
-
"primary-foreground": "oklch(0.222003 0.03479 328.979)",
|
|
357
|
-
"secondary": "oklch(0.361499 0.044052 49.515)",
|
|
358
|
-
"secondary-foreground": "oklch(0.990339 0.008411 325.64)",
|
|
359
|
-
"muted": "oklch(0.322144 0.03574 48.309)",
|
|
360
|
-
"muted-foreground": "oklch(0.692479 0.015227 30.963)",
|
|
361
|
-
"accent": "oklch(0.416048 0.055354 50.484)",
|
|
362
|
-
"accent-foreground": "oklch(0.990339 0.008411 325.64)",
|
|
363
|
-
"destructive": "oklch(0.655108 0.221148 23.473)",
|
|
364
|
-
"border": "oklch(0.44099 0.040202 48.807)",
|
|
365
|
-
"input": "oklch(0.503003 0.045721 49.44)",
|
|
366
|
-
"ring": "oklch(0.762174 0.124117 52.082)",
|
|
367
|
-
"chart-1": "oklch(0.762174 0.124117 52.082)",
|
|
368
|
-
},
|
|
369
|
-
},
|
|
370
|
-
{
|
|
371
|
-
id: "iris",
|
|
372
|
-
name: "Iris",
|
|
373
|
-
light: {
|
|
374
|
-
"background": "oklch(0.976531 0.003855 303.226)",
|
|
375
|
-
"foreground": "oklch(0.222003 0.03479 328.979)",
|
|
376
|
-
"card": "oklch(0.976531 0.003855 303.226)",
|
|
377
|
-
"card-foreground": "oklch(0.222003 0.03479 328.979)",
|
|
378
|
-
"popover": "oklch(0.936665 0.005041 310.132)",
|
|
379
|
-
"popover-foreground": "oklch(0.222003 0.03479 328.979)",
|
|
380
|
-
"primary": "oklch(0.525348 0.15373 294.176)",
|
|
381
|
-
"primary-foreground": "oklch(0.990339 0.008411 325.64)",
|
|
382
|
-
"secondary": "oklch(0.941387 0.014687 300.474)",
|
|
383
|
-
"secondary-foreground": "oklch(0.222003 0.03479 328.979)",
|
|
384
|
-
"muted": "oklch(0.950194 0.011956 300.733)",
|
|
385
|
-
"muted-foreground": "oklch(0.529955 0.022319 321.556)",
|
|
386
|
-
"accent": "oklch(0.914882 0.022965 299.986)",
|
|
387
|
-
"accent-foreground": "oklch(0.222003 0.03479 328.979)",
|
|
388
|
-
"destructive": "oklch(0.637823 0.237287 25.436)",
|
|
389
|
-
"border": "oklch(0.869608 0.018226 303.859)",
|
|
390
|
-
"input": "oklch(0.834773 0.023405 303.676)",
|
|
391
|
-
"ring": "oklch(0.525348 0.15373 294.176)",
|
|
392
|
-
"chart-1": "oklch(0.525348 0.15373 294.176)",
|
|
393
|
-
},
|
|
394
|
-
dark: {
|
|
395
|
-
"background": "oklch(0.225975 0.031062 293.741)",
|
|
396
|
-
"foreground": "oklch(0.990339 0.008411 325.64)",
|
|
397
|
-
"card": "oklch(0.225975 0.031062 293.741)",
|
|
398
|
-
"card-foreground": "oklch(0.990339 0.008411 325.64)",
|
|
399
|
-
"popover": "oklch(0.386739 0.024023 297.509)",
|
|
400
|
-
"popover-foreground": "oklch(0.990339 0.008411 325.64)",
|
|
401
|
-
"primary": "oklch(0.671712 0.169136 293.929)",
|
|
402
|
-
"primary-foreground": "oklch(0.222003 0.03479 328.979)",
|
|
403
|
-
"secondary": "oklch(0.325405 0.063614 294.23)",
|
|
404
|
-
"secondary-foreground": "oklch(0.990339 0.008411 325.64)",
|
|
405
|
-
"muted": "oklch(0.291515 0.05276 294.209)",
|
|
406
|
-
"muted-foreground": "oklch(0.663321 0.025932 301.862)",
|
|
407
|
-
"accent": "oklch(0.372436 0.07841 294.204)",
|
|
408
|
-
"accent-foreground": "oklch(0.990339 0.008411 325.64)",
|
|
409
|
-
"destructive": "oklch(0.655108 0.221148 23.473)",
|
|
410
|
-
"border": "oklch(0.40874 0.058536 295.893)",
|
|
411
|
-
"input": "oklch(0.46756 0.065775 296.265)",
|
|
412
|
-
"ring": "oklch(0.671712 0.169136 293.929)",
|
|
413
|
-
"chart-1": "oklch(0.671712 0.169136 293.929)",
|
|
414
|
-
},
|
|
415
|
-
},
|
|
416
|
-
{
|
|
417
|
-
id: "slate",
|
|
418
|
-
name: "Slate",
|
|
419
|
-
light: {
|
|
420
|
-
"background": "#f5f7fa",
|
|
421
|
-
"foreground": "#202b3b",
|
|
422
|
-
"card": "#ffffff",
|
|
423
|
-
"card-foreground": "#202b3b",
|
|
424
|
-
"popover": "#ffffff",
|
|
425
|
-
"popover-foreground": "#202b3b",
|
|
426
|
-
"primary": "#465b78",
|
|
427
|
-
"primary-foreground": "#ffffff",
|
|
428
|
-
"secondary": "#e7ecf2",
|
|
429
|
-
"secondary-foreground": "#202b3b",
|
|
430
|
-
"muted": "#edf1f6",
|
|
431
|
-
"muted-foreground": "#526177",
|
|
432
|
-
"accent": "#e0e7ef",
|
|
433
|
-
"accent-foreground": "#202b3b",
|
|
434
|
-
"destructive": "#a52a34",
|
|
435
|
-
"border": "#cad3df",
|
|
436
|
-
"input": "#b9c5d4",
|
|
437
|
-
"ring": "#465b78",
|
|
438
|
-
"chart-1": "#465b78",
|
|
439
|
-
},
|
|
440
|
-
dark: {
|
|
441
|
-
"background": "#141b26",
|
|
442
|
-
"foreground": "#e8edf5",
|
|
443
|
-
"card": "#1c2533",
|
|
444
|
-
"card-foreground": "#e8edf5",
|
|
445
|
-
"popover": "#202b3b",
|
|
446
|
-
"popover-foreground": "#e8edf5",
|
|
447
|
-
"primary": "#adc0dc",
|
|
448
|
-
"primary-foreground": "#141b26",
|
|
449
|
-
"secondary": "#2a3648",
|
|
450
|
-
"secondary-foreground": "#e8edf5",
|
|
451
|
-
"muted": "#243043",
|
|
452
|
-
"muted-foreground": "#afbdd0",
|
|
453
|
-
"accent": "#33445d",
|
|
454
|
-
"accent-foreground": "#e8edf5",
|
|
455
|
-
"destructive": "#fb8990",
|
|
456
|
-
"border": "#43536a",
|
|
457
|
-
"input": "#53647d",
|
|
458
|
-
"ring": "#adc0dc",
|
|
459
|
-
"chart-1": "#adc0dc",
|
|
460
|
-
},
|
|
461
|
-
},
|
|
462
|
-
{
|
|
463
|
-
id: "sand",
|
|
464
|
-
name: "Sand",
|
|
465
|
-
light: {
|
|
466
|
-
"background": "#faf7f1",
|
|
467
|
-
"foreground": "#352b22",
|
|
468
|
-
"card": "#fffdf8",
|
|
469
|
-
"card-foreground": "#352b22",
|
|
470
|
-
"popover": "#fffdf8",
|
|
471
|
-
"popover-foreground": "#352b22",
|
|
472
|
-
"primary": "#765536",
|
|
473
|
-
"primary-foreground": "#ffffff",
|
|
474
|
-
"secondary": "#eee6da",
|
|
475
|
-
"secondary-foreground": "#352b22",
|
|
476
|
-
"muted": "#f2ece2",
|
|
477
|
-
"muted-foreground": "#6c5b49",
|
|
478
|
-
"accent": "#e9ddcb",
|
|
479
|
-
"accent-foreground": "#352b22",
|
|
480
|
-
"destructive": "#a52a34",
|
|
481
|
-
"border": "#d9cbb8",
|
|
482
|
-
"input": "#c9b79e",
|
|
483
|
-
"ring": "#765536",
|
|
484
|
-
"chart-1": "#765536",
|
|
485
|
-
},
|
|
486
|
-
dark: {
|
|
487
|
-
"background": "#211c17",
|
|
488
|
-
"foreground": "#f4ece0",
|
|
489
|
-
"card": "#2c251e",
|
|
490
|
-
"card-foreground": "#f4ece0",
|
|
491
|
-
"popover": "#352c23",
|
|
492
|
-
"popover-foreground": "#f4ece0",
|
|
493
|
-
"primary": "#dcbc92",
|
|
494
|
-
"primary-foreground": "#211c17",
|
|
495
|
-
"secondary": "#3c3227",
|
|
496
|
-
"secondary-foreground": "#f4ece0",
|
|
497
|
-
"muted": "#352d24",
|
|
498
|
-
"muted-foreground": "#c9b9a5",
|
|
499
|
-
"accent": "#4a3b2b",
|
|
500
|
-
"accent-foreground": "#f4ece0",
|
|
501
|
-
"destructive": "#fb8990",
|
|
502
|
-
"border": "#64503e",
|
|
503
|
-
"input": "#79614b",
|
|
504
|
-
"ring": "#dcbc92",
|
|
505
|
-
"chart-1": "#dcbc92",
|
|
506
|
-
},
|
|
507
|
-
},
|
|
508
|
-
{
|
|
509
|
-
id: "rosewood",
|
|
510
|
-
name: "Rosewood",
|
|
511
|
-
light: {
|
|
512
|
-
"background": "#fbf6f5",
|
|
513
|
-
"foreground": "#3b262c",
|
|
514
|
-
"card": "#fffafa",
|
|
515
|
-
"card-foreground": "#3b262c",
|
|
516
|
-
"popover": "#fffafa",
|
|
517
|
-
"popover-foreground": "#3b262c",
|
|
518
|
-
"primary": "#854252",
|
|
519
|
-
"primary-foreground": "#ffffff",
|
|
520
|
-
"secondary": "#f0e2e5",
|
|
521
|
-
"secondary-foreground": "#3b262c",
|
|
522
|
-
"muted": "#f5eaec",
|
|
523
|
-
"muted-foreground": "#76525d",
|
|
524
|
-
"accent": "#edd6dd",
|
|
525
|
-
"accent-foreground": "#3b262c",
|
|
526
|
-
"destructive": "#a52a34",
|
|
527
|
-
"border": "#dfc5cc",
|
|
528
|
-
"input": "#d0afb9",
|
|
529
|
-
"ring": "#854252",
|
|
530
|
-
"chart-1": "#854252",
|
|
531
|
-
},
|
|
532
|
-
dark: {
|
|
533
|
-
"background": "#241a20",
|
|
534
|
-
"foreground": "#f6e8ed",
|
|
535
|
-
"card": "#30222a",
|
|
536
|
-
"card-foreground": "#f6e8ed",
|
|
537
|
-
"popover": "#3a2932",
|
|
538
|
-
"popover-foreground": "#f6e8ed",
|
|
539
|
-
"primary": "#e3a5b7",
|
|
540
|
-
"primary-foreground": "#241a20",
|
|
541
|
-
"secondary": "#442e38",
|
|
542
|
-
"secondary-foreground": "#f6e8ed",
|
|
543
|
-
"muted": "#3a2932",
|
|
544
|
-
"muted-foreground": "#d2b4c0",
|
|
545
|
-
"accent": "#553441",
|
|
546
|
-
"accent-foreground": "#f6e8ed",
|
|
547
|
-
"destructive": "#fb8990",
|
|
548
|
-
"border": "#70505d",
|
|
549
|
-
"input": "#856170",
|
|
550
|
-
"ring": "#e3a5b7",
|
|
551
|
-
"chart-1": "#e3a5b7",
|
|
552
|
-
},
|
|
553
|
-
},
|
|
554
|
-
{
|
|
555
|
-
id: "aurora",
|
|
556
|
-
name: "Aurora",
|
|
557
|
-
light: {
|
|
558
|
-
"background": "#f2faf8",
|
|
559
|
-
"foreground": "#193a37",
|
|
560
|
-
"card": "#fafffe",
|
|
561
|
-
"card-foreground": "#193a37",
|
|
562
|
-
"popover": "#fafffe",
|
|
563
|
-
"popover-foreground": "#193a37",
|
|
564
|
-
"primary": "#216c63",
|
|
565
|
-
"primary-foreground": "#ffffff",
|
|
566
|
-
"secondary": "#def0eb",
|
|
567
|
-
"secondary-foreground": "#193a37",
|
|
568
|
-
"muted": "#e6f2ef",
|
|
569
|
-
"muted-foreground": "#456c66",
|
|
570
|
-
"accent": "#eee5f6",
|
|
571
|
-
"accent-foreground": "#193a37",
|
|
572
|
-
"destructive": "#a52a34",
|
|
573
|
-
"border": "#bbd7d1",
|
|
574
|
-
"input": "#a7c8c0",
|
|
575
|
-
"ring": "#216c63",
|
|
576
|
-
"chart-1": "#216c63",
|
|
577
|
-
},
|
|
578
|
-
dark: {
|
|
579
|
-
"background": "#142321",
|
|
580
|
-
"foreground": "#e1f5ef",
|
|
581
|
-
"card": "#1d302d",
|
|
582
|
-
"card-foreground": "#e1f5ef",
|
|
583
|
-
"popover": "#253d38",
|
|
584
|
-
"popover-foreground": "#e1f5ef",
|
|
585
|
-
"primary": "#87d5c1",
|
|
586
|
-
"primary-foreground": "#142321",
|
|
587
|
-
"secondary": "#29443e",
|
|
588
|
-
"secondary-foreground": "#e1f5ef",
|
|
589
|
-
"muted": "#243c36",
|
|
590
|
-
"muted-foreground": "#a9cfc3",
|
|
591
|
-
"accent": "#3d3352",
|
|
592
|
-
"accent-foreground": "#e1f5ef",
|
|
593
|
-
"destructive": "#fb8990",
|
|
594
|
-
"border": "#466b60",
|
|
595
|
-
"input": "#568172",
|
|
596
|
-
"ring": "#87d5c1",
|
|
597
|
-
"chart-1": "#87d5c1",
|
|
598
|
-
},
|
|
599
|
-
},
|
|
600
|
-
{
|
|
601
|
-
id: "midnight",
|
|
602
|
-
name: "Midnight",
|
|
603
|
-
light: {
|
|
604
|
-
"background": "#f5f6fb",
|
|
605
|
-
"foreground": "#282e48",
|
|
606
|
-
"card": "#fcfcff",
|
|
607
|
-
"card-foreground": "#282e48",
|
|
608
|
-
"popover": "#fcfcff",
|
|
609
|
-
"popover-foreground": "#282e48",
|
|
610
|
-
"primary": "#4f5f96",
|
|
611
|
-
"primary-foreground": "#ffffff",
|
|
612
|
-
"secondary": "#e5e8f4",
|
|
613
|
-
"secondary-foreground": "#282e48",
|
|
614
|
-
"muted": "#eceef7",
|
|
615
|
-
"muted-foreground": "#565f7d",
|
|
616
|
-
"accent": "#dfe4f6",
|
|
617
|
-
"accent-foreground": "#282e48",
|
|
618
|
-
"destructive": "#a52a34",
|
|
619
|
-
"border": "#c7cee5",
|
|
620
|
-
"input": "#b4bfdc",
|
|
621
|
-
"ring": "#4f5f96",
|
|
622
|
-
"chart-1": "#4f5f96",
|
|
623
|
-
},
|
|
624
|
-
dark: {
|
|
625
|
-
"background": "#151a2b",
|
|
626
|
-
"foreground": "#e8ecfa",
|
|
627
|
-
"card": "#1f263b",
|
|
628
|
-
"card-foreground": "#e8ecfa",
|
|
629
|
-
"popover": "#29314a",
|
|
630
|
-
"popover-foreground": "#e8ecfa",
|
|
631
|
-
"primary": "#acbbed",
|
|
632
|
-
"primary-foreground": "#151a2b",
|
|
633
|
-
"secondary": "#303954",
|
|
634
|
-
"secondary-foreground": "#e8ecfa",
|
|
635
|
-
"muted": "#28314b",
|
|
636
|
-
"muted-foreground": "#b1bedf",
|
|
637
|
-
"accent": "#3a466a",
|
|
638
|
-
"accent-foreground": "#e8ecfa",
|
|
639
|
-
"destructive": "#fb8990",
|
|
640
|
-
"border": "#48577d",
|
|
641
|
-
"input": "#596990",
|
|
642
|
-
"ring": "#acbbed",
|
|
643
|
-
"chart-1": "#acbbed",
|
|
644
|
-
},
|
|
645
|
-
},
|
|
646
|
-
{
|
|
647
|
-
id: "graphite",
|
|
648
|
-
name: "Graphite",
|
|
649
|
-
light: {
|
|
650
|
-
"background": "#fafafa",
|
|
651
|
-
"foreground": "#222222",
|
|
652
|
-
"card": "#fefefe",
|
|
653
|
-
"card-foreground": "#222222",
|
|
654
|
-
"popover": "#fefefe",
|
|
655
|
-
"popover-foreground": "#222222",
|
|
656
|
-
"primary": "#333333",
|
|
657
|
-
"primary-foreground": "#fcfcfc",
|
|
658
|
-
"secondary": "#ebebeb",
|
|
659
|
-
"secondary-foreground": "#222222",
|
|
660
|
-
"muted": "#f0f0f0",
|
|
661
|
-
"muted-foreground": "#5d5d5d",
|
|
662
|
-
"accent": "#e8e8e8",
|
|
663
|
-
"accent-foreground": "#222222",
|
|
664
|
-
"destructive": "#d02b31",
|
|
665
|
-
"border": "#dedede",
|
|
666
|
-
"input": "#cecece",
|
|
667
|
-
"ring": "#333333",
|
|
668
|
-
"chart-1": "#333333",
|
|
669
|
-
},
|
|
670
|
-
dark: {
|
|
671
|
-
"background": "#121212",
|
|
672
|
-
"foreground": "#eeeeee",
|
|
673
|
-
"card": "#191919",
|
|
674
|
-
"card-foreground": "#eeeeee",
|
|
675
|
-
"popover": "#202020",
|
|
676
|
-
"popover-foreground": "#eeeeee",
|
|
677
|
-
"primary": "#e4e4e4",
|
|
678
|
-
"primary-foreground": "#121212",
|
|
679
|
-
"secondary": "#292929",
|
|
680
|
-
"secondary-foreground": "#eeeeee",
|
|
681
|
-
"muted": "#242424",
|
|
682
|
-
"muted-foreground": "#ababab",
|
|
683
|
-
"accent": "#333333",
|
|
684
|
-
"accent-foreground": "#eeeeee",
|
|
685
|
-
"destructive": "#f66c6d",
|
|
686
|
-
"border": "#333333",
|
|
687
|
-
"input": "#424242",
|
|
688
|
-
"ring": "#e4e4e4",
|
|
689
|
-
"chart-1": "#e4e4e4",
|
|
690
|
-
},
|
|
691
|
-
},
|
|
692
|
-
{
|
|
693
|
-
id: "lagoon",
|
|
694
|
-
name: "Lagoon",
|
|
695
|
-
light: {
|
|
696
|
-
"background": "#f3fcfd",
|
|
697
|
-
"foreground": "#0e2627",
|
|
698
|
-
"card": "#fbffff",
|
|
699
|
-
"card-foreground": "#0e2627",
|
|
700
|
-
"popover": "#fbffff",
|
|
701
|
-
"popover-foreground": "#0e2627",
|
|
702
|
-
"primary": "#007780",
|
|
703
|
-
"primary-foreground": "#fcfcfc",
|
|
704
|
-
"secondary": "#d5f2f3",
|
|
705
|
-
"secondary-foreground": "#0e2627",
|
|
706
|
-
"muted": "#e3f4f5",
|
|
707
|
-
"muted-foreground": "#456466",
|
|
708
|
-
"accent": "#c3f2f4",
|
|
709
|
-
"accent-foreground": "#0e2627",
|
|
710
|
-
"destructive": "#d02b31",
|
|
711
|
-
"border": "#cde3e4",
|
|
712
|
-
"input": "#b8d4d5",
|
|
713
|
-
"ring": "#007780",
|
|
714
|
-
"chart-1": "#007780",
|
|
715
|
-
},
|
|
716
|
-
dark: {
|
|
717
|
-
"background": "#041516",
|
|
718
|
-
"foreground": "#e8f1f1",
|
|
719
|
-
"card": "#091d1e",
|
|
720
|
-
"card-foreground": "#e8f1f1",
|
|
721
|
-
"popover": "#102425",
|
|
722
|
-
"popover-foreground": "#e8f1f1",
|
|
723
|
-
"primary": "#53c5cb",
|
|
724
|
-
"primary-foreground": "#041516",
|
|
725
|
-
"secondary": "#162d2f",
|
|
726
|
-
"secondary-foreground": "#e8f1f1",
|
|
727
|
-
"muted": "#152829",
|
|
728
|
-
"muted-foreground": "#9cafb0",
|
|
729
|
-
"accent": "#0c3a3c",
|
|
730
|
-
"accent-foreground": "#e8f1f1",
|
|
731
|
-
"destructive": "#f66c6d",
|
|
732
|
-
"border": "#203839",
|
|
733
|
-
"input": "#2f4749",
|
|
734
|
-
"ring": "#53c5cb",
|
|
735
|
-
"chart-1": "#53c5cb",
|
|
736
|
-
},
|
|
737
|
-
},
|
|
738
|
-
{
|
|
739
|
-
id: "dune",
|
|
740
|
-
name: "Dune",
|
|
741
|
-
light: {
|
|
742
|
-
"background": "#fef9f3",
|
|
743
|
-
"foreground": "#2b1f11",
|
|
744
|
-
"card": "#fffefb",
|
|
745
|
-
"card-foreground": "#2b1f11",
|
|
746
|
-
"popover": "#fffefb",
|
|
747
|
-
"popover-foreground": "#2b1f11",
|
|
748
|
-
"primary": "#9d6300",
|
|
749
|
-
"primary-foreground": "#fcfcfc",
|
|
750
|
-
"secondary": "#f9e8d6",
|
|
751
|
-
"secondary-foreground": "#2b1f11",
|
|
752
|
-
"muted": "#f8eee4",
|
|
753
|
-
"muted-foreground": "#6b5a48",
|
|
754
|
-
"accent": "#fde3c6",
|
|
755
|
-
"accent-foreground": "#2b1f11",
|
|
756
|
-
"destructive": "#d02b31",
|
|
757
|
-
"border": "#e9dccd",
|
|
758
|
-
"input": "#dbcbb9",
|
|
759
|
-
"ring": "#9d6300",
|
|
760
|
-
"chart-1": "#9d6300",
|
|
761
|
-
},
|
|
762
|
-
dark: {
|
|
763
|
-
"background": "#181006",
|
|
764
|
-
"foreground": "#f3ede8",
|
|
765
|
-
"card": "#21170c",
|
|
766
|
-
"card-foreground": "#f3ede8",
|
|
767
|
-
"popover": "#291e12",
|
|
768
|
-
"popover-foreground": "#f3ede8",
|
|
769
|
-
"primary": "#dba666",
|
|
770
|
-
"primary-foreground": "#181006",
|
|
771
|
-
"secondary": "#322618",
|
|
772
|
-
"secondary-foreground": "#f3ede8",
|
|
773
|
-
"muted": "#2c2217",
|
|
774
|
-
"muted-foreground": "#b4a99d",
|
|
775
|
-
"accent": "#422e16",
|
|
776
|
-
"accent-foreground": "#f3ede8",
|
|
777
|
-
"destructive": "#f66c6d",
|
|
778
|
-
"border": "#3d3022",
|
|
779
|
-
"input": "#4d4031",
|
|
780
|
-
"ring": "#dba666",
|
|
781
|
-
"chart-1": "#dba666",
|
|
782
|
-
},
|
|
783
|
-
},
|
|
784
|
-
{
|
|
785
|
-
id: "plum",
|
|
786
|
-
name: "Plum",
|
|
787
|
-
light: {
|
|
788
|
-
"background": "#fef8ff",
|
|
789
|
-
"foreground": "#291c2c",
|
|
790
|
-
"card": "#fffdff",
|
|
791
|
-
"card-foreground": "#291c2c",
|
|
792
|
-
"popover": "#fffdff",
|
|
793
|
-
"popover-foreground": "#291c2c",
|
|
794
|
-
"primary": "#9553a4",
|
|
795
|
-
"primary-foreground": "#fcfcfc",
|
|
796
|
-
"secondary": "#f6e4fa",
|
|
797
|
-
"secondary-foreground": "#291c2c",
|
|
798
|
-
"muted": "#f7ecf9",
|
|
799
|
-
"muted-foreground": "#68566d",
|
|
800
|
-
"accent": "#f9dcff",
|
|
801
|
-
"accent-foreground": "#291c2c",
|
|
802
|
-
"destructive": "#d02b31",
|
|
803
|
-
"border": "#e7d8ea",
|
|
804
|
-
"input": "#d8c7dc",
|
|
805
|
-
"ring": "#9553a4",
|
|
806
|
-
"chart-1": "#9553a4",
|
|
807
|
-
},
|
|
808
|
-
dark: {
|
|
809
|
-
"background": "#170d19",
|
|
810
|
-
"foreground": "#f2ecf3",
|
|
811
|
-
"card": "#201522",
|
|
812
|
-
"card-foreground": "#f2ecf3",
|
|
813
|
-
"popover": "#271c2a",
|
|
814
|
-
"popover-foreground": "#f2ecf3",
|
|
815
|
-
"primary": "#d398e0",
|
|
816
|
-
"primary-foreground": "#170d19",
|
|
817
|
-
"secondary": "#312334",
|
|
818
|
-
"secondary-foreground": "#f2ecf3",
|
|
819
|
-
"muted": "#2a202d",
|
|
820
|
-
"muted-foreground": "#b2a6b5",
|
|
821
|
-
"accent": "#3f2945",
|
|
822
|
-
"accent-foreground": "#f2ecf3",
|
|
823
|
-
"destructive": "#f66c6d",
|
|
824
|
-
"border": "#3b2d3e",
|
|
825
|
-
"input": "#4b3c4e",
|
|
826
|
-
"ring": "#d398e0",
|
|
827
|
-
"chart-1": "#d398e0",
|
|
828
|
-
},
|
|
829
|
-
},
|
|
830
|
-
{
|
|
831
|
-
id: "moss",
|
|
832
|
-
name: "Moss",
|
|
833
|
-
light: {
|
|
834
|
-
"background": "#f8fcf6",
|
|
835
|
-
"foreground": "#1c2517",
|
|
836
|
-
"card": "#fdfffc",
|
|
837
|
-
"card-foreground": "#1c2517",
|
|
838
|
-
"popover": "#fdfffc",
|
|
839
|
-
"popover-foreground": "#1c2517",
|
|
840
|
-
"primary": "#4a7333",
|
|
841
|
-
"primary-foreground": "#fcfcfc",
|
|
842
|
-
"secondary": "#e3f0dd",
|
|
843
|
-
"secondary-foreground": "#1c2517",
|
|
844
|
-
"muted": "#ebf3e8",
|
|
845
|
-
"muted-foreground": "#56624f",
|
|
846
|
-
"accent": "#dcefd2",
|
|
847
|
-
"accent-foreground": "#1c2517",
|
|
848
|
-
"destructive": "#d02b31",
|
|
849
|
-
"border": "#d8e2d3",
|
|
850
|
-
"input": "#c6d2c0",
|
|
851
|
-
"ring": "#4a7333",
|
|
852
|
-
"chart-1": "#4a7333",
|
|
853
|
-
},
|
|
854
|
-
dark: {
|
|
855
|
-
"background": "#0d140a",
|
|
856
|
-
"foreground": "#ecf0ea",
|
|
857
|
-
"card": "#151c11",
|
|
858
|
-
"card-foreground": "#ecf0ea",
|
|
859
|
-
"popover": "#1b2317",
|
|
860
|
-
"popover-foreground": "#ecf0ea",
|
|
861
|
-
"primary": "#97bf82",
|
|
862
|
-
"primary-foreground": "#0d140a",
|
|
863
|
-
"secondary": "#232c1e",
|
|
864
|
-
"secondary-foreground": "#ecf0ea",
|
|
865
|
-
"muted": "#1f271c",
|
|
866
|
-
"muted-foreground": "#a6aea1",
|
|
867
|
-
"accent": "#293821",
|
|
868
|
-
"accent-foreground": "#ecf0ea",
|
|
869
|
-
"destructive": "#f66c6d",
|
|
870
|
-
"border": "#2d3628",
|
|
871
|
-
"input": "#3c4637",
|
|
872
|
-
"ring": "#97bf82",
|
|
873
|
-
"chart-1": "#97bf82",
|
|
874
|
-
},
|
|
875
|
-
},
|
|
876
|
-
{
|
|
877
|
-
id: "crimson",
|
|
878
|
-
name: "Crimson",
|
|
879
|
-
light: {
|
|
880
|
-
"background": "#fff7f6",
|
|
881
|
-
"foreground": "#331919",
|
|
882
|
-
"card": "#fffcfc",
|
|
883
|
-
"card-foreground": "#331919",
|
|
884
|
-
"popover": "#fffcfc",
|
|
885
|
-
"popover-foreground": "#331919",
|
|
886
|
-
"primary": "#c13a46",
|
|
887
|
-
"primary-foreground": "#fcfcfc",
|
|
888
|
-
"secondary": "#ffe1df",
|
|
889
|
-
"secondary-foreground": "#331919",
|
|
890
|
-
"muted": "#ffeae9",
|
|
891
|
-
"muted-foreground": "#785252",
|
|
892
|
-
"accent": "#ffd7d5",
|
|
893
|
-
"accent-foreground": "#331919",
|
|
894
|
-
"destructive": "#d02b31",
|
|
895
|
-
"border": "#f4d6d5",
|
|
896
|
-
"input": "#e9c3c2",
|
|
897
|
-
"ring": "#c13a46",
|
|
898
|
-
"chart-1": "#c13a46",
|
|
899
|
-
},
|
|
900
|
-
dark: {
|
|
901
|
-
"background": "#1e0b0b",
|
|
902
|
-
"foreground": "#f8ebeb",
|
|
903
|
-
"card": "#281212",
|
|
904
|
-
"card-foreground": "#f8ebeb",
|
|
905
|
-
"popover": "#301919",
|
|
906
|
-
"popover-foreground": "#f8ebeb",
|
|
907
|
-
"primary": "#ff898b",
|
|
908
|
-
"primary-foreground": "#1e0b0b",
|
|
909
|
-
"secondary": "#3b2020",
|
|
910
|
-
"secondary-foreground": "#f8ebeb",
|
|
911
|
-
"muted": "#331d1d",
|
|
912
|
-
"muted-foreground": "#bea4a3",
|
|
913
|
-
"accent": "#502324",
|
|
914
|
-
"accent-foreground": "#f8ebeb",
|
|
915
|
-
"destructive": "#f66c6d",
|
|
916
|
-
"border": "#462a2a",
|
|
917
|
-
"input": "#573939",
|
|
918
|
-
"ring": "#ff898b",
|
|
919
|
-
"chart-1": "#ff898b",
|
|
920
|
-
},
|
|
921
|
-
},
|
|
922
|
-
]
|
|
179
|
+
export const PRESETS: readonly Palette[] = [{ id: DEFAULT_ID, name: "Default" }]
|
|
923
180
|
|
|
924
181
|
/** Colours for a preview swatch, per mode: the default's own values by hand, the rest from the theme. */
|
|
925
182
|
const MIST_SWATCH = {
|
|
926
|
-
light: { background: "#
|
|
927
|
-
dark: { background: "#
|
|
183
|
+
light: { background: "#faf9f5", card: "#ffffff", primary: "#c96442", accent: "#f0eee6" },
|
|
184
|
+
dark: { background: "#262624", card: "#30302e", primary: "#d97757", accent: "#1f1e1d" },
|
|
928
185
|
} as const
|
|
929
186
|
|
|
930
187
|
export function swatch(palette: Palette, dark: boolean): { background: string; card: string; primary: string; accent: string } {
|