@astra-spec/ui 0.0.3 → 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 (273) hide show
  1. package/README.md +173 -20
  2. package/TOKENS.md +17 -8
  3. package/components.css +1 -0
  4. package/dist/blocks/decisions-list.d.ts +0 -1
  5. package/dist/blocks/decisions-list.d.ts.map +1 -1
  6. package/dist/blocks/decisions-list.js +1 -5
  7. package/dist/blocks/decisions-list.js.map +1 -1
  8. package/dist/blocks/findings-list.d.ts.map +1 -1
  9. package/dist/blocks/findings-list.js +2 -1
  10. package/dist/blocks/findings-list.js.map +1 -1
  11. package/dist/blocks/index.d.ts +3 -3
  12. package/dist/blocks/index.d.ts.map +1 -1
  13. package/dist/blocks/index.js +2 -2
  14. package/dist/blocks/index.js.map +1 -1
  15. package/dist/blocks/inputs-list.js +1 -1
  16. package/dist/blocks/inputs-list.js.map +1 -1
  17. package/dist/blocks/outputs-list.d.ts +2 -2
  18. package/dist/blocks/outputs-list.d.ts.map +1 -1
  19. package/dist/blocks/outputs-list.js +15 -19
  20. package/dist/blocks/outputs-list.js.map +1 -1
  21. package/dist/blocks/section.d.ts +1 -4
  22. package/dist/blocks/section.d.ts.map +1 -1
  23. package/dist/blocks/section.js +3 -13
  24. package/dist/blocks/section.js.map +1 -1
  25. package/dist/components/artifact-preview.d.ts +2 -54
  26. package/dist/components/artifact-preview.d.ts.map +1 -1
  27. package/dist/components/artifact-preview.js +2 -107
  28. package/dist/components/artifact-preview.js.map +1 -1
  29. package/dist/components/decision-detail.d.ts +1 -1
  30. package/dist/components/decision-detail.d.ts.map +1 -1
  31. package/dist/components/decision-detail.js.map +1 -1
  32. package/dist/components/finding-detail.d.ts +2 -2
  33. package/dist/components/finding-detail.d.ts.map +1 -1
  34. package/dist/components/finding-detail.js.map +1 -1
  35. package/dist/components/index.d.ts +9 -13
  36. package/dist/components/index.d.ts.map +1 -1
  37. package/dist/components/index.js +6 -8
  38. package/dist/components/index.js.map +1 -1
  39. package/dist/components/input-detail.d.ts +1 -2
  40. package/dist/components/input-detail.d.ts.map +1 -1
  41. package/dist/components/input-detail.js +0 -3
  42. package/dist/components/input-detail.js.map +1 -1
  43. package/dist/components/insight-detail.d.ts +2 -8
  44. package/dist/components/insight-detail.d.ts.map +1 -1
  45. package/dist/components/insight-detail.js +5 -11
  46. package/dist/components/insight-detail.js.map +1 -1
  47. package/dist/components/insight-trigger.d.ts +1 -1
  48. package/dist/components/insight-trigger.d.ts.map +1 -1
  49. package/dist/components/insight-trigger.js +3 -2
  50. package/dist/components/insight-trigger.js.map +1 -1
  51. package/dist/components/output-detail.d.ts +2 -7
  52. package/dist/components/output-detail.d.ts.map +1 -1
  53. package/dist/components/output-detail.js +3 -30
  54. package/dist/components/output-detail.js.map +1 -1
  55. package/dist/components/output-dialog.d.ts +2 -2
  56. package/dist/components/output-dialog.d.ts.map +1 -1
  57. package/dist/components/output-dialog.js +2 -1
  58. package/dist/components/output-dialog.js.map +1 -1
  59. package/dist/components/paper-detail.d.ts +14 -14
  60. package/dist/components/paper-detail.d.ts.map +1 -1
  61. package/dist/components/paper-detail.js +49 -29
  62. package/dist/components/paper-detail.js.map +1 -1
  63. package/dist/components/paper-pdf-viewer.d.ts +19 -0
  64. package/dist/components/paper-pdf-viewer.d.ts.map +1 -0
  65. package/dist/components/paper-pdf-viewer.js +250 -0
  66. package/dist/components/paper-pdf-viewer.js.map +1 -0
  67. package/dist/components/record-dialog.d.ts +7 -5
  68. package/dist/components/record-dialog.d.ts.map +1 -1
  69. package/dist/components/record-dialog.js +7 -5
  70. package/dist/components/record-dialog.js.map +1 -1
  71. package/dist/components/record-preview.d.ts +2 -2
  72. package/dist/components/record-preview.d.ts.map +1 -1
  73. package/dist/components/record-preview.js +9 -8
  74. package/dist/components/record-preview.js.map +1 -1
  75. package/dist/components/relation-items.d.ts +1 -1
  76. package/dist/components/relation-items.d.ts.map +1 -1
  77. package/dist/components/relation-items.js +10 -3
  78. package/dist/components/relation-items.js.map +1 -1
  79. package/dist/{components/use-detail-stack.d.ts → lib/detail-stack.d.ts} +17 -2
  80. package/dist/lib/detail-stack.d.ts.map +1 -0
  81. package/dist/{components/use-detail-stack.js → lib/detail-stack.js} +15 -2
  82. package/dist/lib/detail-stack.js.map +1 -0
  83. package/dist/lib/index.d.ts +14 -0
  84. package/dist/lib/index.d.ts.map +1 -0
  85. package/dist/lib/index.js +9 -0
  86. package/dist/lib/index.js.map +1 -0
  87. package/dist/lib/labels.d.ts +20 -0
  88. package/dist/lib/labels.d.ts.map +1 -1
  89. package/dist/lib/labels.js +20 -0
  90. package/dist/lib/labels.js.map +1 -1
  91. package/dist/lib/pdf-quote.d.ts +47 -0
  92. package/dist/lib/pdf-quote.d.ts.map +1 -0
  93. package/dist/lib/pdf-quote.js +154 -0
  94. package/dist/lib/pdf-quote.js.map +1 -0
  95. package/dist/lib/pdf-runtime.d.ts +102 -0
  96. package/dist/lib/pdf-runtime.d.ts.map +1 -0
  97. package/dist/lib/pdf-runtime.js +48 -0
  98. package/dist/lib/pdf-runtime.js.map +1 -0
  99. package/dist/lib/preview-data.d.ts +55 -0
  100. package/dist/lib/preview-data.d.ts.map +1 -0
  101. package/dist/lib/preview-data.js +108 -0
  102. package/dist/lib/preview-data.js.map +1 -0
  103. package/dist/lib/prose.d.ts +37 -0
  104. package/dist/lib/prose.d.ts.map +1 -0
  105. package/dist/lib/prose.js +60 -0
  106. package/dist/lib/prose.js.map +1 -0
  107. package/dist/lib/use-isomorphic-layout-effect.d.ts +4 -0
  108. package/dist/lib/use-isomorphic-layout-effect.d.ts.map +1 -0
  109. package/dist/lib/use-isomorphic-layout-effect.js +4 -0
  110. package/dist/lib/use-isomorphic-layout-effect.js.map +1 -0
  111. package/dist/lib/use-output-expanded.d.ts +7 -0
  112. package/dist/lib/use-output-expanded.d.ts.map +1 -0
  113. package/dist/lib/use-output-expanded.js +29 -0
  114. package/dist/lib/use-output-expanded.js.map +1 -0
  115. package/dist/model/index.d.ts +5 -3
  116. package/dist/model/index.d.ts.map +1 -1
  117. package/dist/model/index.js +3 -2
  118. package/dist/model/index.js.map +1 -1
  119. package/dist/model/kind.d.ts +9 -0
  120. package/dist/model/kind.d.ts.map +1 -0
  121. package/dist/model/kind.js +25 -0
  122. package/dist/model/kind.js.map +1 -0
  123. package/dist/model/papers.d.ts +6 -6
  124. package/dist/model/papers.d.ts.map +1 -1
  125. package/dist/model/papers.js +8 -0
  126. package/dist/model/papers.js.map +1 -1
  127. package/dist/model/records.d.ts +5 -1
  128. package/dist/model/records.d.ts.map +1 -1
  129. package/dist/model/records.js +9 -0
  130. package/dist/model/records.js.map +1 -1
  131. package/dist/primitives/badge.d.ts +1 -1
  132. package/dist/primitives/badge.d.ts.map +1 -1
  133. package/dist/primitives/button.js +1 -1
  134. package/dist/primitives/button.js.map +1 -1
  135. package/dist/primitives/dialog.d.ts +1 -1
  136. package/dist/primitives/dialog.d.ts.map +1 -1
  137. package/dist/primitives/dialog.js +3 -3
  138. package/dist/primitives/dialog.js.map +1 -1
  139. package/dist/primitives/index.d.ts +8 -9
  140. package/dist/primitives/index.d.ts.map +1 -1
  141. package/dist/primitives/index.js +4 -5
  142. package/dist/primitives/index.js.map +1 -1
  143. package/dist/primitives/inline-reference.d.ts +9 -0
  144. package/dist/primitives/inline-reference.d.ts.map +1 -0
  145. package/dist/primitives/inline-reference.js +14 -0
  146. package/dist/primitives/inline-reference.js.map +1 -0
  147. package/dist/primitives/kind-glyph.d.ts +8 -0
  148. package/dist/primitives/kind-glyph.d.ts.map +1 -0
  149. package/dist/primitives/kind-glyph.js +9 -0
  150. package/dist/primitives/kind-glyph.js.map +1 -0
  151. package/dist/primitives/preview-popover.d.ts +2 -2
  152. package/dist/primitives/preview-popover.d.ts.map +1 -1
  153. package/dist/primitives/preview-popover.js +1 -1
  154. package/dist/primitives/preview-popover.js.map +1 -1
  155. package/dist/primitives/prose.d.ts +1 -35
  156. package/dist/primitives/prose.d.ts.map +1 -1
  157. package/dist/primitives/prose.js +2 -58
  158. package/dist/primitives/prose.js.map +1 -1
  159. package/dist/primitives/record-list.d.ts +1 -1
  160. package/dist/primitives/record-list.d.ts.map +1 -1
  161. package/dist/primitives/record-list.js +3 -2
  162. package/dist/primitives/record-list.js.map +1 -1
  163. package/dist/primitives/relation-list.d.ts +1 -1
  164. package/dist/primitives/relation-list.d.ts.map +1 -1
  165. package/dist/primitives/relation-list.js +3 -2
  166. package/dist/primitives/relation-list.js.map +1 -1
  167. package/dist/primitives/slot.d.ts.map +1 -0
  168. package/dist/{lib → primitives}/slot.js +1 -1
  169. package/dist/primitives/slot.js.map +1 -0
  170. package/dist/primitives/surface-header.d.ts +1 -1
  171. package/dist/primitives/surface-header.d.ts.map +1 -1
  172. package/dist/views/inventory.d.ts +7 -5
  173. package/dist/views/inventory.d.ts.map +1 -1
  174. package/dist/views/inventory.js +5 -4
  175. package/dist/views/inventory.js.map +1 -1
  176. package/isolate.css +7 -0
  177. package/package.json +15 -3
  178. package/primitives.css +2 -0
  179. package/src/blocks/decisions-list.tsx +1 -6
  180. package/src/blocks/findings-list.tsx +2 -1
  181. package/src/blocks/index.ts +2 -3
  182. package/src/blocks/inputs-list.tsx +1 -1
  183. package/src/blocks/outputs-list.tsx +53 -30
  184. package/src/blocks/section.tsx +3 -15
  185. package/src/components/artifact-preview.tsx +6 -161
  186. package/src/components/decision-detail.tsx +2 -1
  187. package/src/components/finding-detail.tsx +3 -2
  188. package/src/components/index.ts +10 -30
  189. package/src/components/input-detail.tsx +2 -5
  190. package/src/components/insight-detail.tsx +20 -35
  191. package/src/components/insight-trigger.tsx +5 -3
  192. package/src/components/output-detail.tsx +17 -38
  193. package/src/components/output-dialog.tsx +4 -3
  194. package/src/components/paper-detail.tsx +121 -66
  195. package/src/components/paper-pdf-viewer.tsx +319 -0
  196. package/src/components/record-dialog.tsx +15 -10
  197. package/src/components/record-preview.tsx +12 -17
  198. package/src/components/relation-items.ts +15 -5
  199. package/src/{components/use-detail-stack.ts → lib/detail-stack.ts} +24 -1
  200. package/src/lib/index.ts +22 -0
  201. package/src/lib/labels.tsx +40 -0
  202. package/src/lib/pdf-quote.ts +189 -0
  203. package/src/lib/pdf-runtime.ts +131 -0
  204. package/src/lib/preview-data.ts +155 -0
  205. package/src/lib/prose.tsx +87 -0
  206. package/src/lib/use-isomorphic-layout-effect.ts +4 -0
  207. package/src/lib/use-output-expanded.ts +27 -0
  208. package/src/model/index.ts +4 -2
  209. package/src/model/kind.ts +33 -0
  210. package/src/model/papers.ts +9 -7
  211. package/src/model/records.ts +12 -0
  212. package/src/primitives/badge.tsx +1 -1
  213. package/src/primitives/button.tsx +1 -1
  214. package/src/primitives/dialog.tsx +3 -5
  215. package/src/primitives/index.ts +8 -17
  216. package/src/primitives/inline-reference.tsx +25 -0
  217. package/src/primitives/kind-glyph.tsx +24 -0
  218. package/src/primitives/preview-popover.tsx +3 -3
  219. package/src/primitives/prose.tsx +1 -86
  220. package/src/primitives/record-list.tsx +3 -4
  221. package/src/primitives/relation-list.tsx +4 -7
  222. package/src/{lib → primitives}/slot.tsx +1 -1
  223. package/src/primitives/surface-header.tsx +1 -1
  224. package/src/views/inventory.tsx +12 -8
  225. package/styles/blocks/analysis-tree.css +6 -6
  226. package/styles/blocks/decisions-list.css +10 -10
  227. package/styles/blocks/outputs-list.css +272 -45
  228. package/styles/blocks/papers-list.css +14 -14
  229. package/styles/blocks/records.css +13 -13
  230. package/styles/components/artifact-preview.css +21 -21
  231. package/styles/components/decision-detail.css +23 -23
  232. package/styles/components/evidence.css +4 -9
  233. package/styles/components/finding-detail.css +11 -11
  234. package/styles/components/input-detail.css +11 -11
  235. package/styles/components/insight-detail.css +57 -95
  236. package/styles/components/insight-list.css +9 -9
  237. package/styles/components/insight-trigger.css +5 -8
  238. package/styles/components/output-detail.css +74 -189
  239. package/styles/components/paper-detail.css +90 -109
  240. package/styles/components/paper-doi.css +5 -14
  241. package/styles/components/paper-pdf-viewer.css +120 -0
  242. package/styles/components/record-preview.css +444 -268
  243. package/styles/primitives/badge.css +2 -2
  244. package/styles/primitives/button.css +25 -25
  245. package/styles/primitives/count-heading.css +5 -5
  246. package/styles/primitives/detail-layout.css +25 -25
  247. package/styles/primitives/dialog.css +86 -86
  248. package/styles/primitives/empty-state.css +1 -1
  249. package/styles/primitives/inline-reference.css +37 -0
  250. package/styles/primitives/kind-glyph.css +31 -0
  251. package/styles/primitives/kind.css +6 -0
  252. package/styles/primitives/preview-popover.css +6 -11
  253. package/styles/primitives/prose.css +1 -1
  254. package/styles/primitives/record-list.css +46 -62
  255. package/styles/primitives/relation-list.css +20 -42
  256. package/styles/primitives/surface-header.css +20 -16
  257. package/styles/tokens.css +26 -8
  258. package/styles/views/inventory.css +27 -29
  259. package/dist/components/detail-entry.d.ts +0 -15
  260. package/dist/components/detail-entry.d.ts.map +0 -1
  261. package/dist/components/detail-entry.js +0 -14
  262. package/dist/components/detail-entry.js.map +0 -1
  263. package/dist/components/use-detail-stack.d.ts.map +0 -1
  264. package/dist/components/use-detail-stack.js.map +0 -1
  265. package/dist/lib/slot.d.ts.map +0 -1
  266. package/dist/lib/slot.js.map +0 -1
  267. package/dist/primitives/kind.d.ts +0 -6
  268. package/dist/primitives/kind.d.ts.map +0 -1
  269. package/dist/primitives/kind.js +0 -14
  270. package/dist/primitives/kind.js.map +0 -1
  271. package/src/components/detail-entry.ts +0 -19
  272. package/src/primitives/kind.ts +0 -19
  273. /package/dist/{lib → primitives}/slot.d.ts +0 -0
