@spunto/design-system 0.51.0 → 0.53.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/styles.css CHANGED
@@ -232,20 +232,23 @@
232
232
  *
233
233
  * --field its deep colour: the band a page opens on, a logo's ink
234
234
  * --signal its bright one: what is alive, the action on a field
235
- * --primary derived from both — the mid tone on light, the signal on dark
235
+ * --tone its mid tone, between the two (Run, the end of the chart ramp)
236
+ * --primary derived from them — the mid tone on light, the signal on dark
236
237
  *
237
238
  * Pick the product with `data-product="cloud|cms|lite|browser|search|ds"` on
238
239
  * <html> or on any subtree (a marketing card can wear another product's
239
- * colours inside a page). No attribute = Spunto Cloud. Every product's raw
240
+ * colours inside a page). No attribute = Spunto Cloud — dusk violet and amber
241
+ * since 2026-10-26 (Browser's pair, Browser being on its way out); its former green is kept as `data-product="sprout"`, a
242
+ * palette with no product behind it (the dashboard lets a member pick it). Every product's raw
240
243
  * pair is also on :root (`--cms-field`, `--cms-signal`, `--cms`…, Tailwind
241
244
  * `bg-cms-field`, `text-cms`…) so one page can show the whole family.
242
245
  *
243
246
  * Token *names* are shadcn's (https://ui.shadcn.com, MIT) plus ours; `--flame`
244
247
  * is the legacy name of the brand colour and follows `--primary`. */
245
248
  :root {
246
- --cloud-field: oklch(0.29 0.055 162);
247
- --cloud-signal: oklch(0.88 0.18 124);
248
- --cloud: oklch(0.45 0.115 155);
249
+ --cloud-field: oklch(0.27 0.07 292);
250
+ --cloud-signal: oklch(0.87 0.14 86);
251
+ --cloud: oklch(0.49 0.17 292);
249
252
  --cms-field: oklch(0.28 0.07 335);
250
253
  --cms-signal: oklch(0.85 0.10 350);
251
254
  --cms: oklch(0.48 0.15 340);
@@ -285,15 +288,6 @@
285
288
  --info-foreground: oklch(0.99 0.006 150);
286
289
  --border: oklch(0.905 0.006 160);
287
290
  --input: oklch(0.905 0.006 160);
288
- /* Pillars — the dashboard's Build / Run semantics (sprout → bottle) */
289
- --build: oklch(0.80 0.17 122);
290
- --ship: oklch(0.62 0.15 148);
291
- --run: oklch(0.45 0.115 155);
292
- --chart-1: oklch(0.82 0.16 122);
293
- --chart-2: oklch(0.70 0.16 140);
294
- --chart-3: oklch(0.58 0.14 152);
295
- --chart-4: oklch(0.48 0.11 165);
296
- --chart-5: oklch(0.38 0.08 175);
297
291
  --seg-workers: #2e8b57;
298
292
  --seg-deployments: #256abf;
299
293
  --seg-images: #8a5cc4;
@@ -302,19 +296,20 @@
302
296
  --sidebar: oklch(0.97 0.004 160);
303
297
  --sidebar-foreground: oklch(0.21 0.015 165);
304
298
  --sidebar-border: oklch(0.905 0.006 160);
305
- --field: oklch(0.29 0.055 162);
306
- --signal: oklch(0.88 0.18 124);
307
- --primary: oklch(0.45 0.115 155);
308
- --primary-foreground: oklch(0.99 0.006 150);
309
- --ring: oklch(0.45 0.115 155);
310
- --accent: oklch(0.945 0.03 150);
311
- --accent-foreground: oklch(0.32 0.07 150);
312
- --sidebar-primary: oklch(0.45 0.115 155);
313
- --sidebar-primary-foreground: oklch(0.99 0.006 150);
314
- --sidebar-accent: oklch(0.935 0.03 150);
315
- --sidebar-accent-foreground: oklch(0.30 0.07 150);
316
- --sidebar-ring: oklch(0.45 0.115 155);
317
- --flame: oklch(0.45 0.115 155);
299
+ --field: oklch(0.27 0.07 292);
300
+ --signal: oklch(0.87 0.14 86);
301
+ --tone: oklch(0.49 0.17 292);
302
+ --primary: oklch(0.49 0.17 292);
303
+ --primary-foreground: oklch(0.99 0.006 292);
304
+ --ring: oklch(0.49 0.17 292);
305
+ --accent: oklch(0.945 0.03 292);
306
+ --accent-foreground: oklch(0.32 0.07 292);
307
+ --sidebar-primary: oklch(0.49 0.17 292);
308
+ --sidebar-primary-foreground: oklch(0.99 0.006 292);
309
+ --sidebar-accent: oklch(0.935 0.03 292);
310
+ --sidebar-accent-foreground: oklch(0.30 0.07 292);
311
+ --sidebar-ring: oklch(0.49 0.17 292);
312
+ --flame: oklch(0.49 0.17 292);
318
313
  }
319
314
 
320
315
  .dark {
@@ -337,14 +332,6 @@
337
332
  --info-foreground: oklch(0.18 0.02 160);
338
333
  --border: oklch(0.93 0.01 150 / 11%);
339
334
  --input: oklch(0.93 0.01 150 / 14%);
340
- --build: oklch(0.86 0.17 124);
341
- --ship: oklch(0.74 0.15 148);
342
- --run: oklch(0.66 0.13 160);
343
- --chart-1: oklch(0.86 0.16 122);
344
- --chart-2: oklch(0.76 0.15 140);
345
- --chart-3: oklch(0.67 0.13 152);
346
- --chart-4: oklch(0.58 0.11 165);
347
- --chart-5: oklch(0.50 0.09 175);
348
335
  --seg-workers: #3fae73;
349
336
  --seg-deployments: #3987e5;
350
337
  --seg-images: #a47fe0;
@@ -352,26 +339,64 @@
352
339
  --sidebar: oklch(0.185 0.009 165);
353
340
  --sidebar-foreground: oklch(0.95 0.006 150);
354
341
  --sidebar-border: oklch(0.93 0.01 150 / 11%);
355
- --field: oklch(0.29 0.055 162);
356
- --signal: oklch(0.88 0.18 124);
357
- --primary: oklch(0.88 0.18 124);
358
- --primary-foreground: oklch(0.29 0.055 162);
359
- --ring: oklch(0.88 0.18 124);
360
- --accent: oklch(0.28 0.035 150);
361
- --accent-foreground: oklch(0.95 0.01 150);
362
- --sidebar-primary: oklch(0.88 0.18 124);
363
- --sidebar-primary-foreground: oklch(0.29 0.055 162);
364
- --sidebar-accent: oklch(0.26 0.03 150);
365
- --sidebar-accent-foreground: oklch(0.95 0.01 150);
366
- --sidebar-ring: oklch(0.88 0.18 124);
367
- --flame: oklch(0.88 0.18 124);
342
+ --field: oklch(0.27 0.07 292);
343
+ --signal: oklch(0.87 0.14 86);
344
+ --tone: oklch(0.49 0.17 292);
345
+ --primary: oklch(0.87 0.14 86);
346
+ --primary-foreground: oklch(0.27 0.07 292);
347
+ --ring: oklch(0.87 0.14 86);
348
+ --accent: oklch(0.28 0.035 292);
349
+ --accent-foreground: oklch(0.95 0.01 292);
350
+ --sidebar-primary: oklch(0.87 0.14 86);
351
+ --sidebar-primary-foreground: oklch(0.27 0.07 292);
352
+ --sidebar-accent: oklch(0.26 0.03 292);
353
+ --sidebar-accent-foreground: oklch(0.95 0.01 292);
354
+ --sidebar-ring: oklch(0.87 0.14 86);
355
+ --flame: oklch(0.87 0.14 86);
368
356
  }
369
357
 
370
358
  /* ─── The products ───────────────────────────────────────────────────────── */
371
- /* Spunto Cloud — conservatory green / sprout */
359
+ /* Spunto Cloud — dusk violet / amber (Browser's pair, taken over 2026-10-26;
360
+ conservatory green until then: `sprout`) */
372
361
  [data-product="cloud"] {
362
+ --field: oklch(0.27 0.07 292);
363
+ --signal: oklch(0.87 0.14 86);
364
+ --tone: oklch(0.49 0.17 292);
365
+ --primary: oklch(0.49 0.17 292);
366
+ --primary-foreground: oklch(0.99 0.006 292);
367
+ --ring: oklch(0.49 0.17 292);
368
+ --accent: oklch(0.945 0.03 292);
369
+ --accent-foreground: oklch(0.32 0.07 292);
370
+ --sidebar-primary: oklch(0.49 0.17 292);
371
+ --sidebar-primary-foreground: oklch(0.99 0.006 292);
372
+ --sidebar-accent: oklch(0.935 0.03 292);
373
+ --sidebar-accent-foreground: oklch(0.30 0.07 292);
374
+ --sidebar-ring: oklch(0.49 0.17 292);
375
+ --flame: oklch(0.49 0.17 292);
376
+ }
377
+ .dark [data-product="cloud"],
378
+ .dark[data-product="cloud"] {
379
+ --field: oklch(0.27 0.07 292);
380
+ --signal: oklch(0.87 0.14 86);
381
+ --tone: oklch(0.49 0.17 292);
382
+ --primary: oklch(0.87 0.14 86);
383
+ --primary-foreground: oklch(0.27 0.07 292);
384
+ --ring: oklch(0.87 0.14 86);
385
+ --accent: oklch(0.28 0.035 292);
386
+ --accent-foreground: oklch(0.95 0.01 292);
387
+ --sidebar-primary: oklch(0.87 0.14 86);
388
+ --sidebar-primary-foreground: oklch(0.27 0.07 292);
389
+ --sidebar-accent: oklch(0.26 0.03 292);
390
+ --sidebar-accent-foreground: oklch(0.95 0.01 292);
391
+ --sidebar-ring: oklch(0.87 0.14 86);
392
+ --flame: oklch(0.87 0.14 86);
393
+ }
394
+ /* Sprout — no product: Spunto Cloud's green until 2026-10-26, kept as a
395
+ palette a member can dress the dashboard in (apps/next/lib/accent.ts) */
396
+ [data-product="sprout"] {
373
397
  --field: oklch(0.29 0.055 162);
374
398
  --signal: oklch(0.88 0.18 124);
399
+ --tone: oklch(0.45 0.115 155);
375
400
  --primary: oklch(0.45 0.115 155);
376
401
  --primary-foreground: oklch(0.99 0.006 150);
377
402
  --ring: oklch(0.45 0.115 155);
@@ -384,10 +409,11 @@
384
409
  --sidebar-ring: oklch(0.45 0.115 155);
385
410
  --flame: oklch(0.45 0.115 155);
386
411
  }
387
- .dark [data-product="cloud"],
388
- .dark[data-product="cloud"] {
412
+ .dark [data-product="sprout"],
413
+ .dark[data-product="sprout"] {
389
414
  --field: oklch(0.29 0.055 162);
390
415
  --signal: oklch(0.88 0.18 124);
416
+ --tone: oklch(0.45 0.115 155);
391
417
  --primary: oklch(0.88 0.18 124);
392
418
  --primary-foreground: oklch(0.29 0.055 162);
393
419
  --ring: oklch(0.88 0.18 124);
@@ -404,6 +430,7 @@
404
430
  [data-product="cms"] {
405
431
  --field: oklch(0.28 0.07 335);
406
432
  --signal: oklch(0.85 0.10 350);
433
+ --tone: oklch(0.48 0.15 340);
407
434
  --primary: oklch(0.48 0.15 340);
408
435
  --primary-foreground: oklch(0.99 0.006 340);
409
436
  --ring: oklch(0.48 0.15 340);
@@ -420,6 +447,7 @@
420
447
  .dark[data-product="cms"] {
421
448
  --field: oklch(0.28 0.07 335);
422
449
  --signal: oklch(0.85 0.10 350);
450
+ --tone: oklch(0.48 0.15 340);
423
451
  --primary: oklch(0.85 0.10 350);
424
452
  --primary-foreground: oklch(0.28 0.07 335);
425
453
  --ring: oklch(0.85 0.10 350);
@@ -436,6 +464,7 @@
436
464
  [data-product="lite"] {
437
465
  --field: oklch(0.27 0.06 255);
438
466
  --signal: oklch(0.85 0.10 228);
467
+ --tone: oklch(0.49 0.14 258);
439
468
  --primary: oklch(0.49 0.14 258);
440
469
  --primary-foreground: oklch(0.99 0.006 255);
441
470
  --ring: oklch(0.49 0.14 258);
@@ -452,6 +481,7 @@
452
481
  .dark[data-product="lite"] {
453
482
  --field: oklch(0.27 0.06 255);
454
483
  --signal: oklch(0.85 0.10 228);
484
+ --tone: oklch(0.49 0.14 258);
455
485
  --primary: oklch(0.85 0.10 228);
456
486
  --primary-foreground: oklch(0.27 0.06 255);
457
487
  --ring: oklch(0.85 0.10 228);
@@ -464,10 +494,12 @@
464
494
  --sidebar-ring: oklch(0.85 0.10 228);
465
495
  --flame: oklch(0.85 0.10 228);
466
496
  }
467
- /* Spunto Browser — dusk violet / amber */
497
+ /* Spunto Browser — dusk violet / amber, same pair as Cloud since 2026-10-26
498
+ (Browser is being deprecated) */
468
499
  [data-product="browser"] {
469
500
  --field: oklch(0.27 0.07 292);
470
501
  --signal: oklch(0.87 0.14 86);
502
+ --tone: oklch(0.49 0.17 292);
471
503
  --primary: oklch(0.49 0.17 292);
472
504
  --primary-foreground: oklch(0.99 0.006 292);
473
505
  --ring: oklch(0.49 0.17 292);
@@ -484,6 +516,7 @@
484
516
  .dark[data-product="browser"] {
485
517
  --field: oklch(0.27 0.07 292);
486
518
  --signal: oklch(0.87 0.14 86);
519
+ --tone: oklch(0.49 0.17 292);
487
520
  --primary: oklch(0.87 0.14 86);
488
521
  --primary-foreground: oklch(0.27 0.07 292);
489
522
  --ring: oklch(0.87 0.14 86);
@@ -500,6 +533,7 @@
500
533
  [data-product="search"] {
501
534
  --field: oklch(0.28 0.05 208);
502
535
  --signal: oklch(0.87 0.10 192);
536
+ --tone: oklch(0.49 0.09 212);
503
537
  --primary: oklch(0.49 0.09 212);
504
538
  --primary-foreground: oklch(0.99 0.006 210);
505
539
  --ring: oklch(0.49 0.09 212);
@@ -516,6 +550,7 @@
516
550
  .dark[data-product="search"] {
517
551
  --field: oklch(0.28 0.05 208);
518
552
  --signal: oklch(0.87 0.10 192);
553
+ --tone: oklch(0.49 0.09 212);
519
554
  --primary: oklch(0.87 0.10 192);
520
555
  --primary-foreground: oklch(0.28 0.05 208);
521
556
  --ring: oklch(0.87 0.10 192);
@@ -532,6 +567,7 @@
532
567
  [data-product="ds"] {
533
568
  --field: oklch(0.22 0.012 165);
534
569
  --signal: oklch(0.96 0.01 150);
570
+ --tone: oklch(0.30 0.02 165);
535
571
  --primary: oklch(0.30 0.02 165);
536
572
  --primary-foreground: oklch(0.99 0.006 165);
537
573
  --ring: oklch(0.30 0.02 165);
@@ -548,6 +584,7 @@
548
584
  .dark[data-product="ds"] {
549
585
  --field: oklch(0.22 0.012 165);
550
586
  --signal: oklch(0.96 0.01 150);
587
+ --tone: oklch(0.30 0.02 165);
551
588
  --primary: oklch(0.96 0.01 150);
552
589
  --primary-foreground: oklch(0.22 0.012 165);
553
590
  --ring: oklch(0.96 0.01 150);
@@ -577,6 +614,37 @@
577
614
  --night: var(--field);
578
615
  }
579
616
 
617
+ /* ─── Derived from the product: pillars and charts ───────────────────────────
618
+ * Build / Ship / Run (the dashboard's semantics) and the chart ramp are not
619
+ * colours of their own: they run from the product's signal (Build, the most
620
+ * alive) to its mid tone `--tone` (Run, what settled). Declared on every
621
+ * `[data-product]` so a subtree wearing another product re-derives them —
622
+ * same reason as `--night` above. Dark lifts the ramp: Run can't sit at the
623
+ * mid tone on a near-black ground. */
624
+ :root,
625
+ [data-product] {
626
+ --build: color-mix(in oklch, var(--signal) 80%, var(--tone));
627
+ --ship: color-mix(in oklch, var(--signal) 40%, var(--tone));
628
+ --run: var(--tone);
629
+ --chart-1: color-mix(in oklch, var(--signal) 85%, var(--tone));
630
+ --chart-2: color-mix(in oklch, var(--signal) 55%, var(--tone));
631
+ --chart-3: color-mix(in oklch, var(--signal) 30%, var(--tone));
632
+ --chart-4: var(--tone);
633
+ --chart-5: color-mix(in oklch, var(--tone) 65%, var(--field));
634
+ }
635
+ .dark,
636
+ .dark [data-product],
637
+ .dark[data-product] {
638
+ --build: var(--signal);
639
+ --ship: color-mix(in oklch, var(--signal) 70%, var(--tone));
640
+ --run: color-mix(in oklch, var(--signal) 50%, var(--tone));
641
+ --chart-1: var(--signal);
642
+ --chart-2: color-mix(in oklch, var(--signal) 75%, var(--tone));
643
+ --chart-3: color-mix(in oklch, var(--signal) 55%, var(--tone));
644
+ --chart-4: color-mix(in oklch, var(--signal) 35%, var(--tone));
645
+ --chart-5: color-mix(in oklch, var(--signal) 20%, var(--tone));
646
+ }
647
+
580
648
  /* ─── Base layer ─────────────────────────────────────────────────────────── */
581
649
  @layer base {
582
650
  * {