@lace-cloud/design-tokens 0.19.0 → 0.21.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/package.json +1 -1
- package/tokens.css +71 -12
package/package.json
CHANGED
package/tokens.css
CHANGED
|
@@ -125,6 +125,7 @@
|
|
|
125
125
|
--lace-color-white-alpha-80: rgba(255, 255, 255, 0.8);
|
|
126
126
|
--lace-color-white-alpha-92: rgba(255, 255, 255, 0.92);
|
|
127
127
|
--lace-color-amber-alpha-08: rgba(255, 200, 80, 0.08);
|
|
128
|
+
--lace-color-amber-alpha-25: rgba(255, 200, 80, 0.25);
|
|
128
129
|
--lace-color-amber-400-alpha-12: rgba(245, 166, 35, 0.12);
|
|
129
130
|
--lace-color-amber-400-alpha-40: rgba(245, 166, 35, 0.4);
|
|
130
131
|
--lace-color-black-alpha-30: rgba(0, 0, 0, 0.3);
|
|
@@ -160,6 +161,9 @@
|
|
|
160
161
|
--lace-size-grid-major: 100px;
|
|
161
162
|
--lace-size-page-max: 1152px;
|
|
162
163
|
--lace-size-control-rung: 36px; /* resting height every admin control family shares, so siblings on one page sit at one height */
|
|
164
|
+
--lace-size-drawer-min: 280px; /* a canvas drawer's narrowest: a form still reads at this width */
|
|
165
|
+
--lace-size-drawer-default: 320px;
|
|
166
|
+
--lace-size-drawer-max: 480px; /* its widest: the canvas keeps the rest of an 800px webview */
|
|
163
167
|
|
|
164
168
|
/* ── Scale: font size ── */
|
|
165
169
|
--lace-font-size-xs: 10px;
|
|
@@ -310,6 +314,18 @@
|
|
|
310
314
|
--lace-banner-aggregate-fg: var(--lace-color-purple-400);
|
|
311
315
|
--lace-banner-aggregate-border: var(--lace-color-purple-alpha-25);
|
|
312
316
|
|
|
317
|
+
/* ── Severity banner ──
|
|
318
|
+
* A full-width strip under a toolbar that states one fact needing the
|
|
319
|
+
* reader: warning (a decision waits), error (something is locked). The
|
|
320
|
+
* fill is the status's soft tone, the text its text tone, the rule under
|
|
321
|
+
* it a stronger step of the same hue. */
|
|
322
|
+
--lace-banner-warning-bg: var(--lace-color-warning-bg);
|
|
323
|
+
--lace-banner-warning-fg: var(--lace-color-warning-fg);
|
|
324
|
+
--lace-banner-warning-border: var(--lace-color-amber-alpha-25);
|
|
325
|
+
--lace-banner-error-bg: var(--lace-color-danger-bg-soft);
|
|
326
|
+
--lace-banner-error-fg: var(--lace-color-danger-fg);
|
|
327
|
+
--lace-banner-error-border: var(--lace-color-red-alpha-30);
|
|
328
|
+
|
|
313
329
|
/* ── Focus ring ── */
|
|
314
330
|
--lace-color-focus-ring: var(--lace-color-accent);
|
|
315
331
|
|
|
@@ -362,9 +378,12 @@
|
|
|
362
378
|
--lace-green-alpha-20: var(--lace-color-green-alpha-20);
|
|
363
379
|
--lace-green-alpha-60: var(--lace-color-green-alpha-60);
|
|
364
380
|
|
|
365
|
-
/* ── Button ──
|
|
366
|
-
|
|
367
|
-
|
|
381
|
+
/* ── Button ──
|
|
382
|
+
* The primary is the brand accent, used sparingly: the one call to
|
|
383
|
+
* action of a surface. green-500 holds its value in both themes, and
|
|
384
|
+
* text-on-accent is the near-black measured against it. */
|
|
385
|
+
--lace-btn-primary: var(--lace-color-green-500);
|
|
386
|
+
--lace-btn-primary-dim: var(--lace-color-green-300);
|
|
368
387
|
--lace-btn-secondary-bg: #2d2d2d;
|
|
369
388
|
--lace-btn-secondary-hover: #3a3a3a;
|
|
370
389
|
--lace-btn-success: var(--lace-color-success-strong);
|
|
@@ -372,7 +391,7 @@
|
|
|
372
391
|
--lace-btn-danger-bg: var(--lace-color-red-700);
|
|
373
392
|
--lace-btn-danger-hover: #8a3535;
|
|
374
393
|
--lace-btn-ghost-hover: var(--lace-color-accent-alpha-subtle);
|
|
375
|
-
--lace-btn-text-primary:
|
|
394
|
+
--lace-btn-text-primary: var(--lace-color-text-on-accent);
|
|
376
395
|
--lace-btn-text-disabled: var(--lace-color-white-alpha-40);
|
|
377
396
|
--lace-icon-btn-hover: var(--lace-color-accent-alpha-subtle);
|
|
378
397
|
--lace-icon-btn-danger-hover: var(--lace-color-red-alpha-30);
|
|
@@ -444,7 +463,22 @@
|
|
|
444
463
|
--lace-badge-gy-text: var(--lace-color-text-on-accent);
|
|
445
464
|
|
|
446
465
|
/* ── Canvas nodes (inline-styled; tokens listed for completeness) ── */
|
|
447
|
-
|
|
466
|
+
/* A module call on the paper: a quiet card a step above the canvas, its
|
|
467
|
+
* header a step above the card, its name in the text colour — the accent
|
|
468
|
+
* is kept for the one selected thing. Each reads a semantic token, so one
|
|
469
|
+
* declaration serves both themes. */
|
|
470
|
+
--lace-node-bg: var(--lace-color-bg-surface);
|
|
471
|
+
--lace-node-header-bg: var(--lace-color-bg-surface-alt);
|
|
472
|
+
--lace-node-default-border: var(--lace-color-border-default);
|
|
473
|
+
--lace-node-name: var(--lace-color-text-primary);
|
|
474
|
+
--lace-node-pin-label: var(--lace-color-text-description);
|
|
475
|
+
--lace-node-pin-label-wired: var(--lace-color-text-primary);
|
|
476
|
+
--lace-node-selected-ring: var(--lace-color-accent);
|
|
477
|
+
/* A group: a dashed container drawn on the paper, its name on a chip. */
|
|
478
|
+
--lace-group-border: var(--lace-color-border-input);
|
|
479
|
+
--lace-group-bg: var(--lace-color-white-alpha-03);
|
|
480
|
+
--lace-group-chip-bg: var(--lace-color-bg-surface-alt);
|
|
481
|
+
--lace-group-chip-text: var(--lace-color-text-primary);
|
|
448
482
|
--lace-node-error-border: var(--lace-color-red-500);
|
|
449
483
|
--lace-node-error-shadow-color: var(--lace-color-red-alpha-30);
|
|
450
484
|
--lace-node-new-border: #3b82f6;
|
|
@@ -475,12 +509,29 @@
|
|
|
475
509
|
--lace-canvas-minimap-bg: #111111;
|
|
476
510
|
--lace-canvas-minimap-border: var(--lace-color-border-default);
|
|
477
511
|
--lace-canvas-minimap-mask: var(--lace-color-black-alpha-60);
|
|
512
|
+
--lace-canvas-minimap-node: var(--lace-color-border-input);
|
|
478
513
|
--lace-canvas-edge-stroke: var(--lace-color-green-alpha-50);
|
|
479
514
|
--lace-canvas-edge-stroke-hover: var(--lace-color-accent-strong);
|
|
480
515
|
--lace-canvas-edge-stroke-selected: var(--lace-color-accent-strong);
|
|
481
516
|
--lace-canvas-edge-stroke-width: 1.5px;
|
|
482
517
|
--lace-canvas-edge-stroke-width-selected: 2.5px;
|
|
483
518
|
--lace-canvas-grid-dot: var(--lace-color-green-alpha-04);
|
|
519
|
+
/* The canvas's engineering paper: the shell paper's threads, drawn a step
|
|
520
|
+
* stronger because the canvas is a drawing surface you work on, not a
|
|
521
|
+
* backdrop — still quiet next to the nodes. */
|
|
522
|
+
--lace-canvas-paper-thread-fine: var(--lace-color-green-alpha-04);
|
|
523
|
+
--lace-canvas-paper-thread-major: var(--lace-color-green-alpha-10);
|
|
524
|
+
/* The paper's pitch at zoom 1: the shell paper's own, 1:5 fine to major. */
|
|
525
|
+
--lace-canvas-paper-pitch-fine: var(--lace-paper-pitch-fine);
|
|
526
|
+
--lace-canvas-paper-pitch-major: var(--lace-paper-pitch-major);
|
|
527
|
+
|
|
528
|
+
/* ── Tooltip ──
|
|
529
|
+
* A floating label on the menus' floating surface; one declaration
|
|
530
|
+
* serves both themes. */
|
|
531
|
+
--lace-tooltip-bg: var(--lace-color-bg-context-menu);
|
|
532
|
+
--lace-tooltip-border: var(--lace-color-border-default);
|
|
533
|
+
--lace-tooltip-text: var(--lace-color-text-primary);
|
|
534
|
+
--lace-tooltip-text-muted: var(--lace-color-text-muted);
|
|
484
535
|
|
|
485
536
|
/* ── Module detail panel ── */
|
|
486
537
|
--lace-accent-blue: var(--lace-color-blue-accent);
|
|
@@ -581,6 +632,10 @@
|
|
|
581
632
|
--lace-banner-aggregate-fg: var(--lace-color-purple-700);
|
|
582
633
|
--lace-banner-aggregate-border: #e9d5ff;
|
|
583
634
|
|
|
635
|
+
/* ── Tier-2: Severity banner (bg/fg cascade from the status tokens) ── */
|
|
636
|
+
--lace-banner-warning-border: #fde68a;
|
|
637
|
+
--lace-banner-error-border: #fecaca;
|
|
638
|
+
|
|
584
639
|
/* ── Tier-2: Focus ── */
|
|
585
640
|
--lace-color-focus-ring: var(--lace-color-accent);
|
|
586
641
|
|
|
@@ -595,8 +650,8 @@
|
|
|
595
650
|
--lace-shadow-xl: 0 4px 12px rgba(0, 0, 0, 0.12);
|
|
596
651
|
|
|
597
652
|
/* ── Tier-3: Button ── */
|
|
598
|
-
--lace-btn-primary: var(--lace-color-
|
|
599
|
-
--lace-btn-primary-dim:
|
|
653
|
+
--lace-btn-primary: var(--lace-color-green-500);
|
|
654
|
+
--lace-btn-primary-dim: var(--lace-color-green-300);
|
|
600
655
|
--lace-btn-secondary-bg: #f1f5f9;
|
|
601
656
|
--lace-btn-secondary-hover: #e2e8f0;
|
|
602
657
|
--lace-btn-danger-bg: #fef2f2;
|
|
@@ -653,10 +708,13 @@
|
|
|
653
708
|
--lace-canvas-minimap-bg: #ffffff;
|
|
654
709
|
--lace-canvas-minimap-border: #cbd5e1;
|
|
655
710
|
--lace-canvas-minimap-mask: rgba(0, 0, 0, 0.08);
|
|
656
|
-
--lace-canvas-edge-stroke:
|
|
711
|
+
--lace-canvas-edge-stroke: var(--lace-color-accent);
|
|
657
712
|
--lace-canvas-edge-stroke-hover: #2d4a00;
|
|
658
713
|
--lace-canvas-edge-stroke-selected: #2d4a00;
|
|
659
714
|
--lace-canvas-grid-dot: rgba(0, 0, 0, 0.06);
|
|
715
|
+
--lace-canvas-paper-thread-fine: var(--lace-color-neutral-900-alpha-04);
|
|
716
|
+
--lace-canvas-paper-thread-major: var(--lace-color-neutral-900-alpha-08);
|
|
717
|
+
--lace-group-bg: var(--lace-color-neutral-900-alpha-04);
|
|
660
718
|
|
|
661
719
|
/* ── Tier-3: Module detail panel ──
|
|
662
720
|
* --lace-accent-green cascades from Tier-2 success. Blue accent
|
|
@@ -722,10 +780,11 @@ body {
|
|
|
722
780
|
* `.lace-paper-layers` on an element that positions itself and only
|
|
723
781
|
* wants the grid recipe.
|
|
724
782
|
*
|
|
725
|
-
* The canvas
|
|
726
|
-
*
|
|
727
|
-
*
|
|
728
|
-
*
|
|
783
|
+
* The canvas mounts `.lace-paper-layers` on a layer behind its graph and
|
|
784
|
+
* restates the four tokens the recipe reads on that layer: the canvas
|
|
785
|
+
* paper's own (`--lace-canvas-paper-*`), its pitch scaled by the viewport's
|
|
786
|
+
* zoom and its threads faded as they crowd, so the paper pans and zooms with
|
|
787
|
+
* the graph (packages/canvas/src/components/PaperGrid.css).
|
|
729
788
|
*
|
|
730
789
|
* MOUNT `.lace-paper` AT THE SHELL ROOT, OUTSIDE ANY TRANSFORMED ANCESTOR. A
|
|
731
790
|
* transformed ancestor becomes the containing block for its fixed-position
|