@@ -7,7 +7,7 @@
7
7
  }
8
8
 
9
9
  :where(.astra-ui) .astra-record-list__body > button {
10
- grid-template-columns: minmax(0, 1fr) auto 1rem;
10
+ grid-template-columns: minmax(0, 1fr) auto 16px;
11
11
  }
12
12
 
13
13
  }
@@ -15,7 +15,7 @@
15
15
  :where(.astra-ui) .astra-record-list__body > button {
16
16
  display: grid;
17
17
  grid-template-columns: var(--astra-record-columns);
18
- gap: 0.75rem;
18
+ gap: 12px;
19
19
  align-items: center;
20
20
  }
21
21
 
@@ -23,9 +23,9 @@
23
23
  border-top: 1px solid var(--astra-color-border);
24
24
  border-bottom: 1px solid var(--astra-color-border);
25
25
  color: var(--astra-color-text-subtle);
26
- padding: 0.45rem 0.9rem;
26
+ padding: 7.2px 14.4px;
27
27
  font-family: var(--astra-font-ui);
28
- font-size: 0.63rem;
28
+ font-size: var(--astra-font-size-2xs);
29
29
  font-weight: 700;
30
30
  letter-spacing: 0.07em;
31
31
  text-transform: uppercase;
@@ -36,22 +36,21 @@
36
36
  }
