@astra-spec/ui 0.0.4 → 0.0.5

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.
Files changed (89) hide show
  1. package/TOKENS.md +14 -8
  2. package/dist/blocks/findings-list.d.ts.map +1 -1
  3. package/dist/blocks/findings-list.js +2 -1
  4. package/dist/blocks/findings-list.js.map +1 -1
  5. package/dist/blocks/section.d.ts.map +1 -1
  6. package/dist/blocks/section.js +3 -2
  7. package/dist/blocks/section.js.map +1 -1
  8. package/dist/components/insight-trigger.d.ts.map +1 -1
  9. package/dist/components/insight-trigger.js +3 -2
  10. package/dist/components/insight-trigger.js.map +1 -1
  11. package/dist/components/paper-detail.d.ts.map +1 -1
  12. package/dist/components/paper-detail.js +2 -2
  13. package/dist/components/paper-detail.js.map +1 -1
  14. package/dist/components/record-preview.d.ts.map +1 -1
  15. package/dist/components/record-preview.js +8 -7
  16. package/dist/components/record-preview.js.map +1 -1
  17. package/dist/model/kind.d.ts +1 -1
  18. package/dist/model/kind.d.ts.map +1 -1
  19. package/dist/model/kind.js +3 -3
  20. package/dist/model/kind.js.map +1 -1
  21. package/dist/primitives/index.d.ts +4 -0
  22. package/dist/primitives/index.d.ts.map +1 -1
  23. package/dist/primitives/index.js +2 -0
  24. package/dist/primitives/index.js.map +1 -1
  25. package/dist/primitives/inline-reference.d.ts +9 -0
  26. package/dist/primitives/inline-reference.d.ts.map +1 -0
  27. package/dist/primitives/inline-reference.js +14 -0
  28. package/dist/primitives/inline-reference.js.map +1 -0
  29. package/dist/primitives/kind-glyph.d.ts +8 -0
  30. package/dist/primitives/kind-glyph.d.ts.map +1 -0
  31. package/dist/primitives/kind-glyph.js +9 -0
  32. package/dist/primitives/kind-glyph.js.map +1 -0
  33. package/dist/primitives/preview-popover.d.ts +1 -1
  34. package/dist/primitives/preview-popover.d.ts.map +1 -1
  35. package/dist/primitives/record-list.d.ts.map +1 -1
  36. package/dist/primitives/record-list.js +3 -2
  37. package/dist/primitives/record-list.js.map +1 -1
  38. package/dist/primitives/relation-list.d.ts.map +1 -1
  39. package/dist/primitives/relation-list.js +3 -2
  40. package/dist/primitives/relation-list.js.map +1 -1
  41. package/isolate.css +7 -0
  42. package/package.json +5 -3
  43. package/primitives.css +2 -0
  44. package/src/blocks/findings-list.tsx +2 -1
  45. package/src/blocks/section.tsx +3 -2
  46. package/src/components/insight-trigger.tsx +3 -2
  47. package/src/components/paper-detail.tsx +2 -2
  48. package/src/components/record-preview.tsx +8 -14
  49. package/src/model/kind.ts +3 -3
  50. package/src/primitives/index.ts +4 -0
  51. package/src/primitives/inline-reference.tsx +25 -0
  52. package/src/primitives/kind-glyph.tsx +24 -0
  53. package/src/primitives/preview-popover.tsx +1 -1
  54. package/src/primitives/record-list.tsx +3 -4
  55. package/src/primitives/relation-list.tsx +4 -7
  56. package/styles/blocks/analysis-tree.css +4 -4
  57. package/styles/blocks/decisions-list.css +6 -6
  58. package/styles/blocks/outputs-list.css +34 -34
  59. package/styles/blocks/papers-list.css +12 -12
  60. package/styles/blocks/records.css +13 -13
  61. package/styles/components/artifact-preview.css +15 -15
  62. package/styles/components/decision-detail.css +23 -23
  63. package/styles/components/evidence.css +2 -7
  64. package/styles/components/finding-detail.css +11 -11
  65. package/styles/components/input-detail.css +7 -7
  66. package/styles/components/insight-detail.css +17 -17
  67. package/styles/components/insight-list.css +6 -6
  68. package/styles/components/insight-trigger.css +5 -5
  69. package/styles/components/output-detail.css +51 -51
  70. package/styles/components/paper-detail.css +22 -22
  71. package/styles/components/paper-doi.css +2 -2
  72. package/styles/components/paper-pdf-viewer.css +6 -6
  73. package/styles/components/record-preview.css +444 -268
  74. package/styles/primitives/badge.css +1 -1
  75. package/styles/primitives/button.css +25 -25
  76. package/styles/primitives/count-heading.css +3 -3
  77. package/styles/primitives/detail-layout.css +20 -20
  78. package/styles/primitives/dialog.css +77 -77
  79. package/styles/primitives/empty-state.css +1 -1
  80. package/styles/primitives/inline-reference.css +37 -0
  81. package/styles/primitives/kind-glyph.css +31 -0
  82. package/styles/primitives/kind.css +6 -0
  83. package/styles/primitives/preview-popover.css +6 -11
  84. package/styles/primitives/prose.css +1 -1
  85. package/styles/primitives/record-list.css +32 -48
  86. package/styles/primitives/relation-list.css +14 -36
  87. package/styles/primitives/surface-header.css +15 -11
  88. package/styles/tokens.css +19 -9
  89. package/styles/views/inventory.css +25 -27
