@tensor_1/tokens 2.20.0 → 2.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/build/css/components.css +1 -1
- package/build/css/styles.css +1 -1
- package/build/css/tokens.css +5 -0
- package/build/ts/tokens.d.ts +1 -1
- package/build/ts/tokens.js +6 -0
- package/package.json +1 -1
- package/styles/components/button.css +8 -1
- package/styles/components/chart.css +4 -2
- package/styles/components/flow.css +4 -0
- package/styles/components/pipeline.css +3 -1
- package/styles/components/relationship-graph.css +3 -1
- package/styles/components/table.css +5 -1
- package/styles/components/tree.css +14 -2
- package/styles/utilities.css +3 -3
- package/tokens/base/effect.json +1 -0
- package/tokens/dark/effect.json +5 -1
package/build/css/tokens.css
CHANGED
|
@@ -83,6 +83,7 @@
|
|
|
83
83
|
--uix-scrim: rgba(0,0,0,.5);
|
|
84
84
|
--uix-scrim-strong: rgba(0,0,0,.7);
|
|
85
85
|
--uix-shadow-sm: 0 1px 2px rgba(0,0,0,.06);
|
|
86
|
+
--uix-shadow-md: 0 4px 12px rgba(0,0,0,.08),0 1px 2px rgba(0,0,0,.05);
|
|
86
87
|
--uix-shadow-popover: 0 8px 24px rgba(0,0,0,.10),0 1px 2px rgba(0,0,0,.05);
|
|
87
88
|
--uix-shadow-overlay: 0 16px 48px rgba(0,0,0,.18);
|
|
88
89
|
--uix-highlight-top: inset 0 1px 0 rgba(255,255,255,0);
|
|
@@ -226,5 +227,9 @@
|
|
|
226
227
|
--uix-scrollbar-thumb: rgba(255,255,255,.18);
|
|
227
228
|
--uix-scrollbar-thumb-hover: rgba(255,255,255,.30);
|
|
228
229
|
--uix-highlight-top: inset 0 1px 0 rgba(255,255,255,.04);
|
|
230
|
+
--uix-shadow-sm: 0 1px 2px rgba(0,0,0,.40),inset 0 1px 0 rgba(255,255,255,.04);
|
|
231
|
+
--uix-shadow-md: 0 4px 12px rgba(0,0,0,.45),inset 0 1px 0 rgba(255,255,255,.04);
|
|
232
|
+
--uix-shadow-popover: 0 8px 24px rgba(0,0,0,.50),0 1px 2px rgba(0,0,0,.40),inset 0 1px 0 rgba(255,255,255,.05);
|
|
233
|
+
--uix-shadow-overlay: 0 16px 48px rgba(0,0,0,.60),inset 0 1px 0 rgba(255,255,255,.05);
|
|
229
234
|
}
|
|
230
235
|
}
|
package/build/ts/tokens.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* GENERATED — do not edit. */
|
|
2
|
-
export type UixTokenName = "bg-app" | "bg-subtle" | "bg-hover" | "bg-active" | "surface" | "surface-2" | "surface-3" | "border" | "border-strong" | "text" | "text-hushed" | "text-muted" | "text-reverse" | "text-hushed-reverse" | "accent" | "accent-dark" | "accent-light" | "accent-hover" | "accent-fg" | "link" | "accent-text" | "ring" | "brand-muted" | "success" | "success-fg" | "success-bg" | "warning" | "warning-fg" | "warning-bg" | "warning-text" | "warning-border" | "info" | "info-fg" | "info-bg" | "info-text" | "danger" | "danger-fg" | "danger-bg" | "danger-border" | "danger-text" | "amber" | "amber-text" | "amber-bg" | "attention" | "attention-bg" | "attention-text" | "attention-solid" | "overdue" | "overdue-bg" | "overdue-text" | "overdue-solid" | "sev-4" | "sev-4-bg" | "sev-4-text" | "sev-5" | "sev-5-bg" | "sev-5-text" | "success-solid" | "warning-solid" | "info-solid" | "danger-solid" | "chart-1" | "chart-2" | "chart-3" | "chart-4" | "chart-5" | "chart-6" | "chart-7" | "chart-8" | "chart-neutral" | "row" | "row-alt" | "row-pinned-bg" | "row-selected-bg" | "scrollbar-thumb" | "scrollbar-thumb-hover" | "scrollbar-track" | "scrim" | "scrim-strong" | "shadow-sm" | "shadow-popover" | "shadow-overlay" | "highlight-top" | "ease-out" | "ease-out-strong" | "ease-in" | "ease-in-out" | "ease-spring" | "dur-fast" | "dur" | "dur-slow" | "dur-slower" | "lift" | "z-raised" | "z-sticky" | "z-dropdown" | "z-overlay" | "z-tooltip" | "z-toast" | "radius-xs" | "radius-sm" | "radius-md" | "radius-lg" | "radius-pill" | "row-h" | "row-h-compact" | "row-h-comfortable" | "control-h" | "sidebar-w" | "sidebar-w-rail" | "topbar-h" | "scrollbar-size" | "icon-sm" | "icon-md" | "icon-lg" | "peek-w" | "col-w-xs" | "col-w-sm" | "col-w-md" | "col-w-lg" | "col-w-xl" | "col-title-min" | "space-0" | "space-1" | "space-2" | "space-3" | "space-4" | "space-5" | "space-6" | "space-7" | "space-8" | "space-9" | "space-10" | "space-11" | "space-12" | "font-sans" | "font-heading" | "font-mono" | "text-display" | "leading-display" | "text-data-hero" | "leading-data-hero" | "text-h2" | "leading-h2" | "text-h3" | "leading-h3" | "text-body" | "leading-body" | "text-meta" | "leading-meta" | "text-eyebrow" | "leading-eyebrow" | "tracking-tight" | "tracking-eyebrow";
|
|
2
|
+
export type UixTokenName = "bg-app" | "bg-subtle" | "bg-hover" | "bg-active" | "surface" | "surface-2" | "surface-3" | "border" | "border-strong" | "text" | "text-hushed" | "text-muted" | "text-reverse" | "text-hushed-reverse" | "accent" | "accent-dark" | "accent-light" | "accent-hover" | "accent-fg" | "link" | "accent-text" | "ring" | "brand-muted" | "success" | "success-fg" | "success-bg" | "warning" | "warning-fg" | "warning-bg" | "warning-text" | "warning-border" | "info" | "info-fg" | "info-bg" | "info-text" | "danger" | "danger-fg" | "danger-bg" | "danger-border" | "danger-text" | "amber" | "amber-text" | "amber-bg" | "attention" | "attention-bg" | "attention-text" | "attention-solid" | "overdue" | "overdue-bg" | "overdue-text" | "overdue-solid" | "sev-4" | "sev-4-bg" | "sev-4-text" | "sev-5" | "sev-5-bg" | "sev-5-text" | "success-solid" | "warning-solid" | "info-solid" | "danger-solid" | "chart-1" | "chart-2" | "chart-3" | "chart-4" | "chart-5" | "chart-6" | "chart-7" | "chart-8" | "chart-neutral" | "row" | "row-alt" | "row-pinned-bg" | "row-selected-bg" | "scrollbar-thumb" | "scrollbar-thumb-hover" | "scrollbar-track" | "scrim" | "scrim-strong" | "shadow-sm" | "shadow-md" | "shadow-popover" | "shadow-overlay" | "highlight-top" | "ease-out" | "ease-out-strong" | "ease-in" | "ease-in-out" | "ease-spring" | "dur-fast" | "dur" | "dur-slow" | "dur-slower" | "lift" | "z-raised" | "z-sticky" | "z-dropdown" | "z-overlay" | "z-tooltip" | "z-toast" | "radius-xs" | "radius-sm" | "radius-md" | "radius-lg" | "radius-pill" | "row-h" | "row-h-compact" | "row-h-comfortable" | "control-h" | "sidebar-w" | "sidebar-w-rail" | "topbar-h" | "scrollbar-size" | "icon-sm" | "icon-md" | "icon-lg" | "peek-w" | "col-w-xs" | "col-w-sm" | "col-w-md" | "col-w-lg" | "col-w-xl" | "col-title-min" | "space-0" | "space-1" | "space-2" | "space-3" | "space-4" | "space-5" | "space-6" | "space-7" | "space-8" | "space-9" | "space-10" | "space-11" | "space-12" | "font-sans" | "font-heading" | "font-mono" | "text-display" | "leading-display" | "text-data-hero" | "leading-data-hero" | "text-h2" | "leading-h2" | "text-h3" | "leading-h3" | "text-body" | "leading-body" | "text-meta" | "leading-meta" | "text-eyebrow" | "leading-eyebrow" | "tracking-tight" | "tracking-eyebrow";
|
|
3
3
|
export declare const cssVar: Record<UixTokenName, string>;
|
|
4
4
|
export declare const light: Record<UixTokenName, string>;
|
|
5
5
|
export declare const dark: Partial<Record<UixTokenName, string>>;
|
package/build/ts/tokens.js
CHANGED
|
@@ -84,6 +84,7 @@ export const cssVar = {
|
|
|
84
84
|
"scrim": "var(--uix-scrim)",
|
|
85
85
|
"scrim-strong": "var(--uix-scrim-strong)",
|
|
86
86
|
"shadow-sm": "var(--uix-shadow-sm)",
|
|
87
|
+
"shadow-md": "var(--uix-shadow-md)",
|
|
87
88
|
"shadow-popover": "var(--uix-shadow-popover)",
|
|
88
89
|
"shadow-overlay": "var(--uix-shadow-overlay)",
|
|
89
90
|
"highlight-top": "var(--uix-highlight-top)",
|
|
@@ -241,6 +242,7 @@ export const light = {
|
|
|
241
242
|
"scrim": "rgba(0,0,0,.5)",
|
|
242
243
|
"scrim-strong": "rgba(0,0,0,.7)",
|
|
243
244
|
"shadow-sm": "0 1px 2px rgba(0,0,0,.06)",
|
|
245
|
+
"shadow-md": "0 4px 12px rgba(0,0,0,.08),0 1px 2px rgba(0,0,0,.05)",
|
|
244
246
|
"shadow-popover": "0 8px 24px rgba(0,0,0,.10),0 1px 2px rgba(0,0,0,.05)",
|
|
245
247
|
"shadow-overlay": "0 16px 48px rgba(0,0,0,.18)",
|
|
246
248
|
"highlight-top": "inset 0 1px 0 rgba(255,255,255,0)",
|
|
@@ -384,6 +386,10 @@ export const dark = {
|
|
|
384
386
|
"scrollbar-thumb": "rgba(255,255,255,.18)",
|
|
385
387
|
"scrollbar-thumb-hover": "rgba(255,255,255,.30)",
|
|
386
388
|
"highlight-top": "inset 0 1px 0 rgba(255,255,255,.04)",
|
|
389
|
+
"shadow-sm": "0 1px 2px rgba(0,0,0,.40),inset 0 1px 0 rgba(255,255,255,.04)",
|
|
390
|
+
"shadow-md": "0 4px 12px rgba(0,0,0,.45),inset 0 1px 0 rgba(255,255,255,.04)",
|
|
391
|
+
"shadow-popover": "0 8px 24px rgba(0,0,0,.50),0 1px 2px rgba(0,0,0,.40),inset 0 1px 0 rgba(255,255,255,.05)",
|
|
392
|
+
"shadow-overlay": "0 16px 48px rgba(0,0,0,.60),inset 0 1px 0 rgba(255,255,255,.05)",
|
|
387
393
|
};
|
|
388
394
|
|
|
389
395
|
export const num = {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tensor_1/tokens",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.21.0",
|
|
4
4
|
"description": "UIx v2 design tokens — the --uix-* contract for house products (Tensor, POSx, SHOPx). One DTCG source -> CSS variables, Tailwind theme, and typed TS constants.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": [
|
|
@@ -35,11 +35,18 @@
|
|
|
35
35
|
.uix-btn--icon.uix-btn--lg { width: 44px; }
|
|
36
36
|
|
|
37
37
|
.uix-btn[data-loading] { color: transparent !important; position: relative; pointer-events: none; }
|
|
38
|
+
/* The label is hidden (color: transparent), so the ring cannot inherit
|
|
39
|
+
currentColor from the button; each variant names its own foreground.
|
|
40
|
+
TENSOR RX-125 (UIX-01): the ring was on-accent for every variant, so a
|
|
41
|
+
loading secondary/outline/ghost button rendered blank. */
|
|
38
42
|
.uix-btn[data-loading]::after {
|
|
39
43
|
content: ""; position: absolute; width: 1em; height: 1em;
|
|
40
44
|
border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%;
|
|
41
|
-
color: var(--uix-
|
|
45
|
+
color: var(--uix-text); animation: uix-spin .6s linear infinite;
|
|
42
46
|
}
|
|
47
|
+
.uix-btn--primary[data-loading]::after { color: var(--uix-accent-fg); }
|
|
48
|
+
.uix-btn--danger[data-loading]::after { color: var(--uix-danger-fg); }
|
|
49
|
+
.uix-btn--link[data-loading]::after { color: var(--uix-link); }
|
|
43
50
|
|
|
44
51
|
/* attached group */
|
|
45
52
|
.uix-btn-group { display: inline-flex; }
|
|
@@ -36,8 +36,10 @@
|
|
|
36
36
|
.uix-chart__delta[data-tone="warning"] { color: var(--uix-warning-text); }
|
|
37
37
|
.uix-chart__plot { position: relative; min-width: 0; }
|
|
38
38
|
.uix-chart__plot[data-loading] { display: grid; min-height: 180px; place-items: center; border-radius: var(--uix-radius-md); background: var(--uix-bg-subtle); }
|
|
39
|
-
|
|
40
|
-
|
|
39
|
+
/* TENSOR RX-125 (UIX-05): the loading text is a real, translatable child
|
|
40
|
+
(ChartLabels.loading), not CSS content. */
|
|
41
|
+
.uix-chart__loading { color: var(--uix-text-muted); font-size: var(--uix-text-meta); }
|
|
42
|
+
.uix-chart__plot[data-loading] > :not(.uix-chart__loading) { position: absolute; opacity: 0; pointer-events: none; }
|
|
41
43
|
.uix-chart__plot[data-empty] {
|
|
42
44
|
display: grid; min-height: 180px; place-items: center; padding: var(--uix-space-6);
|
|
43
45
|
border: 1px dashed var(--uix-border-strong); border-radius: var(--uix-radius-md);
|
|
@@ -217,6 +217,10 @@
|
|
|
217
217
|
|
|
218
218
|
@media (max-width: 720px) {
|
|
219
219
|
.uix-flow--panel { padding: var(--uix-space-4); overflow-x: auto; }
|
|
220
|
+
/* TENSOR RX-125 (UIX-16): branch, loop and mind-map nodes are positioned over a
|
|
221
|
+
scaled canvas; below this width the nodes would overlap, so the canvas keeps a
|
|
222
|
+
minimum width and the panel scrolls, as the linear layout already does. */
|
|
223
|
+
.uix-flow--branch, .uix-flow--loop, .uix-flow--mindmap { min-width: 640px; }
|
|
220
224
|
.uix-flow--linear .uix-flow__row { min-width: max-content; flex-wrap: nowrap; }
|
|
221
225
|
.uix-flow--linear .uix-flow__connector { flex-basis: 38px; }
|
|
222
226
|
}
|
|
@@ -18,7 +18,9 @@
|
|
|
18
18
|
font-size: var(--uix-text-meta);
|
|
19
19
|
color: var(--stage-fg, var(--uix-text-muted));
|
|
20
20
|
background: var(--stage-bg, var(--uix-bg-subtle));
|
|
21
|
-
|
|
21
|
+
/* TENSOR RX-125 (UIX-17): a border-color alone draws nothing. */
|
|
22
|
+
border: 1px solid var(--stage-border, transparent);
|
|
23
|
+
overflow-wrap: anywhere;
|
|
22
24
|
}
|
|
23
25
|
.uix-pipeline__stage:first-child { border-radius: var(--uix-radius-pill) 0 0 var(--uix-radius-pill); }
|
|
24
26
|
.uix-pipeline__stage:last-child { border-radius: 0 var(--uix-radius-pill) var(--uix-radius-pill) 0; }
|
|
@@ -9,7 +9,9 @@
|
|
|
9
9
|
.uix-relationship-graph__node[data-selected] rect,.uix-relationship-graph__node[data-highlighted] rect { fill:var(--uix-brand-muted); stroke:var(--uix-accent); stroke-width:3; } .uix-relationship-graph__node[data-conflicted] rect { fill:var(--uix-danger-bg); stroke:var(--uix-danger); stroke-dasharray:4 2; }
|
|
10
10
|
.uix-relationship-graph__node:focus-visible rect { stroke:var(--uix-ring); stroke-width:4; }
|
|
11
11
|
.uix-relationship-graph__legend { display:flex; gap:var(--uix-space-4); flex-wrap:wrap; margin:0; padding:0; list-style:none; color:var(--uix-text-muted); font-size:var(--uix-text-meta); }
|
|
12
|
-
.uix-relationship-graph__legend li::before { content:""; display:inline-block; width:.8rem; height:.8rem; margin-right:var(--uix-space-1); border:2px solid var(--uix-chart-1); border-radius:var(--uix-radius-pill); vertical-align:middle; }
|
|
12
|
+
.uix-relationship-graph__legend li::before { content:""; display:inline-block; width:.8rem; height:.8rem; margin-right:var(--uix-space-1); border:2px solid var(--uix-graph-type-color, var(--uix-chart-1)); border-radius:var(--uix-radius-pill); vertical-align:middle; }
|
|
13
|
+
/* TENSOR RX-125 (UIX-14): an edge whose type is in the legend draws that type's colour. */
|
|
14
|
+
.uix-relationship-graph__edge[data-typed] { stroke:var(--uix-graph-type-color, var(--uix-border-strong)); }
|
|
13
15
|
.uix-relationship-graph__list { padding:var(--uix-space-3); border:1px solid var(--uix-border); border-radius:var(--uix-radius-lg); background:var(--uix-surface); }
|
|
14
16
|
.uix-relationship-graph__list>ul { display:grid; gap:var(--uix-space-2); margin:var(--uix-space-2) 0 0; padding:0; list-style:none; }
|
|
15
17
|
.uix-relationship-graph__list li { display:flex; justify-content:space-between; gap:var(--uix-space-2); padding:var(--uix-space-2); border-radius:var(--uix-radius-md); background:var(--uix-bg-subtle); }
|
|
@@ -2,7 +2,11 @@
|
|
|
2
2
|
column sizing, bulk actions, row actions, expandable rows, inline edit, resize,
|
|
3
3
|
search highlight, responsive ladder + compare. Depends only on --uix-* tokens. */
|
|
4
4
|
@layer uix.components {
|
|
5
|
-
|
|
5
|
+
/* TENSOR RX-125 (UIX-07): no height cap by default — a nested scroller hid rows
|
|
6
|
+
below 460px on every table. Opt in with .uix-table-wrap--scroll or set
|
|
7
|
+
--uix-table-max-height. */
|
|
8
|
+
.uix-table-wrap { overflow: auto; border: 1px solid var(--uix-border); border-radius: var(--uix-radius-lg); background: var(--uix-surface); }
|
|
9
|
+
.uix-table-wrap--scroll { max-height: var(--uix-table-max-height, 460px); }
|
|
6
10
|
.uix-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: var(--uix-text-body); }
|
|
7
11
|
|
|
8
12
|
.uix-table thead th {
|
|
@@ -3,15 +3,27 @@
|
|
|
3
3
|
selection, and collapse styling all key off the item, not the row (UIX-FIX-04). */
|
|
4
4
|
@layer uix.components {
|
|
5
5
|
.uix-tree, .uix-tree ul { list-style: none; margin: 0; padding: 0; }
|
|
6
|
-
.uix-tree__group { padding-left: var(--uix-space-5); }
|
|
6
|
+
.uix-tree__group { padding-left: var(--uix-tree-indent-step, var(--uix-space-5)); }
|
|
7
|
+
/* TENSOR RX-125 (UIX-08): the indent stops growing past level 4 — a guide line
|
|
8
|
+
marks the depth instead, so deep nodes keep room for their names. */
|
|
9
|
+
.uix-tree__group .uix-tree__group .uix-tree__group .uix-tree__group .uix-tree__group {
|
|
10
|
+
padding-left: var(--uix-space-1); margin-left: var(--uix-space-1); border-left: 1px solid var(--uix-border);
|
|
11
|
+
}
|
|
7
12
|
.uix-tree__item { outline: none; } /* the focus ring is drawn on the row, below */
|
|
8
13
|
.uix-tree__row { display: flex; align-items: center; gap: var(--uix-space-2); padding: var(--uix-space-2) var(--uix-space-2); border-radius: var(--uix-radius-sm); cursor: pointer; color: var(--uix-text); font-size: var(--uix-text-body); }
|
|
9
|
-
|
|
14
|
+
/* Labels wrap to two lines rather than truncating to one (UIX-08). */
|
|
15
|
+
.uix-tree__label {
|
|
16
|
+
min-width: 0; overflow: hidden; overflow-wrap: anywhere;
|
|
17
|
+
display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2;
|
|
18
|
+
}
|
|
10
19
|
.uix-tree__item > .uix-tree__row:hover { background: var(--uix-bg-hover); }
|
|
11
20
|
.uix-tree__item[aria-selected="true"] > .uix-tree__row { background: var(--uix-bg-active); }
|
|
12
21
|
.uix-tree__item:focus-visible > .uix-tree__row { outline: 2px solid var(--uix-ring); outline-offset: -2px; }
|
|
13
22
|
.uix-tree__toggle { width: 16px; height: 16px; flex: none; display: grid; place-items: center; color: var(--uix-text-muted); transition: transform var(--uix-dur) var(--uix-ease-out); }
|
|
14
23
|
.uix-tree__toggle svg { width: 14px; height: 14px; }
|
|
24
|
+
/* UIX-09: the chevron is a button (pointer target for toggling without selecting). */
|
|
25
|
+
button.uix-tree__toggle { appearance: none; background: none; border: 0; padding: 0; cursor: pointer; border-radius: var(--uix-radius-sm); }
|
|
26
|
+
button.uix-tree__toggle:hover { background: var(--uix-bg-hover); color: var(--uix-text); }
|
|
15
27
|
.uix-tree__item[aria-expanded="false"] > .uix-tree__row .uix-tree__toggle { transform: rotate(-90deg); }
|
|
16
28
|
.uix-tree__item[aria-expanded="false"] > .uix-tree__group { display: none; }
|
|
17
29
|
}
|
package/styles/utilities.css
CHANGED
|
@@ -17,9 +17,9 @@
|
|
|
17
17
|
.uix-truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
18
18
|
|
|
19
19
|
/* elevation — apply the surface shadow tokens as a utility (cards/panels,
|
|
20
|
-
floating popovers/menus/dialogs, pressed/active pills). In dark mode
|
|
21
|
-
|
|
22
|
-
|
|
20
|
+
floating popovers/menus/dialogs, pressed/active pills). In dark mode the
|
|
21
|
+
shadow tokens are redefined (tokens/dark/effect.json) as a stronger drop
|
|
22
|
+
plus the inset top highlight, so an elevated surface still reads as lifted. */
|
|
23
23
|
.uix-elevated { box-shadow: var(--uix-shadow-sm); }
|
|
24
24
|
.uix-elevated-popover { box-shadow: var(--uix-shadow-popover); }
|
|
25
25
|
.uix-elevated-pill { box-shadow: var(--uix-shadow-sm); }
|
package/tokens/base/effect.json
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"shadow-sm": { "$type": "shadow", "$value": "0 1px 2px rgba(0,0,0,.06)" },
|
|
3
|
+
"shadow-md": { "$type": "shadow", "$value": "0 4px 12px rgba(0,0,0,.08),0 1px 2px rgba(0,0,0,.05)", "$description": "RX-125 UIX-03 — a hover lift between sm and popover (the interactive card referenced it; it was never defined)." },
|
|
3
4
|
"shadow-popover": { "$type": "shadow", "$value": "0 8px 24px rgba(0,0,0,.10),0 1px 2px rgba(0,0,0,.05)" },
|
|
4
5
|
"shadow-overlay": { "$type": "shadow", "$value": "0 16px 48px rgba(0,0,0,.18)" },
|
|
5
6
|
"highlight-top": { "$type": "shadow", "$value": "inset 0 1px 0 rgba(255,255,255,0)" },
|
package/tokens/dark/effect.json
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
1
|
{
|
|
2
|
-
"highlight-top": { "$type": "shadow", "$value": "inset 0 1px 0 rgba(255,255,255,.04)" }
|
|
2
|
+
"highlight-top": { "$type": "shadow", "$value": "inset 0 1px 0 rgba(255,255,255,.04)" },
|
|
3
|
+
"shadow-sm": { "$type": "shadow", "$value": "0 1px 2px rgba(0,0,0,.40),inset 0 1px 0 rgba(255,255,255,.04)", "$description": "RX-125 UIX-02 — dark elevation: a stronger drop (a light-mode 6% shadow is invisible on a dark surface) plus the top highlight that reads as the lit edge." },
|
|
4
|
+
"shadow-md": { "$type": "shadow", "$value": "0 4px 12px rgba(0,0,0,.45),inset 0 1px 0 rgba(255,255,255,.04)" },
|
|
5
|
+
"shadow-popover": { "$type": "shadow", "$value": "0 8px 24px rgba(0,0,0,.50),0 1px 2px rgba(0,0,0,.40),inset 0 1px 0 rgba(255,255,255,.05)" },
|
|
6
|
+
"shadow-overlay": { "$type": "shadow", "$value": "0 16px 48px rgba(0,0,0,.60),inset 0 1px 0 rgba(255,255,255,.05)" }
|
|
3
7
|
}
|