37
37
 
38
38
  :where(.astra-ui) .astra-record-list__name {
39
+ font-size: var(--astra-font-size-sm);
39
40
  display: flex;
40
41
  min-width: 0;
41
- gap: 0.65rem;
42
+ gap: 10.4px;
42
43
  align-items: center;
43
44
  }
44
45
 
45
46
  :where(.astra-ui) .astra-record-list__glyph {
46
47
  flex: 0 0 auto;
47
- color: var(--astra-color-text-subtle);
48
- font-size: 1rem;
49
48
  }
50
49
 
51
50
  :where(.astra-ui) .astra-record-list__name > span:last-child {
52
51
  display: grid;
53
52
  min-width: 0;
54
- gap: 0.14rem;
53
+ gap: 2.24px;
55
54
  }
56
55
 
57
56
  :where(.astra-ui) .astra-record-list__name strong,
@@ -65,23 +64,23 @@
65
64
 
66
65
  :where(.astra-ui) .astra-record-list__name strong {
67
66
  font-family: var(--astra-font-ui);
68
- font-size: 0.78rem;
67
+ font-size: 12.48px;
69
68
  }
70
69
 
71
70
  :where(.astra-ui) .astra-record-list__name small {
72
71
  color: var(--astra-color-text-subtle);
73
- font-size: 0.67rem;
72
+ font-size: var(--astra-font-size-2xs);
74
73
  }