@@ -21,10 +21,10 @@
21
21
 
22
22
  }
23
23
  :where(.astra-ui) .astra-inventory-outputs__group-heading {
24
- margin: 0 0 0.85rem;
24
+ margin: 0 0 13.6px;
25
25
  color: var(--astra-color-text);
26
26
  font-family: var(--astra-font-ui);
27
- font-size: 1rem;
27
+ font-size: 16px;
28
28
  font-weight: 700;
29
29
  line-height: 1.4;
30
30
  }
@@ -37,7 +37,7 @@
37
37
  flex-direction: column;
38
38
  overflow: hidden;
39
39
  border: 1px solid var(--astra-color-border);
40
- border-radius: 0.45rem;
40
+ border-radius: 7.2px;
41
41
  background: var(--astra-color-surface-raised);
42
42
  color: var(--astra-color-text);
43
43
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
@@ -56,12 +56,12 @@
56
56
 
57
57
  :where(.astra-ui) .astra-output-card__open {
58
58
  position: absolute;
59
- top: 0.55rem;
60
- right: 0.55rem;
59
+ top: 8.8px;
60
+ right: 8.8px;
61
61
  border-radius: 99px;
62
62
  background: color-mix(in srgb, var(--astra-color-surface) 88%, transparent);
63
63
  color: var(--astra-color-text-muted);
64
- padding: 0.25rem 0.5rem;
64
+ padding: 4px 8px;
65
65
  font-family: var(--astra-font-ui);
66
66
  font-size: var(--astra-font-size-2xs);
67
67
  font-weight: 700;
@@ -86,7 +86,7 @@
86
86
  :where(.astra-ui) .astra-output-card__body strong {
87
87
  overflow: hidden;
88
88
  font-family: var(--astra-font-ui);
89
- font-size: 0.92rem;
89
+ font-size: 14.72px;
90
90
  line-height: 1.2;
91
91
  text-overflow: ellipsis;
92
92
  white-space: nowrap;
@@ -139,7 +139,7 @@
139
139
  }
140
140
 
141
141
  :where(.astra-ui) .astra-inventory-outputs__group-heading {
142
- margin: 0 0 0.625rem;
142
+ margin: 0 0 10px;
143
143
  color: var(--astra-color-text-subtle);
144
144
  font-family: var(--astra-font-ui);
145
145
  font-size: var(--astra-font-size-2xs);
@@ -150,7 +150,7 @@
150
150
 
151
151
  :where(.astra-ui) .astra-inventory-outputs__gallery {
152
152
  grid-template-columns: repeat(4, minmax(0, 1fr));
153
- gap: 0.875rem;
153
+ gap: 14px;
154
154
  }
155
155
 
156
156
  :where(.astra-ui) .astra-output-card {
@@ -180,7 +180,7 @@
180
180
  object-fit: contain;
181
181
  max-height: none;
182
182
  margin: 0;
183
- padding: 0.45rem;
183
+ padding: 7.2px;
184
184
  }
185
185
 
186
186
  :where(.astra-ui) .astra-output-card__preview > .astra-artifact:where([data-type="image"]) {
@@ -201,8 +201,8 @@
201
201
  flex-direction: column;
202
202
  align-items: center;
203
203
  justify-content: center;
204
- gap: 0.35rem;
205
- padding: 0.6rem;
204
+ gap: 5.6px;
205
+ padding: 9.6px;
206
206
  text-align: center;
207
207
  }
208
208
 
@@ -218,7 +218,7 @@
218
218
 
219
219
  :where(.astra-ui) .astra-output-card__preview > .astra-artifact:where([data-type="metric"]) .astra-artifact__metric-value {
220
220
  max-width: 100%;
221
- font-size: clamp(1.25rem, 3cqw, 1.75rem);
221
+ font-size: clamp(var(--astra-font-size-title), 3cqw, 28px);
222
222
  }
223
223
 
224
224
  :where(.astra-ui) .astra-output-card__preview > .astra-artifact:where([data-type="metric"]) .astra-artifact__metric-uncertainty,
@@ -227,16 +227,16 @@
227
227
  }
228
228
 
229
229
  :where(.astra-ui) .astra-output-card__open {
230
- top: 0.45rem;
231
- right: 0.45rem;
230
+ top: 7.2px;
231
+ right: 7.2px;
232
232
  border: 0;
233
233
  background: color-mix(in srgb, var(--astra-color-surface-raised) 92%, transparent);
234
234
  }
235
235
 
236
236
  :where(.astra-ui) .astra-output-card__body {
237
237
  display: grid;
238
- gap: 0.125rem;
239
- padding: 0.55rem 0.6875rem 0.65rem;
238
+ gap: 2px;
239
+ padding: 8.8px 11px 10.4px;
240
240
  }
241
241
 
242
242
  :where(.astra-ui) .astra-output-card__kind {
@@ -253,13 +253,13 @@
253
253
  font-size: var(--astra-font-size-2xs);
254
254
  }
255
255
 
256
- @container (max-width: 58rem) {
256
+ @container (max-width: 928px) {
257
257
  :where(.astra-ui) .astra-inventory-outputs__gallery {
258
258
  grid-template-columns: repeat(2, minmax(0, 1fr));
259
259
  }
260
260
 
261
261
  }
262
- @container (max-width: 38rem) {
262
+ @container (max-width: 608px) {
263
263
  :where(.astra-ui) .astra-inventory-outputs__gallery {
264
264
  grid-template-columns: minmax(0, 1fr);
265
265
  }
@@ -274,11 +274,11 @@
274
274
  }
275
275
 
276
276
  :where(.astra-ui) .astra-inventory-outputs__group + .astra-inventory-outputs__group {
277
- margin-top: 1.5rem;
277
+ margin-top: 24px;
278
278
  }
279
279
 
280
280
  :where(.astra-ui) .astra-inventory-outputs__group-heading {
281
- margin: 0 0 0.625rem;
281
+ margin: 0 0 10px;
282
282
  color: var(--astra-color-text-subtle);
283
283
  font-family: var(--astra-font-ui);
284
284
  font-size: var(--astra-font-size-2xs);
@@ -290,7 +290,7 @@
290
290
  :where(.astra-ui) .astra-inventory-outputs__gallery {
291
291
  display: grid;
292
292
  grid-template-columns: repeat(4, minmax(0, 1fr));
293
- gap: 0.875rem;
293
+ gap: 14px;
294
294
  }
295
295
 
296
296
  :where(.astra-ui) .astra-output-card {
@@ -321,13 +321,13 @@
321
321
  box-sizing: border-box;
322
322
  width: 100%;
323
323
  height: 100%;
324
- padding: 0.35rem;
324
+ padding: 5.6px;
325
325
  object-fit: contain;
326
326
  }
327
327
 
328
328
  :where(.astra-ui) .astra-output-card__open {
329
- top: 0.45rem;
330
- right: 0.45rem;
329
+ top: 7.2px;
330
+ right: 7.2px;
331
331
  padding: 0;
332
332
  border: 0;
333
333
  background: color-mix(in srgb, var(--astra-color-surface-raised) 92%, transparent);
@@ -337,12 +337,12 @@
337
337
 
338
338
  :where(.astra-ui) .astra-output-card__body {
339
339
  display: block;
340
- padding: 0.5625rem 0.6875rem;
340
+ padding: 9px 11px;
341
341
  }
342
342
 
343
343
  :where(.astra-ui) .astra-output-card__kind {
344
344
  display: block;
345
- margin-bottom: 0.125rem;
345
+ margin-bottom: 2px;
346
346
  color: var(--astra-color-kind-output);
347
347
  font: 700 var(--astra-font-size-2xs)/1.2 var(--astra-font-ui);
348
348
  letter-spacing: 0.08em;
@@ -361,13 +361,13 @@
361
361
  display: none;
362
362
  }
363
363
 
364
- @container (max-width: 48rem) {
364
+ @container (max-width: 768px) {
365
365
  :where(.astra-ui) .astra-inventory-outputs__gallery {
366
366
  grid-template-columns: repeat(2, minmax(0, 1fr));
367
367
  }
368
368
 
369
369
  }
370
- @container (max-width: 34rem) {
370
+ @container (max-width: 544px) {
371
371
  :where(.astra-ui) .astra-inventory-outputs__gallery {
372
372
  grid-template-columns: minmax(0, 1fr);
373
373
  }
@@ -409,7 +409,7 @@
409
409
  gap: var(--astra-space-3);
410
410
  width: 100%;
411
411
  min-width: 0;
412
- min-height: 2.75rem;
412
+ min-height: 44px;
413
413
  margin: 0;
414
414
  padding: var(--astra-space-3) var(--astra-space-2);
415
415
  border: 0;
@@ -493,7 +493,7 @@
493
493
  display: none;
494
494
  }
495
495
 
496
- @container (min-width: 42rem) {
496
+ @container (min-width: 672px) {
497
497
  :where(.astra-ui) .astra-inventory-outputs__compact-grid:where([data-layout="grid"]) {
498
498
  grid-template-columns: repeat(2, minmax(0, 1fr));
499
499
  }
@@ -503,7 +503,7 @@
503
503
  }
504
504
  }
505
505
 
506
- @container (min-width: 72rem) {
506
+ @container (min-width: 1152px) {
507
507
  :where(.astra-ui) .astra-inventory-outputs__compact-grid:where([data-layout="grid"]) {
508
508
  grid-template-columns: repeat(3, minmax(0, 1fr));
509
509
  }
@@ -534,7 +534,7 @@
534
534
  gap: calc(0.5 * var(--astra-space-2));
535
535
  width: auto;
536
536
  max-width: 100%;
537
- min-height: 3.25rem;
537
+ min-height: 52px;
538
538
  padding: var(--astra-space-2) var(--astra-space-3);
539
539
  border: 1px solid var(--astra-color-border);
540
540
  border-radius: calc(2 * var(--astra-radius-preview));
@@ -559,7 +559,7 @@
559
559
  }
560
560
 
561
561
  :where(.astra-ui) .astra-output-entry:where([data-kind="metric"]) .astra-artifact__metric-value {
562
- font-size: 1rem;
562
+ font-size: 16px;
563
563
  line-height: 1.25;
564
564
  }
565
565
 
@@ -7,15 +7,15 @@
7
7
  container-type: inline-size;
8
8
  display: flex;
9
9
  flex-direction: column;
10
- gap: 0.625rem;
10
+ gap: 10px;
11
11
  }
12
12
 
13
13
  :where(.astra-ui) .astra-paper-list > button {
14
14
  display: grid;
15
- grid-template-columns: 3.625rem minmax(0, 1fr) auto 2.875rem;
15
+ grid-template-columns: 58px minmax(0, 1fr) auto 46px;
16
16
  align-items: stretch;
17
17
  width: 100%;
18
- min-height: 4.25rem;
18
+ min-height: 68px;
19
19
  padding: 0;
20
20
  border: 1px solid var(--astra-color-border);
21
21
  background: var(--astra-color-surface-raised);
@@ -35,8 +35,8 @@
35
35
  color: var(--astra-color-text-subtle);
36
36
  background: repeating-linear-gradient(
37
37
  0deg,
38
- color-mix(in srgb, var(--astra-color-canvas) 72%, var(--astra-color-surface-raised)) 0 0.375rem,
39
- var(--astra-color-canvas) 0.375rem 0.75rem
38
+ color-mix(in srgb, var(--astra-color-canvas) 72%, var(--astra-color-surface-raised)) 0 6px,
39
+ var(--astra-color-canvas) 6px 12px
40
40
  );
41
41
  font: 400 var(--astra-font-size-2xs)/1 var(--astra-font-mono);
42
42
  place-items: center;
@@ -46,8 +46,8 @@
46
46
  display: grid;
47
47
  min-width: 0;
48
48
  align-content: center;
49
- gap: 0.1875rem;
50
- padding: 0.6875rem 0.875rem;
49
+ gap: 3px;
50
+ padding: 11px 14px;
51
51
  }
52
52
 
53
53
  :where(.astra-ui) .astra-paper-list__copy strong {
@@ -61,7 +61,7 @@
61
61
  :where(.astra-ui) .astra-paper-list__meta {
62
62
  overflow: hidden;
63
63
  color: var(--astra-color-text-subtle);
64
- font: 400 0.71875rem/1.25 var(--astra-font-ui);
64
+ font: 400 11.5px/1.25 var(--astra-font-ui);
65
65
  text-overflow: ellipsis;
66
66
  white-space: nowrap;
67
67
  }
@@ -69,7 +69,7 @@
69
69
  :where(.astra-ui) .astra-paper-list__meta {
70
70
  display: grid;
71
71
  align-items: center;
72
- padding-inline: 0.75rem;
72
+ padding-inline: 12px;
73
73
  }
74
74
 
75
75
  :where(.astra-ui) .astra-paper-list__arrow {
@@ -78,9 +78,9 @@
78
78
  place-items: center;
79
79
  }
80
80
 
81
- @container (max-width: 48rem) {
81
+ @container (max-width: 768px) {
82
82
  :where(.astra-ui) .astra-paper-list > button {
83
- grid-template-columns: 3.625rem minmax(0, 1fr) 2.875rem;
83
+ grid-template-columns: 58px minmax(0, 1fr) 46px;
84
84
  }
85
85
 
86
86
  :where(.astra-ui) .astra-paper-list__meta {
@@ -89,7 +89,7 @@
89
89
 
90
90
  }
91
91
  :where(.astra-ui) .astra-paper-list {
92
- max-height: min(28rem, 55vh);
92
+ max-height: min(448px, 55vh);
93
93
  overflow-y: auto;
94
94
  overscroll-behavior: contain;
95
95
  scrollbar-gutter: stable;
@@ -7,24 +7,24 @@
7
7
  }
8
8
 
9
9
  :where(.astra-ui) .astra-inventory-records:where([data-kind="input"]) .astra-record-list__body > button {
10
- grid-template-columns: minmax(0, 1fr) minmax(5rem, 0.75fr) 1rem;
10
+ grid-template-columns: minmax(0, 1fr) minmax(80px, 0.75fr) 16px;
11
11
  }
12
12
 
13
13
  }
14
14
  :where(.astra-ui) .astra-inventory-records:where([data-kind="finding"]) .astra-record-list__body > button {
15
- padding-block: 0.78rem;
15
+ padding-block: 12.48px;
16
16
  }
17
17
 
18
18
  /* Space between the tag filter and the list. Only after a filter: the block
19
19
  is a query container (an independent formatting context), so a leading
20
20
  margin would no longer collapse into the section heading's. */
21
21
  :where(.astra-ui) .astra-inventory-records:where([data-kind="decision"]) > .astra-inventory-filter + .astra-record-list {
22
- margin-top: 0.75rem;
22
+ margin-top: 12px;
23
23
  }
24
24
 
25
- @container (max-width: 58rem) {
25
+ @container (max-width: 928px) {
26
26
  :where(.astra-ui) .astra-inventory-records:where([data-kind="decision"]) .astra-record-list__body > button {
27
- grid-template-columns: minmax(0, 1.35fr) minmax(7rem, 0.9fr) 1.25rem;
27
+ grid-template-columns: minmax(0, 1.35fr) minmax(112px, 0.9fr) 20px;
28
28
  }
29
29
 
30
30
  :where(.astra-ui) .astra-inventory-records:where([data-kind="decision"]) .astra-record-list__secondary {
@@ -32,11 +32,11 @@
32
32
  }
33
33
 
34
34
  }
35
- @container (max-width: 38rem) {
35
+ @container (max-width: 608px) {
36
36
  :where(.astra-ui) .astra-inventory-records:where([data-kind="decision"]) .astra-record-list__body > button,
37
37
  :where(.astra-ui) .astra-inventory-records:where([data-kind="input"]) .astra-record-list__body > button {
38
- grid-template-columns: minmax(0, 1fr) 1.25rem;
39
- row-gap: 0.25rem;
38
+ grid-template-columns: minmax(0, 1fr) 20px;
39
+ row-gap: 4px;
40
40
  }
41
41
 
42
42
  }
@@ -49,10 +49,10 @@
49
49
  padding: 0;
50
50
  }
51
51
 
52
- @container (max-width: 48rem) {
52
+ @container (max-width: 768px) {
53
53
  :where(.astra-ui) .astra-inventory-records:where([data-kind="decision"]) .astra-record-list__body > button,
54
54
  :where(.astra-ui) .astra-inventory-records:where([data-kind="input"]) .astra-record-list__body > button {
55
- grid-template-columns: minmax(0, 1.3fr) minmax(8rem, 1fr) 1.25rem;
55
+ grid-template-columns: minmax(0, 1.3fr) minmax(128px, 1fr) 20px;
56
56
  }
57
57
 
58
58
  :where(.astra-ui) .astra-inventory-records:where([data-kind="decision"]) .astra-record-list__secondary,
@@ -61,11 +61,11 @@
61
61
  }
62
62
 
63
63
  }
64
- @container (max-width: 34rem) {
64
+ @container (max-width: 544px) {
65
65
  :where(.astra-ui) .astra-inventory-records:where([data-kind="decision"]) .astra-record-list__body > button,
66
66
  :where(.astra-ui) .astra-inventory-records:where([data-kind="input"]) .astra-record-list__body > button {
67
- grid-template-columns: minmax(0, 1fr) 1.25rem;
68
- row-gap: 0.25rem;
67
+ grid-template-columns: minmax(0, 1fr) 20px;
68
+ row-gap: 4px;
69
69
  }
70
70
 
71
71
  }
@@ -43,7 +43,7 @@
43
43
 
44
44
  :where(.astra-ui) .astra-artifact:where([data-type="metric"]) strong {
45
45
  color: var(--astra-color-kind-output);
46
- font-size: 2rem;
46
+ font-size: 32px;
47
47
  }
48
48
 
49
49
  :where(.astra-ui) .astra-artifact:where([data-type="text"]) pre {
@@ -76,12 +76,12 @@
76
76
  }
77
77
 
78
78
  :where(.astra-ui) .astra-artifact:where([data-type="image"]) img {
79
- padding: clamp(0.75rem, 2vw, 1.5rem);
79
+ padding: clamp(12px, 2vw, 24px);
80
80
  }
81
81
 
82
82
  :where(.astra-ui) .astra-artifact:where([data-type="image"]) figcaption {
83
83
  margin: 0;
84
- padding: 0.55rem 0.75rem;
84
+ padding: 8.8px 12px;
85
85
  border-block-start: 1px solid var(--astra-color-border);
86
86
  font-family: var(--astra-font-ui);
87
87
  font-size: var(--astra-font-size-xs);
@@ -120,7 +120,7 @@
120
120
  :where(.astra-ui) .astra-artifact__placeholder {
121
121
  display: grid;
122
122
  place-items: center;
123
- gap: 0.35rem;
123
+ gap: 5.6px;
124
124
  color: var(--astra-color-text-subtle);
125
125
  font-family: var(--astra-font-ui);
126
126
  font-size: var(--astra-font-size-xs);
@@ -128,7 +128,7 @@
128
128
 
129
129
  :where(.astra-ui) .astra-artifact__placeholder > span:first-child {
130
130
  color: var(--astra-color-text-muted);
131
- font-size: 1.75rem;
131
+ font-size: 28px;
132
132
  }
133
133
 
134
134
  :where(.astra-ui) .astra-artifact__table {
@@ -142,15 +142,15 @@
142
142
  width: 100%;
143
143
  margin: 0;
144
144
  border-collapse: collapse;
145
- font-size: 0.74rem;
145
+ font-size: 11.84px;
146
146
  }
147
147
 
148
148
  :where(.astra-ui) .astra-artifact__table th,
149
149
  :where(.astra-ui) .astra-artifact__table td {
150
- max-width: 12rem;
150
+ max-width: 192px;
151
151
  overflow: hidden;
152
152
  border-bottom: 1px solid color-mix(in srgb, var(--astra-color-artifact-ink) 13%, var(--astra-color-artifact-paper));
153
- padding: 0.38rem 0.55rem;
153
+ padding: 6.08px 8.8px;
154
154
  text-align: left;
155
155
  text-overflow: ellipsis;
156
156
  white-space: nowrap;
@@ -178,7 +178,7 @@
178
178
  }
179
179
 
180
180
  :where(.astra-ui) .astra-artifact__table > p {
181
- margin: 0.65rem 0 0;
181
+ margin: 10.4px 0 0;
182
182
  color: var(--astra-color-text-subtle);
183
183
  font-family: var(--astra-font-ui);
184
184
  font-size: var(--astra-font-size-xs);
@@ -187,7 +187,7 @@
187
187
  :where(.astra-ui) .astra-artifact__table[data-compact] {
188
188
  height: 100%;
189
189
  overflow: hidden;
190
- padding: 0.6rem;
190
+ padding: 9.6px;
191
191
  }
192
192
 
193
193
  :where(.astra-ui) .astra-artifact__table[data-compact] table {
@@ -197,21 +197,21 @@
197
197
 
198
198
  :where(.astra-ui) .astra-artifact__table[data-compact] th,
199
199
  :where(.astra-ui) .astra-artifact__table[data-compact] td {
200
- padding: 0.25rem 0.35rem;
200
+ padding: 4px 5.6px;
201
201
  }
202
202
 
203
203
  :where(.astra-ui) .astra-artifact__metric {
204
204
  display: flex;
205
205
  align-items: baseline;
206
206
  justify-content: center;
207
- gap: 0.4rem;
207
+ gap: 6.4px;
208
208
  color: var(--astra-color-text);
209
209
  font-family: var(--astra-font-ui);
210
210
  }
211
211
 
212
212
  :where(.astra-ui) .astra-artifact__metric-value {
213
- max-width: 13rem;
214
- font-size: clamp(1.45rem, 4vw, 2.5rem);
213
+ max-width: 208px;
214
+ font-size: clamp(23.2px, 4vw, 40px);
215
215
  font-weight: 600;
216
216
  line-height: 1;
217
217
  text-align: center;
@@ -220,7 +220,7 @@
220
220
  :where(.astra-ui) .astra-artifact__metric-uncertainty,
221
221
  :where(.astra-ui) .astra-artifact__metric-unit {
222
222
  color: var(--astra-color-text-subtle);
223
- font-size: 0.8rem;
223
+ font-size: 12.8px;
224
224
  }
225
225
 
226
226
  /* Inside a dialog the table sits on the canvas, so its text follows the
@@ -4,14 +4,14 @@
4
4
  :where(.astra-ui) .astra-decision-insights {
5
5
  display: grid;
6
6
  gap: 0;
7
- margin: 0.2rem 0 0;
7
+ margin: 3.2px 0 0;
8
8
  padding: 0;
9
9
  list-style: none;
10
10
  }
11
11
 
12
12
  :where(.astra-ui) .astra-decision-insights > li {
13
13
  border-bottom: 1px solid var(--astra-color-border);
14
- padding: 0.72rem 0;
14
+ padding: 11.52px 0;
15
15
  }
16
16
 
17
17
  :where(.astra-ui) .astra-decision-insights > li:last-child {
@@ -19,10 +19,10 @@
19
19
  }
20
20
 
21
21
  :where(.astra-ui) .astra-decision-options h4 {
22
- margin: 0 0 0.55rem;
22
+ margin: 0 0 8.8px;
23
23
  color: var(--astra-color-text);
24
24
  font-family: var(--astra-font-ui);
25
- font-size: 0.82rem;
25
+ font-size: 13.var(--astra-font-size-xs);
26
26
  }
27
27
 
28
28
  :where(.astra-ui) .astra-decision-options__marker {
@@ -36,18 +36,18 @@
36
36
  :where(.astra-ui) .astra-decision-options li > span:nth-child(2) {
37
37
  display: grid;
38
38
  min-width: 0;
39
- gap: 0.12rem;
39
+ gap: 1.92px;
40
40
  }
41
41
 
42
42
  :where(.astra-ui) .astra-decision-options strong {
43
43
  font-family: var(--astra-font-ui);
44
- font-size: 0.8rem;
44
+ font-size: 12.8px;
45
45
  }
46
46
 
47
47
  :where(.astra-ui) .astra-decision-options small {
48
48
  color: var(--astra-color-accent);
49
49
  font-family: var(--astra-font-ui);
50
- font-size: 0.6875rem;
50
+ font-size: var(--astra-font-size-2xs);
51
51
  font-weight: 700;
52
52
  letter-spacing: 0.05em;
53
53
  text-transform: uppercase;
@@ -62,65 +62,65 @@
62
62
  border-block-end: 1px solid var(--astra-color-border);
63
63
  border-radius: 0;
64
64
  background: transparent;
65
- padding: 0.75rem 0.25rem;
65
+ padding: 12px 4px;
66
66
  }
67
67
 
68
68
  :where(.astra-ui) .astra-dialog:where([data-mode="embedded"]) .astra-decision-options {
69
- padding-block: 0.875rem;
69
+ padding-block: 14px;
70
70
  border-block-start: 1px solid var(--astra-color-border);
71
71
  }
72
72
 
73
73
  :where(.astra-ui) .astra-dialog:where([data-mode="embedded"]) .astra-decision-options h4 {
74
74
  color: var(--astra-color-text);
75
- font: 700 0.8125rem/1.25 var(--astra-font-ui);
75
+ font: 700 var(--astra-font-size-sm)/1.25 var(--astra-font-ui);
76
76
  letter-spacing: 0;
77
77
  text-transform: none;
78
78
  }
79
79
 
80
80
  :where(.astra-ui) .astra-decision-options {
81
- margin-top: 1.625rem;
81
+ margin-top: 26px;
82
82
  border-top: 0;
83
83
  padding-top: 0;
84
84
  }
85
85
 
86
86
  :where(.astra-ui) .astra-decision-options h4 {
87
- margin: 0 0 0.5rem;
87
+ margin: 0 0 8px;
88
88
  color: var(--astra-color-text);
89
- font: 700 0.875rem/1.2 var(--astra-font-ui);
89
+ font: 700 var(--astra-font-size)/1.2 var(--astra-font-ui);
90
90
  }
91
91
 
92
92
  :where(.astra-ui) .astra-decision-options ul {
93
93
  list-style: none;
94
94
  display: grid;
95
- gap: 0.4375rem;
95
+ gap: 7px;
96
96
  margin: 0;
97
97
  padding: 0;
98
98
  }
99
99
 
100
100
  :where(.astra-ui) .astra-decision-options li {
101
101
  display: grid;
102
- grid-template-columns: 1.375rem minmax(0, 1fr) auto;
103
- gap: 0.6875rem;
102
+ grid-template-columns: 22px minmax(0, 1fr) auto;
103
+ gap: 11px;
104
104
  align-items: center;
105
105
  border: 1px solid var(--astra-color-border);
106
- border-radius: 0.625rem;
106
+ border-radius: 10px;
107
107
  background: var(--astra-color-canvas);
108
- padding: 0.6875rem 0.875rem;
108
+ padding: 11px 14px;
109
109
  }
110
110
 
111
111
  :where(.astra-ui) .astra-decision-options strong {
112
- font: 700 0.875rem/1.2 var(--astra-font-ui);
112
+ font: 700 var(--astra-font-size)/1.2 var(--astra-font-ui);
113
113
  }
114
114
 
115
115
  :where(.astra-ui) .astra-decision-options code {
116
- margin-top: 0.125rem;
116
+ margin-top: 2px;
117
117
  color: var(--astra-color-text-subtle);
118
- font-size: 0.6875rem;
118
+ font-size: var(--astra-font-size-2xs);
119
119
  }
120
120
 
121
121
  :where(.astra-ui) .astra-decision-options small {
122
122
  color: var(--astra-color-kind-decision-ink);
123
- font-size: 0.6875rem;
123
+ font-size: var(--astra-font-size-2xs);
124
124
  }
125
125
 
126
126
  :where(.astra-ui) .astra-decision-insights > li {
@@ -145,7 +145,7 @@
145
145
 
146
146
  :where(.astra-ui) .astra-decision-options li {
147
147
  border-color: var(--astra-color-border);
148
- border-radius: 0.625rem;
148
+ border-radius: 10px;
149
149
  background: var(--astra-color-canvas);
150
150
  }
151
151
 
@@ -15,12 +15,12 @@
15
15
  }
16
16
 
17
17
  :where(.astra-ui) .astra-insight-trigger:where([data-variant="claim"]) .astra-evidence__glyph--insight {
18
- margin-top: 0.22rem;
18
+ margin-top: 3.52px;
19
19
  }
20
20
 
21
21
  :where(.astra-ui) .astra-evidence {
22
22
  list-style: none;
23
- margin: 0.15rem 0 0;
23
+ margin: 2.4px 0 0;
24
24
  padding: 0;
25
25
  display: flex;
26
26
  flex-direction: column;
@@ -37,11 +37,6 @@
37
37
  gap: 0.5em;
38
38
  }
39
39
 
40
- :where(.astra-ui) .astra-evidence__glyph--insight {
41
- color: var(--astra-color-kind-insight);
42
- font-size: 0.85em;
43
- }
44
-
45
40
 
46
41
  :where(.astra-ui) .astra-evidence__tag {
47
42
  font-family: var(--astra-font-ui);