@cloudgrid-io/ui 0.21.0 → 0.23.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/dist/blocks/entity-card.d.ts +225 -72
- package/dist/blocks/entity-card.d.ts.map +1 -1
- package/dist/blocks/entity-card.js +291 -83
- package/dist/blocks/entity-card.js.map +1 -1
- package/dist/blocks/entity-status.d.ts +32 -1
- package/dist/blocks/entity-status.d.ts.map +1 -1
- package/dist/blocks/entity-status.js +35 -1
- package/dist/blocks/entity-status.js.map +1 -1
- package/dist/blocks/icons.d.ts +18 -13
- package/dist/blocks/icons.d.ts.map +1 -1
- package/dist/blocks/icons.js +18 -13
- package/dist/blocks/icons.js.map +1 -1
- package/dist/blocks/phosphor-marks.d.ts +6 -4
- package/dist/blocks/phosphor-marks.d.ts.map +1 -1
- package/dist/blocks/phosphor-marks.js +9 -6
- package/dist/blocks/phosphor-marks.js.map +1 -1
- package/dist/theme.css +16 -0
- package/dist/tokens/base.json +70 -6
- package/dist/tokens.css +62 -6
- package/dist/tokens.json +11 -5
- package/package.json +1 -1
package/dist/tokens.css
CHANGED
|
@@ -359,6 +359,18 @@
|
|
|
359
359
|
|
|
360
360
|
/* ---- neutrals ---- */
|
|
361
361
|
--cg-neutral-0: #ffffff;
|
|
362
|
+
/*
|
|
363
|
+
SOURCE: the founder's 2026-09-09 draft, "N1 New". The page ground.
|
|
364
|
+
|
|
365
|
+
The page was #ffffff and the card is #ffffff, so a card had no edge except its
|
|
366
|
+
own hairline and a listing read as one sheet. This is the ground the cards sit
|
|
367
|
+
ON; --cg-surface-card stays white, which is what gives the card its shape
|
|
368
|
+
(#196).
|
|
369
|
+
|
|
370
|
+
Half a step off --cg-lavender-50 (#f2f1f7) and deliberately its own value: the
|
|
371
|
+
lavender is the ALTERNATE wash a section reaches for, and collapsing the two
|
|
372
|
+
would leave a page with no alternate. */
|
|
373
|
+
--cg-neutral-25: #f1f1f6;
|
|
362
374
|
/* SOURCE: alternate page wash */
|
|
363
375
|
--cg-lavender-50: #f2f1f7;
|
|
364
376
|
/*
|
|
@@ -368,21 +380,33 @@
|
|
|
368
380
|
neutral, and that is recorded rather than corrected because the value is what
|
|
369
381
|
legacy raised panels already render and matching them is the point (#151). */
|
|
370
382
|
--cg-neutral-50: #f4f6f8;
|
|
371
|
-
/*
|
|
372
|
-
|
|
383
|
+
/*
|
|
384
|
+
SOURCE: hairline / card border. Retuned to the founder's draft "N2 New" (#196):
|
|
385
|
+
#f1f1f1 measured 1.13:1 on white and disappeared entirely against the new page
|
|
386
|
+
ground; #e6e8ea measures 1.23:1 on white and gives a white card a real edge on
|
|
387
|
+
an off-white page. */
|
|
388
|
+
--cg-neutral-100: #e6e8ea;
|
|
373
389
|
/* SOURCE: control border, inactive pill fill */
|
|
374
390
|
--cg-neutral-200: #e3e3e3;
|
|
375
391
|
/* SOURCE: placeholder */
|
|
376
392
|
--cg-neutral-400: #acacac;
|
|
377
|
-
/*
|
|
378
|
-
|
|
393
|
+
/*
|
|
394
|
+
SOURCE: footer text. Re-anchored from #8e8e8e to #858585 when the page ground
|
|
395
|
+
moved off white (#196).
|
|
396
|
+
|
|
397
|
+
It carries --cg-text-muted and --cg-offline, and the dot is the binding
|
|
398
|
+
constraint: an indicator has to clear 3:1 (WCAG 1.4.11) and #8e8e8e measured
|
|
399
|
+
2.91:1 on #f1f1f6. #858585 measures 3.27:1 there, which is exactly what the old
|
|
400
|
+
value held on white, so the ground moved and the dot kept its contrast. The
|
|
401
|
+
muted text rung comes with it, 3.27:1 -> 3.69:1 on white. */
|
|
402
|
+
--cg-neutral-500: #858585;
|
|
379
403
|
/* SOURCE: legal / secondary text */
|
|
380
404
|
--cg-neutral-700: #595959;
|
|
381
405
|
/* SOURCE: ink */
|
|
382
406
|
--cg-neutral-900: #222222;
|
|
383
407
|
|
|
384
408
|
/* ---- semantic-surfaces ---- */
|
|
385
|
-
--cg-surface-page: var(--cg-neutral-
|
|
409
|
+
--cg-surface-page: var(--cg-neutral-25);
|
|
386
410
|
--cg-surface-page-alt: var(--cg-lavender-50);
|
|
387
411
|
--cg-surface-card: var(--cg-neutral-0);
|
|
388
412
|
--cg-surface-subtle: var(--cg-lavender-50);
|
|
@@ -513,6 +537,10 @@
|
|
|
513
537
|
--cg-measure: 68ch;
|
|
514
538
|
|
|
515
539
|
/* ---- corners ---- */
|
|
540
|
+
/*
|
|
541
|
+
SOURCE: the kind badge on an entity card (#196). The smallest corner in the
|
|
542
|
+
system, and it exists because a 20px mark rounded at 8px reads as a circle. */
|
|
543
|
+
--cg-radius-2xs: 6px;
|
|
516
544
|
--cg-radius-xs: 8px;
|
|
517
545
|
--cg-radius-sm: 10px;
|
|
518
546
|
/* SOURCE: code block, OTP cell */
|
|
@@ -530,7 +558,17 @@
|
|
|
530
558
|
/* ---- elevation ----
|
|
531
559
|
elevation: hairlines first, shadow only on the wash or on hover */
|
|
532
560
|
--cg-shadow-none: none;
|
|
533
|
-
|
|
561
|
+
/*
|
|
562
|
+
SOURCE: the founder's 2026-09-09 draft, "Elevation 1 New" (#196). Was
|
|
563
|
+
0 1px 2px rgba(34,34,34,0.04), which was a line rather than a shadow and did
|
|
564
|
+
nothing at all once the page ground stopped being white. The draft's own value
|
|
565
|
+
is pure black at 4%; this keeps the ramp's ink base and the draft's geometry. */
|
|
566
|
+
--cg-shadow-card: 0 4px 16px rgba(34, 34, 34, 0.04), 0 4px 4px rgba(34, 34, 34, 0.04);
|
|
567
|
+
/*
|
|
568
|
+
The lift under a small mark sitting ON a picture: the entity card's kind badge
|
|
569
|
+
(#196). Tighter and darker than --cg-shadow-card because it has to read against
|
|
570
|
+
a screenshot rather than against a page, and it is 20px wide. */
|
|
571
|
+
--cg-shadow-mark: 0 2px 1px rgba(34, 34, 34, 0.06), 0 2px 4px rgba(34, 34, 34, 0.08);
|
|
534
572
|
--cg-shadow-raised: 0 4px 14px rgba(34, 34, 34, 0.06);
|
|
535
573
|
--cg-shadow-hover: 0 8px 24px rgba(34, 34, 34, 0.08);
|
|
536
574
|
--cg-shadow-panel: 0 10px 40px rgba(90, 71, 240, 0.18);
|
|
@@ -661,6 +699,24 @@
|
|
|
661
699
|
/*
|
|
662
700
|
The wash under a hovered row or control. The system had no hover token; components were each inventing one. */
|
|
663
701
|
--cg-hover: rgba(34, 34, 34, 0.045);
|
|
702
|
+
|
|
703
|
+
/* ---- kind ----
|
|
704
|
+
kind: what an entity IS, as a ground for its 20px badge (#196).
|
|
705
|
+
|
|
706
|
+
Declared at :root ONLY, like the identity tile and unlike everything else in
|
|
707
|
+
this file. The badge sits on a screenshot, and a picture does not flip: half of
|
|
708
|
+
a mark flipping is a light disc with a white glyph on the ink surface, which
|
|
709
|
+
renders perfectly and shows nothing. --cg-text-on-accent is the glyph on all
|
|
710
|
+
three, and it measures 12.74:1, 14.65:1 and 10.24:1 on them. */
|
|
711
|
+
/* SOURCE: the founder's draft, the Inspiration badge. */
|
|
712
|
+
--cg-kind-inspiration: #fae4b3;
|
|
713
|
+
/* SOURCE: the founder's draft, the App badge. */
|
|
714
|
+
--cg-kind-app: #dffbfc;
|
|
715
|
+
/*
|
|
716
|
+
PROPOSAL, not sampled: the draft never draws an agent badge. This is its
|
|
717
|
+
"Secondary2 30" style, which is the nearest thing in the same set to the two
|
|
718
|
+
above. Founder may veto (#196). */
|
|
719
|
+
--cg-kind-agent: #d1c9ff;
|
|
664
720
|
}
|
|
665
721
|
|
|
666
722
|
[data-cg-surface='panel'] {
|
package/dist/tokens.json
CHANGED
|
@@ -33,15 +33,16 @@
|
|
|
33
33
|
"--cg-secondary-press": "#a6cf57",
|
|
34
34
|
"--cg-tertiary-press": "#4dd8e0",
|
|
35
35
|
"--cg-neutral-0": "#ffffff",
|
|
36
|
+
"--cg-neutral-25": "#f1f1f6",
|
|
36
37
|
"--cg-lavender-50": "#f2f1f7",
|
|
37
38
|
"--cg-neutral-50": "#f4f6f8",
|
|
38
|
-
"--cg-neutral-100": "#
|
|
39
|
+
"--cg-neutral-100": "#e6e8ea",
|
|
39
40
|
"--cg-neutral-200": "#e3e3e3",
|
|
40
41
|
"--cg-neutral-400": "#acacac",
|
|
41
|
-
"--cg-neutral-500": "#
|
|
42
|
+
"--cg-neutral-500": "#858585",
|
|
42
43
|
"--cg-neutral-700": "#595959",
|
|
43
44
|
"--cg-neutral-900": "#222222",
|
|
44
|
-
"--cg-surface-page": "var(--cg-neutral-
|
|
45
|
+
"--cg-surface-page": "var(--cg-neutral-25)",
|
|
45
46
|
"--cg-surface-page-alt": "var(--cg-lavender-50)",
|
|
46
47
|
"--cg-surface-card": "var(--cg-neutral-0)",
|
|
47
48
|
"--cg-surface-subtle": "var(--cg-lavender-50)",
|
|
@@ -115,6 +116,7 @@
|
|
|
115
116
|
"--cg-section-gap": "56px",
|
|
116
117
|
"--cg-container": "1280px",
|
|
117
118
|
"--cg-measure": "68ch",
|
|
119
|
+
"--cg-radius-2xs": "6px",
|
|
118
120
|
"--cg-radius-xs": "8px",
|
|
119
121
|
"--cg-radius-sm": "10px",
|
|
120
122
|
"--cg-radius-md": "12px",
|
|
@@ -125,7 +127,8 @@
|
|
|
125
127
|
"--cg-border-width": "1px",
|
|
126
128
|
"--cg-border-width-strong": "1.5px",
|
|
127
129
|
"--cg-shadow-none": "none",
|
|
128
|
-
"--cg-shadow-card": "0
|
|
130
|
+
"--cg-shadow-card": "0 4px 16px rgba(34, 34, 34, 0.04), 0 4px 4px rgba(34, 34, 34, 0.04)",
|
|
131
|
+
"--cg-shadow-mark": "0 2px 1px rgba(34, 34, 34, 0.06), 0 2px 4px rgba(34, 34, 34, 0.08)",
|
|
129
132
|
"--cg-shadow-raised": "0 4px 14px rgba(34, 34, 34, 0.06)",
|
|
130
133
|
"--cg-shadow-hover": "0 8px 24px rgba(34, 34, 34, 0.08)",
|
|
131
134
|
"--cg-shadow-panel": "0 10px 40px rgba(90, 71, 240, 0.18)",
|
|
@@ -144,7 +147,10 @@
|
|
|
144
147
|
"--cg-live-halo": "color-mix(in srgb, var(--cg-volt) 32%, transparent)",
|
|
145
148
|
"--cg-scrim": "rgba(34, 34, 34, 0.4)",
|
|
146
149
|
"--cg-scrim-strong": "rgba(34, 34, 34, 0.82)",
|
|
147
|
-
"--cg-hover": "rgba(34, 34, 34, 0.045)"
|
|
150
|
+
"--cg-hover": "rgba(34, 34, 34, 0.045)",
|
|
151
|
+
"--cg-kind-inspiration": "#fae4b3",
|
|
152
|
+
"--cg-kind-app": "#dffbfc",
|
|
153
|
+
"--cg-kind-agent": "#d1c9ff"
|
|
148
154
|
},
|
|
149
155
|
"panel": {
|
|
150
156
|
"--cg-text-primary": "#ffffff",
|
package/package.json
CHANGED