75
74
 
76
75
  :where(.astra-ui) .astra-record-list__tag {
77
76
  display: inline-block;
78
77
  width: max-content;
79
78
  border: 1px solid var(--astra-color-border-strong);
80
- border-radius: 0.22rem;
79
+ border-radius: 3.52px;
81
80
  color: var(--astra-color-text-muted);
82
- padding: 0.13rem 0.32rem;
81
+ padding: 2.08px 5.12px;
83
82
  font-family: var(--astra-font-mono);
84
- font-size: 0.58rem;
83
+ font-size: var(--astra-font-size-2xs);
85
84
  }
86
85
 
87
86
  :where(.astra-ui) .astra-record-list__source {
@@ -101,14 +100,14 @@
101
100
  display: block;
102
101
  color: var(--astra-color-accent);
103
102
  font-family: var(--astra-font-ui);
104
- font-size: 0.72rem;
103
+ font-size: var(--astra-font-size-xs);
105
104
  font-weight: 700;
106
105
  }
107
106
 
108
107
  :where(.astra-ui) .astra-record-list__count {
109
108
  color: var(--astra-color-text-subtle);
110
109
  font-family: var(--astra-font-ui);
111
- font-size: 0.66rem;
110
+ font-size: var(--astra-font-size-2xs);
112
111
  }
113
112
 
114
113
  :where(.astra-ui) .astra-record-list__secondary {
@@ -120,20 +119,14 @@
120
119
  align-items: flex-start;
121
120
  }
122
121
 
123
- :where(.astra-ui) .astra-record-list__name:where([data-variant="claim"]) .astra-record-list__glyph {
124
- color: var(--astra-color-kind-finding);
125
- font-size: 0.72rem;
126
- line-height: 1.35rem;
127
- }
128
-
129
122
  :where(.astra-ui) .astra-record-list__name:where([data-variant="claim"]) > span:last-child {
130
- gap: 0.2rem;
123
+ gap: 3.2px;
131
124
  }
132
125
 
133
126
  :where(.astra-ui) .astra-record-list__name:where([data-variant="claim"]) small {
134
127
  color: var(--astra-color-kind-finding);
135
128
  font-family: var(--astra-font-ui);
136
- font-size: 0.62rem;
129
+ font-size: var(--astra-font-size-2xs);
137
130
  font-weight: 700;
138
131
  letter-spacing: 0.06em;
139
132
  text-transform: uppercase;
@@ -143,22 +136,18 @@
143
136
  overflow: visible;
144
137
  color: var(--astra-color-text);
145
138
  font-family: var(--astra-font-body);
146
- font-size: 0.83rem;
139
+ font-size: 13.28px;
147
140
  font-weight: 500;
148
141
  line-height: 1.38;
149
142
  text-overflow: clip;
150
143
  white-space: normal;
151
144
  }
152
145
 
153
- :where(.astra-ui) .astra-record-list__glyph[data-kind] {
154
- color: var(--astra-kind);
155
- }
156
-
157
146
  :where(.astra-ui) .astra-record-list__head {
158
147
  border-color: var(--astra-color-border);
159
148
  background: var(--astra-color-header);
160
149
  color: var(--astra-color-text-subtle);
161
- font-size: 0.62rem;
150
+ font-size: var(--astra-font-size-2xs);
162
151
  letter-spacing: 0.08em;
163
152
  }
164
153
 
@@ -188,15 +177,14 @@
188
177
  border-radius: 4px;
189
178
  background: var(--astra-color-kind-decision-soft);
190
179
  color: var(--astra-color-kind-decision-ink);
191
- padding: 0.16rem 0.42rem;
192
- font-size: 0.67rem;
180
+ padding: 2.56px 6.72px;
181
+ font-size: var(--astra-font-size-2xs);
193
182
  }
194
183
 
195
184
  :where(.astra-ui) .astra-record-list__body code {
196
185
  font-family: var(--astra-font-mono);
197
186
  }
198
187
 
199
- :where(.astra-ui) .astra-record-list__name:where([data-variant="claim"]) .astra-record-list__glyph,
200
188
  :where(.astra-ui) .astra-record-list__name:where([data-variant="claim"]) small {
201
189
  color: var(--astra-color-kind-finding);
202
190
  }
@@ -206,9 +194,9 @@
206
194
  }
207
195
 
208
196
  :where(.astra-ui) .astra-record-list__body > button {
209
- min-height: 2.75rem;
210
- gap: 0.75rem;
211
- padding: 0.6875rem 0.125rem;
197
+ min-height: 44px;
198
+ gap: 12px;
199
+ padding: 11px 2px;
212
200
  border-color: var(--astra-color-border-subtle);
213
201
  background: transparent;
214
202
  font-family: var(--astra-font-ui);
@@ -220,22 +208,22 @@
220
208
  }
221
209
 
222
210
  :where(.astra-ui) .astra-record-list__name {
223
- gap: 0.6rem;
211
+ font-size: var(--astra-font-size-sm);
212
+ gap: 9.6px;
224
213
  }
225
214
 
226
215
  :where(.astra-ui) .astra-record-list__glyph {
227
- font-size: 0.75rem;
228
216
  text-align: center;
229
217
  }
230
218
 
231
219
  :where(.astra-ui) .astra-record-list__name strong {
232
- font-size: 0.875rem;
220
+ font-size: var(--astra-font-size);
233
221
  font-weight: 600;
234
222
  }
235
223
 
236
224
  :where(.astra-ui) .astra-record-list__name small {
237
225
  font-family: var(--astra-font-ui);
238
- font-size: 0.71875rem;
226
+ font-size: 11.5px;
239
227
  }
240
228
 
241
229
  :where(.astra-ui) .astra-record-list__selected {
@@ -246,7 +234,7 @@
246
234
  color: var(--astra-color-text-muted);
247
235
  padding: 0;
248
236
  font-family: var(--astra-font-body);
249
- font-size: 0.84375rem;
237
+ font-size: 13.5px;
250
238
  font-weight: 400;
251
239
  }
252
240
 
@@ -257,23 +245,23 @@
257
245
  color: var(--astra-color-text-subtle);
258
246
  padding: 0;
259
247
  font-family: var(--astra-font-ui);
260
- font-size: 0.6875rem;
248
+ font-size: var(--astra-font-size-2xs);
261
249
  text-align: end;
262
250
  }
263
251
 
264
252
  :where(.astra-ui) .astra-record-list__body code {
265
253
  color: var(--astra-color-text-subtle);
266
- font-size: 0.6875rem;
254
+ font-size: var(--astra-font-size-2xs);
267
255
  }
268
256
 
269
257
  :where(.astra-ui) .astra-record-list__arrow {
270
258
  color: var(--astra-color-text-faint);
271
259
  }
272
260
 
273
- @container (max-width: 38rem) {
261
+ @container (max-width: 608px) {
274
262
  :where(.astra-ui) .astra-record-list__body > button {
275
- grid-template-columns: minmax(0, 1fr) 1.25rem;
276
- row-gap: 0.25rem;
263
+ grid-template-columns: minmax(0, 1fr) 20px;
264
+ row-gap: 4px;
277
265
  }
278
266
 
279
267
  :where(.astra-ui) .astra-record-list__primary {
@@ -314,11 +302,11 @@
314
302
  :where(.astra-ui) .astra-record-list__body > button {
315
303
  display: grid;
316
304
  grid-template-columns: var(--astra-record-columns);
317
- gap: 0.75rem;
305
+ gap: 12px;
318
306
  align-items: baseline;
319
307
  width: 100%;
320
308
  min-height: 0;
321
- padding: 0.6875rem 0.125rem;
309
+ padding: 11px 2px;
322
310
  border: 0;
323
311
  border-bottom: 1px solid var(--astra-color-border-subtle);
324
312
  background: transparent;
@@ -333,20 +321,20 @@
333
321
  }
334
322
 
335
323
  :where(.astra-ui) .astra-record-list__name {
324
+ font-size: var(--astra-font-size-sm);
336
325
  display: grid;
337
- grid-template-columns: 1rem minmax(0, 1fr);
338
- gap: 0.75rem;
326
+ grid-template-columns: 16px minmax(0, 1fr);
327
+ gap: 12px;
339
328
  align-items: baseline;
340
329
  }
341
330
 
342
331
  :where(.astra-ui) .astra-record-list__glyph {
343
- font-size: 0.625rem;
344
332
  text-align: center;
345
333
  }
346
334
 
347
335
  :where(.astra-ui) .astra-record-list__name strong {
348
336
  overflow: hidden;
349
- font: 600 0.875rem/1.25 var(--astra-font-ui);
337
+ font: 600 var(--astra-font-size)/1.25 var(--astra-font-ui);
350
338
  text-overflow: ellipsis;
351
339
  white-space: nowrap;
352
340
  }
@@ -357,14 +345,14 @@
357
345
  :where(.astra-ui) .astra-record-list__count {
358
346
  overflow: hidden;
359
347
  color: var(--astra-color-text-muted);
360
- font: 400 0.84375rem/1.25 var(--astra-font-body);
348
+ font: 400 13.5px/1.25 var(--astra-font-body);
361
349
  text-overflow: ellipsis;
362
350
  white-space: nowrap;
363
351
  }
364
352
 
365
353
  :where(.astra-ui) .astra-record-list__body code {
366
354
  color: var(--astra-color-text-subtle);
367
- font: 400 0.6875rem/1.25 var(--astra-font-mono);
355
+ font: 400 var(--astra-font-size-2xs)/1.25 var(--astra-font-mono);
368
356
  }
369
357
 
370
358
  :where(.astra-ui) .astra-record-list__tag {
@@ -375,7 +363,7 @@
375
363
  border-radius: 0;
376
364
  color: var(--astra-color-text-subtle);
377
365
  background: transparent;
378
- font: 400 0.6875rem/1.25 var(--astra-font-ui);
366
+ font: 400 var(--astra-font-size-2xs)/1.25 var(--astra-font-ui);
379
367
  text-align: right;
380
368
  text-overflow: ellipsis;
381
369
  white-space: nowrap;
@@ -386,14 +374,10 @@
386
374
  text-align: right;
387
375
  }
388
376
 
389
- :where(.astra-ui) .astra-record-list__name:where([data-variant="claim"]) .astra-record-list__glyph {
390
- color: var(--astra-color-kind-finding);
391
- }
392
-
393
- @container (max-width: 34rem) {
377
+ @container (max-width: 544px) {
394
378
  :where(.astra-ui) .astra-record-list__body > button {
395
- grid-template-columns: minmax(0, 1fr) 1.25rem;
396
- row-gap: 0.25rem;
379
+ grid-template-columns: minmax(0, 1fr) 20px;
380
+ row-gap: 4px;
397
381
  }
398
382
 
399
383
  :where(.astra-ui) .astra-record-list__primary {
@@ -416,7 +400,7 @@
416
400
 
417
401
  }
418
402
  :where(.astra-ui) .astra-record-list__body {
419
- max-height: min(28rem, 55vh);
403
+ max-height: min(448px, 55vh);
420
404
  overflow-y: auto;
421
405
  overscroll-behavior: contain;
422
406
  scrollbar-gutter: stable;
@@ -3,21 +3,21 @@
3
3
  @layer astra.components {
4
4
  :where(.astra-ui) .astra-relation-list__header {
5
5
  display: flex;
6
- gap: 0.75rem;
6
+ gap: 12px;
7
7
  align-items: center;
8
8
  justify-content: space-between;
9
9
  }
10
10
 
11
11
  :where(.astra-ui) .astra-relation-list li {
12
12
  display: grid;
13
- grid-template-columns: 0.9rem minmax(0, 1fr) auto;
14
- column-gap: 0.55rem;
13
+ grid-template-columns: 14.4px minmax(0, 1fr) auto;
14
+ column-gap: 8.8px;
15
15
  align-items: center;
16
16
  border: 0;
17
17
  border-bottom: 1px solid var(--astra-color-border);
18
18
  border-radius: 0;
19
19
  background: transparent;
20
- padding: 0.62rem 0.08rem;
20
+ padding: 9.92px 1.28px;
21
21
  }
22
22
 
23
23
  :where(.astra-ui) .astra-relation-list li[data-interactive] {
@@ -27,16 +27,16 @@
27
27
 
28
28
  :where(.astra-ui) .astra-relation-list__trigger {
29
29
  display: grid;
30
- grid-template-columns: 0.9rem minmax(0, 1fr) auto;
30
+ grid-template-columns: 14.4px minmax(0, 1fr) auto;
31
31
  width: 100%;
32
- column-gap: 0.55rem;
32
+ column-gap: 8.8px;
33
33
  align-items: center;
34
34
  cursor: pointer;
35
35
  border: 0;
36
36
  border-radius: 0;
37
37
  background: transparent;
38
38
  color: inherit;
39
- padding: 0.62rem 0.08rem;
39
+ padding: 9.92px 1.28px;
40
40
  text-align: left;
41
41
  }
42
42
 
@@ -55,39 +55,17 @@
55
55
  grid-column: 1;
56
56
  grid-row: 1 / span 2;
57
57
  align-self: start;
58
- color: var(--astra-color-text-subtle);
59
- line-height: 1.2;
60
58
  }
61
59
 
62
60
  :where(.astra-ui) .astra-relation-item__glyph[data-empty] {
63
61
  visibility: hidden;
64
62
  }
65
63
 
66
- :where(.astra-ui) .astra-relation-list [data-kind="decision"] .astra-relation-item__glyph {
67
- color: var(--astra-color-kind-decision);
68
- }
69
-
70
- :where(.astra-ui) .astra-relation-list [data-kind="input"] .astra-relation-item__glyph {
71
- color: var(--astra-color-kind-input);
72
- }
73
-
74
- :where(.astra-ui) .astra-relation-list [data-kind="output"] .astra-relation-item__glyph {
75
- color: var(--astra-color-kind-output);
76
- }
77
-
78
- :where(.astra-ui) .astra-relation-list [data-kind="finding"] .astra-relation-item__glyph {
79
- color: var(--astra-color-kind-finding);
80
- }
81
-
82
- :where(.astra-ui) .astra-relation-list [data-kind="prior_insight"] .astra-relation-item__glyph {
83
- color: var(--astra-color-kind-insight);
84
- }
85
-
86
64
  :where(.astra-ui) .astra-relation-item__copy {
87
65
  display: grid;
88
66
  grid-column: 2;
89
67
  min-width: 0;
90
- gap: 0.1rem;
68
+ gap: 1.6px;
91
69
  }
92
70
 
93
71
  :where(.astra-ui) .astra-relation-list li > small {
@@ -97,7 +75,7 @@
97
75
 
98
76
  :where(.astra-ui) .astra-relation-item__label {
99
77
  font-family: var(--astra-font-ui);
100
- font-size: 0.72rem;
78
+ font-size: var(--astra-font-size-xs);
101
79
  }
102
80
 
103
81
  :where(.astra-ui) .astra-relation-item__label,
@@ -109,25 +87,25 @@
109
87
  :where(.astra-ui) .astra-relation-list code,
110
88
  :where(.astra-ui) .astra-relation-list small {
111
89
  color: var(--astra-color-text-subtle);
112
- font-size: 0.59rem;
90
+ font-size: var(--astra-font-size-2xs);
113
91
  }
114
92
 
115
93
  :where(.astra-ui) .astra-relation-list > p {
116
94
  color: var(--astra-color-text-subtle);
117
- font-size: 0.72rem;
95
+ font-size: var(--astra-font-size-xs);
118
96
  }
119
97
 
120
98
  :where(.astra-ui) .astra-relation-list > .astra-relation-list__description {
121
- margin: 0.22rem 0 0.62rem;
99
+ margin: 3.52px 0 9.92px;
122
100
  color: var(--astra-color-text-subtle);
123
- font-size: 0.67rem;
101
+ font-size: var(--astra-font-size-xs);
124
102
  line-height: 1.45;
125
103
  }
126
104
 
127
105
  :where(.astra-ui) .astra-dialog:where([data-mode="embedded"]) .astra-relation-list li,
128
106
  :where(.astra-ui) .astra-dialog:where([data-mode="embedded"]) .astra-relation-list__trigger {
129
107
  min-height: 0;
130
- padding-block: 0.5rem;
108
+ padding-block: 8px;
131
109
  }
132
110
 
133
111
  :where(.astra-ui) .astra-relation-list ul {
@@ -135,7 +113,7 @@
135
113
  list-style: none;
136
114
  display: grid;
137
115
  gap: 0;
138
- margin: 0.5rem 0 0;
116
+ margin: 8px 0 0;
139
117
  border: 0;
140
118
  padding: 0;
141
119
  }
@@ -157,18 +135,18 @@
157
135
 
158
136
  :where(.astra-ui) .astra-relation-list__trigger,
159
137
  :where(.astra-ui) .astra-relation-list li:where(:not([data-interactive])) {
160
- grid-template-columns: 1.375rem minmax(0, 1fr) 1rem;
161
- padding: 0.625rem 0.25rem;
138
+ grid-template-columns: 22px minmax(0, 1fr) 16px;
139
+ padding: 10px 4px;
162
140
  }
163
141
 
164
142
  :where(.astra-ui) .astra-relation-item__label {
165
- font: 400 0.8125rem/1.25 var(--astra-font-ui);
143
+ font: 400 var(--astra-font-size-sm)/1.25 var(--astra-font-ui);
166
144
  }
167
145
 
168
146
  :where(.astra-ui) .astra-relation-list small {
169
- margin-top: 0.125rem;
147
+ margin-top: 2px;
170
148
  color: var(--astra-color-text-subtle);
171
- font-size: 0.6875rem;
149
+ font-size: var(--astra-font-size-2xs);
172
150
  }
173
151
 
174
152
  :where(.astra-ui) .astra-relation-list__trigger:hover {
@@ -50,12 +50,12 @@
50
50
  }
51
51
 
52
52
  :where(.astra-ui) .astra-surface-header[data-density="regular"] {
53
- min-height: 4.5rem;
54
- padding: 0.85rem 1rem;
53
+ min-height: 72px;
54
+ padding: 13.6px 16px;
55
55
  }
56
56
 
57
57
  :where(.astra-ui) .astra-surface-header[data-density="compact"] {
58
- padding: 0.72rem 0.8rem;
58
+ padding: 11.52px 12.8px;
59
59
  }
60
60
 
61
61
  :where(.astra-ui) .astra-surface-header[data-density="inline"] {
@@ -69,7 +69,7 @@
69
69
  :where(.astra-ui) .astra-surface-header .astra-surface-header__content {
70
70
  display: grid;
71
71
  min-width: 0;
72
- gap: 0.2rem;
72
+ gap: 3.2px;
73
73
  }
74
74
 
75
75
  :where(.astra-ui) .astra-surface-header[data-density="inline"] .astra-surface-header__content {
@@ -83,28 +83,28 @@
83
83
  :where(.astra-ui) .astra-surface-header .astra-surface-header__eyebrow {
84
84
  color: var(--astra-kind-ink, var(--astra-color-eyebrow));
85
85
  font-family: var(--astra-font-ui);
86
- font-size: 0.62rem;
86
+ font-size: var(--astra-font-size-2xs);
87
87
  font-weight: 700;
88
88
  letter-spacing: 0.09em;
89
89
  text-transform: uppercase;
90
90
  }
91
91
 
92
92
  :where(.astra-ui) .astra-surface-header[data-density="compact"] .astra-surface-header__eyebrow {
93
- font-size: 0.56rem;
93
+ font-size: var(--astra-font-size-2xs);
94
94
  }
95
95
 
96
96
  :where(.astra-ui) .astra-surface-header .astra-surface-header__title {
97
97
  margin: 0;
98
98
  color: var(--astra-color-text);
99
99
  font-family: var(--astra-font-heading);
100
- font-size: clamp(1.05rem, 2vw, 1.4rem);
100
+ font-size: clamp(16.8px, 2vw, 22.4px);
101
101
  font-weight: 650;
102
102
  line-height: 1.2;
103
103
  }
104
104
 
105
105
  :where(.astra-ui) .astra-surface-header[data-density="compact"] .astra-surface-header__title {
106
- margin-block-start: 0.15rem;
107
- font-size: 0.86rem;
106
+ margin-block-start: 2.4px;
107
+ font-size: 13.76px;
108
108
  line-height: 1.25;
109
109
  }
110
110
 
@@ -113,14 +113,14 @@
113
113
  overflow-wrap: anywhere;
114
114
  color: var(--astra-color-text-subtle);
115
115
  font-family: var(--astra-font-mono);
116
- font-size: 0.68rem;
116
+ font-size: var(--astra-font-size-2xs);
117
117
  }
118
118
 
119
119
  :where(.astra-ui) .astra-surface-header .astra-surface-header__actions {
120
120
  display: flex;
121
121
  flex: 0 0 auto;
122
122
  align-items: center;
123
- gap: 0.35rem;
123
+ gap: 5.6px;
124
124
  }
125
125
 
126
126
  :where(.astra-ui) .astra-surface-header .astra-surface-header__eyebrow {
@@ -134,7 +134,7 @@
134
134
  :where(.astra-ui) .astra-dialog:where([data-mode="embedded"]) .astra-surface-header__content {
135
135
  display: grid;
136
136
  min-width: 0;
137
- gap: 0.5rem;
137
+ gap: 8px;
138
138
  }
139
139
 
140
140
  :where(.astra-ui) .astra-dialog:where([data-mode="embedded"]) .astra-surface-header__eyebrow {
@@ -143,14 +143,14 @@
143
143
 
144
144
  :where(.astra-ui) .astra-dialog__header .astra-surface-header__leading {
145
145
  flex: 0 0 auto;
146
- margin-top: 0.1875rem;
146
+ margin-top: 3px;
147
147
  }
148
148
 
149
149
  :where(.astra-ui) .astra-dialog__header .astra-surface-header__eyebrow {
150
150
  min-width: 0;
151
151
  overflow: hidden;
152
152
  font-family: var(--astra-font-ui);
153
- font-size: 0.6875rem;
153
+ font-size: var(--astra-font-size-2xs);
154
154
  font-weight: 700;
155
155
  letter-spacing: 0.075em;
156
156
  line-height: 1.2;
@@ -163,7 +163,7 @@
163
163
  flex: 1 1 auto;
164
164
  display: grid;
165
165
  min-width: 0;
166
- gap: 0.3rem;
166
+ gap: 4.8px;
167
167
  }
168
168
 
169
169
  :where(.astra-ui) .astra-dialog__header .astra-surface-header__eyebrow,
@@ -177,7 +177,11 @@
177
177
  white-space: nowrap;
178
178
  color: var(--astra-kind-ink, var(--astra-color-text-subtle));
179
179
  font-family: var(--astra-font-ui);
180
- font-size: 0.6875rem;
180
+ font-size: var(--astra-font-size-2xs);
181
181
  }
182
182
 
183
+ :where(.astra-ui) .astra-dialog .astra-dialog__header .astra-surface-header__title {
184
+ font: 600 var(--astra-font-size-title)/1.25 var(--astra-font-ui);
185
+ letter-spacing: -0.01em;
186
+ }
183
187
  }
package/styles/tokens.css CHANGED
@@ -65,20 +65,38 @@
65
65
  --astra-kind: var(--astra-color-accent);
66
66
 
67
67
  /* Typography */
68
- --astra-font-ui: Georgia, "Times New Roman", serif;
69
- --astra-font-body: Georgia, "Times New Roman", serif;
70
- --astra-font-heading: Georgia, "Times New Roman", serif;
68
+ --astra-font-ui: "Source Serif 4", Georgia, "Times New Roman", serif;
69
+ --astra-font-body: "Source Serif 4", Georgia, "Times New Roman", serif;
70
+ --astra-font-heading: "Source Serif 4", Georgia, "Times New Roman", serif;
71
71
  --astra-font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
72
- --astra-font-size: 0.875rem;
72
+
73
+ /* Type scale. --astra-font-size is the default (md) step; the smaller
74
+ steps cover chrome text — labels (sm), body-adjacent metadata (xs)
75
+ and badges/eyebrows/meta (2xs). The neutral theme uses an 11px floor:
76
+ nothing legible renders below it. */
77
+ --astra-font-size-2xs: 11px;
78
+ --astra-font-size-xs: 12px;
79
+ --astra-font-size-sm: 13px;
80
+ --astra-font-size: 14px;
81
+
82
+ --astra-color-surface-inset: color-mix(in srgb, var(--astra-color-text) 4%, var(--astra-color-surface-muted));
83
+ --astra-color-accent-soft: color-mix(in srgb, var(--astra-color-accent) 12%, transparent);
84
+ --astra-color-kind-value: var(--astra-color-kind-analysis);
85
+ --astra-color-preview-pointer: var(--astra-color-text);
86
+ --astra-color-citation: var(--astra-kind);
87
+ --astra-color-citation-hover: var(--astra-color-link);
88
+ --astra-font-size-meta: 11px;
89
+ --astra-font-size-title: 20px;
90
+ --astra-font-size-claim: 19px;
73
91
 
74
92
  /* Geometry */
75
93
  --astra-radius-control: 0;
76
- --astra-radius-preview: 0.1875rem;
94
+ --astra-radius-preview: 3px;
77
95
  --astra-shadow-raised: none;
78
96
  --astra-shadow-preview: 0 6px 18px rgb(34 31 32 / 0.1);
79
- --astra-width-preview: 27.5rem;
80
- --astra-space-2: 0.5rem;
81
- --astra-space-3: 0.75rem;
97
+ --astra-width-preview: 440px;
98
+ --astra-space-2: 8px;
99
+ --astra-space-3: 12px;
82
100
  --astra-z-dialog: 1000;
83
101
  --astra-z-preview: 1100;
84
102
  --astra-z-fullscreen: 10000;