@astra-spec/ui 0.0.1

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 (259) hide show
  1. package/LICENSE +29 -0
  2. package/README.md +261 -0
  3. package/TOKENS.md +93 -0
  4. package/blocks.css +7 -0
  5. package/components.css +13 -0
  6. package/dist/blocks/analysis-tree.d.ts +13 -0
  7. package/dist/blocks/analysis-tree.d.ts.map +1 -0
  8. package/dist/blocks/analysis-tree.js +19 -0
  9. package/dist/blocks/analysis-tree.js.map +1 -0
  10. package/dist/blocks/decisions-list.d.ts +17 -0
  11. package/dist/blocks/decisions-list.d.ts.map +1 -0
  12. package/dist/blocks/decisions-list.js +56 -0
  13. package/dist/blocks/decisions-list.js.map +1 -0
  14. package/dist/blocks/findings-list.d.ts +9 -0
  15. package/dist/blocks/findings-list.d.ts.map +1 -0
  16. package/dist/blocks/findings-list.js +35 -0
  17. package/dist/blocks/findings-list.js.map +1 -0
  18. package/dist/blocks/index.d.ts +18 -0
  19. package/dist/blocks/index.d.ts.map +1 -0
  20. package/dist/blocks/index.js +10 -0
  21. package/dist/blocks/index.js.map +1 -0
  22. package/dist/blocks/inputs-list.d.ts +9 -0
  23. package/dist/blocks/inputs-list.d.ts.map +1 -0
  24. package/dist/blocks/inputs-list.js +32 -0
  25. package/dist/blocks/inputs-list.js.map +1 -0
  26. package/dist/blocks/outputs-list.d.ts +18 -0
  27. package/dist/blocks/outputs-list.d.ts.map +1 -0
  28. package/dist/blocks/outputs-list.js +47 -0
  29. package/dist/blocks/outputs-list.js.map +1 -0
  30. package/dist/blocks/papers-list.d.ts +16 -0
  31. package/dist/blocks/papers-list.d.ts.map +1 -0
  32. package/dist/blocks/papers-list.js +20 -0
  33. package/dist/blocks/papers-list.js.map +1 -0
  34. package/dist/blocks/prior-insights-list.d.ts +9 -0
  35. package/dist/blocks/prior-insights-list.d.ts.map +1 -0
  36. package/dist/blocks/prior-insights-list.js +29 -0
  37. package/dist/blocks/prior-insights-list.js.map +1 -0
  38. package/dist/blocks/section.d.ts +36 -0
  39. package/dist/blocks/section.d.ts.map +1 -0
  40. package/dist/blocks/section.js +30 -0
  41. package/dist/blocks/section.js.map +1 -0
  42. package/dist/components/artifact-preview.d.ts +71 -0
  43. package/dist/components/artifact-preview.d.ts.map +1 -0
  44. package/dist/components/artifact-preview.js +170 -0
  45. package/dist/components/artifact-preview.js.map +1 -0
  46. package/dist/components/decision-detail.d.ts +17 -0
  47. package/dist/components/decision-detail.d.ts.map +1 -0
  48. package/dist/components/decision-detail.js +21 -0
  49. package/dist/components/decision-detail.js.map +1 -0
  50. package/dist/components/detail-entry.d.ts +15 -0
  51. package/dist/components/detail-entry.d.ts.map +1 -0
  52. package/dist/components/detail-entry.js +14 -0
  53. package/dist/components/detail-entry.js.map +1 -0
  54. package/dist/components/finding-detail.d.ts +19 -0
  55. package/dist/components/finding-detail.d.ts.map +1 -0
  56. package/dist/components/finding-detail.js +39 -0
  57. package/dist/components/finding-detail.js.map +1 -0
  58. package/dist/components/index.d.ts +28 -0
  59. package/dist/components/index.d.ts.map +1 -0
  60. package/dist/components/index.js +15 -0
  61. package/dist/components/index.js.map +1 -0
  62. package/dist/components/input-detail.d.ts +15 -0
  63. package/dist/components/input-detail.d.ts.map +1 -0
  64. package/dist/components/input-detail.js +21 -0
  65. package/dist/components/input-detail.js.map +1 -0
  66. package/dist/components/insight-detail.d.ts +25 -0
  67. package/dist/components/insight-detail.d.ts.map +1 -0
  68. package/dist/components/insight-detail.js +30 -0
  69. package/dist/components/insight-detail.js.map +1 -0
  70. package/dist/components/insight-trigger.d.ts +20 -0
  71. package/dist/components/insight-trigger.d.ts.map +1 -0
  72. package/dist/components/insight-trigger.js +32 -0
  73. package/dist/components/insight-trigger.js.map +1 -0
  74. package/dist/components/output-detail.d.ts +39 -0
  75. package/dist/components/output-detail.d.ts.map +1 -0
  76. package/dist/components/output-detail.js +124 -0
  77. package/dist/components/output-detail.js.map +1 -0
  78. package/dist/components/output-dialog.d.ts +18 -0
  79. package/dist/components/output-dialog.d.ts.map +1 -0
  80. package/dist/components/output-dialog.js +11 -0
  81. package/dist/components/output-dialog.js.map +1 -0
  82. package/dist/components/paper-detail.d.ts +34 -0
  83. package/dist/components/paper-detail.d.ts.map +1 -0
  84. package/dist/components/paper-detail.js +60 -0
  85. package/dist/components/paper-detail.js.map +1 -0
  86. package/dist/components/record-dialog.d.ts +33 -0
  87. package/dist/components/record-dialog.d.ts.map +1 -0
  88. package/dist/components/record-dialog.js +114 -0
  89. package/dist/components/record-dialog.js.map +1 -0
  90. package/dist/components/relation-items.d.ts +9 -0
  91. package/dist/components/relation-items.d.ts.map +1 -0
  92. package/dist/components/relation-items.js +20 -0
  93. package/dist/components/relation-items.js.map +1 -0
  94. package/dist/components/use-detail-stack.d.ts +31 -0
  95. package/dist/components/use-detail-stack.d.ts.map +1 -0
  96. package/dist/components/use-detail-stack.js +49 -0
  97. package/dist/components/use-detail-stack.js.map +1 -0
  98. package/dist/lib/cn.d.ts +3 -0
  99. package/dist/lib/cn.d.ts.map +1 -0
  100. package/dist/lib/cn.js +6 -0
  101. package/dist/lib/cn.js.map +1 -0
  102. package/dist/lib/labels.d.ts +61 -0
  103. package/dist/lib/labels.d.ts.map +1 -0
  104. package/dist/lib/labels.js +79 -0
  105. package/dist/lib/labels.js.map +1 -0
  106. package/dist/lib/slot.d.ts +11 -0
  107. package/dist/lib/slot.d.ts.map +1 -0
  108. package/dist/lib/slot.js +83 -0
  109. package/dist/lib/slot.js.map +1 -0
  110. package/dist/model/doi.d.ts +2 -0
  111. package/dist/model/doi.d.ts.map +1 -0
  112. package/dist/model/doi.js +5 -0
  113. package/dist/model/doi.js.map +1 -0
  114. package/dist/model/index.d.ts +10 -0
  115. package/dist/model/index.d.ts.map +1 -0
  116. package/dist/model/index.js +7 -0
  117. package/dist/model/index.js.map +1 -0
  118. package/dist/model/locate-record.d.ts +8 -0
  119. package/dist/model/locate-record.d.ts.map +1 -0
  120. package/dist/model/locate-record.js +7 -0
  121. package/dist/model/locate-record.js.map +1 -0
  122. package/dist/model/papers.d.ts +38 -0
  123. package/dist/model/papers.d.ts.map +1 -0
  124. package/dist/model/papers.js +91 -0
  125. package/dist/model/papers.js.map +1 -0
  126. package/dist/model/records.d.ts +10 -0
  127. package/dist/model/records.d.ts.map +1 -0
  128. package/dist/model/records.js +32 -0
  129. package/dist/model/records.js.map +1 -0
  130. package/dist/model/relations.d.ts +45 -0
  131. package/dist/model/relations.d.ts.map +1 -0
  132. package/dist/model/relations.js +98 -0
  133. package/dist/model/relations.js.map +1 -0
  134. package/dist/primitives/badge.d.ts +11 -0
  135. package/dist/primitives/badge.d.ts.map +1 -0
  136. package/dist/primitives/badge.js +7 -0
  137. package/dist/primitives/badge.js.map +1 -0
  138. package/dist/primitives/button.d.ts +18 -0
  139. package/dist/primitives/button.d.ts.map +1 -0
  140. package/dist/primitives/button.js +12 -0
  141. package/dist/primitives/button.js.map +1 -0
  142. package/dist/primitives/detail-layout.d.ts +26 -0
  143. package/dist/primitives/detail-layout.d.ts.map +1 -0
  144. package/dist/primitives/detail-layout.js +21 -0
  145. package/dist/primitives/detail-layout.js.map +1 -0
  146. package/dist/primitives/dialog.d.ts +133 -0
  147. package/dist/primitives/dialog.d.ts.map +1 -0
  148. package/dist/primitives/dialog.js +266 -0
  149. package/dist/primitives/dialog.js.map +1 -0
  150. package/dist/primitives/index.d.ts +25 -0
  151. package/dist/primitives/index.d.ts.map +1 -0
  152. package/dist/primitives/index.js +14 -0
  153. package/dist/primitives/index.js.map +1 -0
  154. package/dist/primitives/kind.d.ts +6 -0
  155. package/dist/primitives/kind.d.ts.map +1 -0
  156. package/dist/primitives/kind.js +14 -0
  157. package/dist/primitives/kind.js.map +1 -0
  158. package/dist/primitives/prose.d.ts +36 -0
  159. package/dist/primitives/prose.d.ts.map +1 -0
  160. package/dist/primitives/prose.js +57 -0
  161. package/dist/primitives/prose.js.map +1 -0
  162. package/dist/primitives/record-list.d.ts +31 -0
  163. package/dist/primitives/record-list.d.ts.map +1 -0
  164. package/dist/primitives/record-list.js +17 -0
  165. package/dist/primitives/record-list.js.map +1 -0
  166. package/dist/primitives/relation-list.d.ts +22 -0
  167. package/dist/primitives/relation-list.d.ts.map +1 -0
  168. package/dist/primitives/relation-list.js +13 -0
  169. package/dist/primitives/relation-list.js.map +1 -0
  170. package/dist/primitives/surface-header.d.ts +31 -0
  171. package/dist/primitives/surface-header.d.ts.map +1 -0
  172. package/dist/primitives/surface-header.js +13 -0
  173. package/dist/primitives/surface-header.js.map +1 -0
  174. package/dist/views/index.d.ts +4 -0
  175. package/dist/views/index.d.ts.map +1 -0
  176. package/dist/views/index.js +3 -0
  177. package/dist/views/index.js.map +1 -0
  178. package/dist/views/inventory.d.ts +46 -0
  179. package/dist/views/inventory.d.ts.map +1 -0
  180. package/dist/views/inventory.js +101 -0
  181. package/dist/views/inventory.js.map +1 -0
  182. package/package.json +127 -0
  183. package/primitives.css +15 -0
  184. package/src/blocks/analysis-tree.tsx +109 -0
  185. package/src/blocks/decisions-list.tsx +113 -0
  186. package/src/blocks/findings-list.tsx +61 -0
  187. package/src/blocks/index.ts +23 -0
  188. package/src/blocks/inputs-list.tsx +51 -0
  189. package/src/blocks/outputs-list.tsx +143 -0
  190. package/src/blocks/papers-list.tsx +65 -0
  191. package/src/blocks/prior-insights-list.tsx +52 -0
  192. package/src/blocks/section.tsx +113 -0
  193. package/src/components/artifact-preview.tsx +314 -0
  194. package/src/components/decision-detail.tsx +93 -0
  195. package/src/components/detail-entry.ts +19 -0
  196. package/src/components/finding-detail.tsx +99 -0
  197. package/src/components/index.ts +44 -0
  198. package/src/components/input-detail.tsx +67 -0
  199. package/src/components/insight-detail.tsx +120 -0
  200. package/src/components/insight-trigger.tsx +102 -0
  201. package/src/components/output-detail.tsx +258 -0
  202. package/src/components/output-dialog.tsx +63 -0
  203. package/src/components/paper-detail.tsx +216 -0
  204. package/src/components/record-dialog.tsx +232 -0
  205. package/src/components/relation-items.ts +31 -0
  206. package/src/components/use-detail-stack.ts +78 -0
  207. package/src/lib/cn.ts +5 -0
  208. package/src/lib/labels.tsx +145 -0
  209. package/src/lib/slot.tsx +87 -0
  210. package/src/model/doi.ts +5 -0
  211. package/src/model/index.ts +32 -0
  212. package/src/model/locate-record.ts +13 -0
  213. package/src/model/papers.ts +146 -0
  214. package/src/model/records.ts +43 -0
  215. package/src/model/relations.ts +134 -0
  216. package/src/primitives/badge.tsx +32 -0
  217. package/src/primitives/button.tsx +58 -0
  218. package/src/primitives/detail-layout.tsx +84 -0
  219. package/src/primitives/dialog.tsx +555 -0
  220. package/src/primitives/index.ts +48 -0
  221. package/src/primitives/kind.ts +19 -0
  222. package/src/primitives/prose.tsx +74 -0
  223. package/src/primitives/record-list.tsx +103 -0
  224. package/src/primitives/relation-list.tsx +95 -0
  225. package/src/primitives/surface-header.tsx +87 -0
  226. package/src/views/index.ts +3 -0
  227. package/src/views/inventory.tsx +224 -0
  228. package/styles/base.css +49 -0
  229. package/styles/blocks/analysis-tree.css +64 -0
  230. package/styles/blocks/decisions-list.css +73 -0
  231. package/styles/blocks/outputs-list.css +349 -0
  232. package/styles/blocks/papers-list.css +98 -0
  233. package/styles/blocks/records.css +72 -0
  234. package/styles/components/artifact-preview.css +242 -0
  235. package/styles/components/decision-detail.css +159 -0
  236. package/styles/components/evidence.css +79 -0
  237. package/styles/components/finding-detail.css +63 -0
  238. package/styles/components/input-detail.css +95 -0
  239. package/styles/components/insight-detail.css +138 -0
  240. package/styles/components/insight-list.css +46 -0
  241. package/styles/components/insight-trigger.css +54 -0
  242. package/styles/components/output-detail.css +732 -0
  243. package/styles/components/paper-detail.css +249 -0
  244. package/styles/components/paper-doi.css +36 -0
  245. package/styles/primitives/badge.css +107 -0
  246. package/styles/primitives/button.css +116 -0
  247. package/styles/primitives/count-heading.css +27 -0
  248. package/styles/primitives/detail-layout.css +225 -0
  249. package/styles/primitives/dialog.css +634 -0
  250. package/styles/primitives/empty-state.css +10 -0
  251. package/styles/primitives/kind.css +41 -0
  252. package/styles/primitives/prose.css +15 -0
  253. package/styles/primitives/record-list.css +425 -0
  254. package/styles/primitives/relation-list.css +184 -0
  255. package/styles/primitives/surface-header.css +183 -0
  256. package/styles/tokens.css +119 -0
  257. package/styles/views/inventory.css +186 -0
  258. package/styles.css +2 -0
  259. package/views.css +3 -0
@@ -0,0 +1,183 @@
1
+ /* surface-header — emitted by src/primitives/surface-header.tsx */
2
+ @layer astra.tokens, astra.base, astra.components, astra.views;
3
+ @layer astra.components {
4
+ :where(.astra-ui) .astra-surface-header[data-kind="analysis"] {
5
+ --astra-kind: var(--astra-color-kind-analysis);
6
+ --astra-kind-ink: var(--astra-color-kind-analysis);
7
+ --astra-kind-soft: var(--astra-color-kind-analysis-soft);
8
+ }
9
+
10
+ :where(.astra-ui) .astra-surface-header[data-kind="input"] {
11
+ --astra-kind: var(--astra-color-kind-input);
12
+ --astra-kind-ink: var(--astra-color-kind-input);
13
+ --astra-kind-soft: var(--astra-color-kind-input-soft);
14
+ }
15
+
16
+ :where(.astra-ui) .astra-surface-header[data-kind="decision"] {
17
+ --astra-kind: var(--astra-color-kind-decision);
18
+ --astra-kind-ink: var(--astra-color-kind-decision-ink);
19
+ --astra-kind-soft: var(--astra-color-kind-decision-soft);
20
+ }
21
+
22
+ :where(.astra-ui) .astra-surface-header[data-kind="output"] {
23
+ --astra-kind: var(--astra-color-kind-output);
24
+ --astra-kind-ink: var(--astra-color-kind-output);
25
+ --astra-kind-soft: var(--astra-color-kind-output-soft);
26
+ }
27
+
28
+ :where(.astra-ui) .astra-surface-header[data-kind="finding"] {
29
+ --astra-kind: var(--astra-color-kind-finding);
30
+ --astra-kind-ink: var(--astra-color-kind-finding);
31
+ --astra-kind-soft: var(--astra-color-kind-finding-soft);
32
+ }
33
+
34
+ :where(.astra-ui) .astra-surface-header[data-kind="prior_insight"],
35
+ :where(.astra-ui) .astra-surface-header[data-kind="paper"] {
36
+ --astra-kind: var(--astra-color-kind-insight);
37
+ --astra-kind-ink: var(--astra-color-kind-insight-ink);
38
+ --astra-kind-soft: var(--astra-color-kind-insight-soft);
39
+ }
40
+
41
+ :where(.astra-ui) .astra-surface-header {
42
+ display: flex;
43
+ min-width: 0;
44
+ align-items: flex-start;
45
+ justify-content: space-between;
46
+ gap: var(--astra-space-3);
47
+ border-block-end: 1px solid var(--astra-color-border);
48
+ background: var(--astra-color-header);
49
+ color: var(--astra-color-text);
50
+ }
51
+
52
+ :where(.astra-ui) .astra-surface-header[data-density="regular"] {
53
+ min-height: 4.5rem;
54
+ padding: 0.85rem 1rem;
55
+ }
56
+
57
+ :where(.astra-ui) .astra-surface-header[data-density="compact"] {
58
+ padding: 0.72rem 0.8rem;
59
+ }
60
+
61
+ :where(.astra-ui) .astra-surface-header[data-density="inline"] {
62
+ min-height: 0;
63
+ align-items: center;
64
+ padding: 0;
65
+ border-block-end: 0;
66
+ background: transparent;
67
+ }
68
+
69
+ :where(.astra-ui) .astra-surface-header .astra-surface-header__content {
70
+ display: grid;
71
+ min-width: 0;
72
+ gap: 0.2rem;
73
+ }
74
+
75
+ :where(.astra-ui) .astra-surface-header[data-density="inline"] .astra-surface-header__content {
76
+ display: flex;
77
+ width: 100%;
78
+ align-items: center;
79
+ justify-content: space-between;
80
+ gap: var(--astra-space-2);
81
+ }
82
+
83
+ :where(.astra-ui) .astra-surface-header .astra-surface-header__eyebrow {
84
+ color: var(--astra-kind-ink, var(--astra-color-eyebrow));
85
+ font-family: var(--astra-font-ui);
86
+ font-size: 0.62rem;
87
+ font-weight: 700;
88
+ letter-spacing: 0.09em;
89
+ text-transform: uppercase;
90
+ }
91
+
92
+ :where(.astra-ui) .astra-surface-header[data-density="compact"] .astra-surface-header__eyebrow {
93
+ font-size: 0.56rem;
94
+ }
95
+
96
+ :where(.astra-ui) .astra-surface-header .astra-surface-header__title {
97
+ margin: 0;
98
+ color: var(--astra-color-text);
99
+ font-family: var(--astra-font-heading);
100
+ font-size: clamp(1.05rem, 2vw, 1.4rem);
101
+ font-weight: 650;
102
+ line-height: 1.2;
103
+ }
104
+
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;
108
+ line-height: 1.25;
109
+ }
110
+
111
+ :where(.astra-ui) .astra-surface-header .astra-surface-header__identifier {
112
+ min-width: 0;
113
+ overflow-wrap: anywhere;
114
+ color: var(--astra-color-text-subtle);
115
+ font-family: var(--astra-font-mono);
116
+ font-size: 0.68rem;
117
+ }
118
+
119
+ :where(.astra-ui) .astra-surface-header .astra-surface-header__actions {
120
+ display: flex;
121
+ flex: 0 0 auto;
122
+ align-items: center;
123
+ gap: 0.35rem;
124
+ }
125
+
126
+ :where(.astra-ui) .astra-surface-header .astra-surface-header__eyebrow {
127
+ letter-spacing: 0.1em;
128
+ }
129
+
130
+ :where(.astra-ui) .astra-surface-header .astra-surface-header__title {
131
+ font-weight: 700;
132
+ }
133
+
134
+ :where(.astra-ui) .astra-dialog:where([data-mode="embedded"]) .astra-surface-header__content {
135
+ display: grid;
136
+ min-width: 0;
137
+ gap: 0.5rem;
138
+ }
139
+
140
+ :where(.astra-ui) .astra-dialog:where([data-mode="embedded"]) .astra-surface-header__eyebrow {
141
+ min-width: 0;
142
+ }
143
+
144
+ :where(.astra-ui) .astra-dialog__header .astra-surface-header__leading {
145
+ flex: 0 0 auto;
146
+ margin-top: 0.1875rem;
147
+ }
148
+
149
+ :where(.astra-ui) .astra-dialog__header .astra-surface-header__eyebrow {
150
+ min-width: 0;
151
+ overflow: hidden;
152
+ font-family: var(--astra-font-ui);
153
+ font-size: 0.6875rem;
154
+ font-weight: 700;
155
+ letter-spacing: 0.075em;
156
+ line-height: 1.2;
157
+ text-transform: uppercase;
158
+ white-space: nowrap;
159
+ }
160
+
161
+ :where(.astra-ui) .astra-dialog__header .astra-surface-header__content,
162
+ :where(.astra-ui) .astra-dialog:where([data-mode="embedded"]) .astra-dialog__header .astra-surface-header__content {
163
+ flex: 1 1 auto;
164
+ display: grid;
165
+ min-width: 0;
166
+ gap: 0.3rem;
167
+ }
168
+
169
+ :where(.astra-ui) .astra-dialog__header .astra-surface-header__eyebrow,
170
+ :where(.astra-ui) .astra-dialog:where([data-mode="embedded"]) .astra-dialog__header .astra-surface-header__eyebrow {
171
+ overflow: hidden;
172
+ font-weight: 600;
173
+ letter-spacing: 0.1em;
174
+ line-height: 1.2;
175
+ text-overflow: ellipsis;
176
+ text-transform: uppercase;
177
+ white-space: nowrap;
178
+ color: var(--astra-kind-ink, var(--astra-color-text-subtle));
179
+ font-family: var(--astra-font-ui);
180
+ font-size: 0.6875rem;
181
+ }
182
+
183
+ }
@@ -0,0 +1,119 @@
1
+ /*
2
+ * astra-ui token contract.
3
+ *
4
+ * Every custom property the components consume is declared here with a
5
+ * literal default, at zero specificity, so a host or theme that redefines the
6
+ * same name on `.astra-ui` (or any ancestor) always wins. Themes only set
7
+ * values; they never need to know component internals, and this file knows
8
+ * nothing about any particular theme.
9
+ */
10
+ @layer astra.tokens, astra.base, astra.components, astra.views;
11
+
12
+ @layer astra.tokens {
13
+ :where(.astra-ui) {
14
+ /* Surfaces */
15
+ --astra-color-canvas: #f8f7f3;
16
+ --astra-color-surface: #ffffff;
17
+ --astra-color-surface-raised: #ffffff;
18
+ --astra-color-surface-muted: #f1efe9;
19
+ --astra-color-header: #f8f7f3;
20
+ --astra-color-artifact-paper: #ffffff;
21
+ --astra-color-artifact-ink: #221f20;
22
+
23
+ /* Text */
24
+ --astra-color-text: #221f20;
25
+ --astra-color-text-muted: #4e5a70;
26
+ --astra-color-text-subtle: #8b7d70;
27
+ --astra-color-text-faint: #b8b0a8;
28
+ --astra-color-eyebrow: #3f7280;
29
+
30
+ /* Borders */
31
+ --astra-color-border-subtle: color-mix(in srgb, #8b7d70 10%, #f8f7f3);
32
+ --astra-color-border: color-mix(in srgb, #8b7d70 18%, #f8f7f3);
33
+ --astra-color-border-strong: color-mix(in srgb, #8b7d70 38%, #f8f7f3);
34
+
35
+ /* Interaction */
36
+ --astra-color-accent: #4e5a70;
37
+ --astra-color-accent-contrast: #ffffff;
38
+ --astra-color-link: var(--astra-color-accent);
39
+ --astra-color-focus: #3f7280;
40
+ --astra-color-danger: #a45a43;
41
+ --astra-color-danger-soft: rgb(164 90 67 / 0.09);
42
+
43
+ /* Record kinds. These are ASTRA semantics, not host branding. */
44
+ --astra-color-kind-input: #4e5a70;
45
+ --astra-color-kind-analysis: #3f7280;
46
+ --astra-color-kind-output: #3b7a73;
47
+ --astra-color-kind-decision: #a67c3c;
48
+ --astra-color-kind-decision-ink: #765a2f;
49
+ --astra-color-kind-finding: #a45a43;
50
+ --astra-color-kind-insight: #8b7d70;
51
+ --astra-color-kind-insight-ink: #4e5a70;
52
+ --astra-color-kind-input-soft: rgb(78 90 112 / 0.1);
53
+ --astra-color-kind-analysis-soft: rgb(63 114 128 / 0.1);
54
+ --astra-color-kind-output-soft: rgb(59 122 115 / 0.1);
55
+ --astra-color-kind-decision-soft: rgb(166 124 60 / 0.11);
56
+ --astra-color-kind-finding-soft: rgb(164 90 67 / 0.1);
57
+ --astra-color-kind-insight-soft: rgb(139 125 112 / 0.11);
58
+
59
+ /* Element-local kind colour; kind.css sets --astra-kind, --astra-kind-ink
60
+ and --astra-kind-soft per [data-kind]. Only the base is defaulted so
61
+ `var(--astra-kind-ink, ...)` fallbacks keep working outside a kind. */
62
+ --astra-kind: var(--astra-color-accent);
63
+
64
+ /* Typography */
65
+ --astra-font-ui: Georgia, "Times New Roman", serif;
66
+ --astra-font-body: Georgia, "Times New Roman", serif;
67
+ --astra-font-heading: Georgia, "Times New Roman", serif;
68
+ --astra-font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
69
+ --astra-font-size: 0.875rem;
70
+
71
+ /* Geometry */
72
+ --astra-radius-control: 0;
73
+ --astra-shadow-raised: none;
74
+ --astra-space-2: 0.5rem;
75
+ --astra-space-3: 0.75rem;
76
+ --astra-z-dialog: 1000;
77
+ --astra-z-fullscreen: 10000;
78
+ }
79
+
80
+ /* Dark palette: explicit opt-in, or the host reports darkness. */
81
+ :where(.astra-ui[data-astra-color-scheme="dark"]),
82
+ :where([data-jp-theme-light="false"], .vscode-dark, .vscode-high-contrast) :where(.astra-ui:not([data-astra-color-scheme="light"])) {
83
+ --astra-color-canvas: #171614;
84
+ --astra-color-surface: #1e1d1a;
85
+ --astra-color-surface-raised: #272520;
86
+ --astra-color-surface-muted: #302d27;
87
+ --astra-color-header: #302d27;
88
+ --astra-color-artifact-paper: #f8f7f3;
89
+ --astra-color-artifact-ink: #221f20;
90
+ --astra-color-text: #f2eee7;
91
+ --astra-color-text-muted: #c4bdb2;
92
+ --astra-color-text-subtle: #a39b90;
93
+ --astra-color-text-faint: #777168;
94
+ --astra-color-eyebrow: #86adb7;
95
+ --astra-color-border-subtle: #302d28;
96
+ --astra-color-border: #3b3731;
97
+ --astra-color-border-strong: #514b42;
98
+ --astra-color-accent: #aeb8ca;
99
+ --astra-color-accent-contrast: #171614;
100
+ --astra-color-focus: #86adb7;
101
+ --astra-color-danger: #d6927d;
102
+ --astra-color-danger-soft: rgb(214 146 125 / 0.13);
103
+ --astra-color-kind-input: #aeb8ca;
104
+ --astra-color-kind-analysis: #86adb7;
105
+ --astra-color-kind-output: #79b6ae;
106
+ --astra-color-kind-decision: #d8b477;
107
+ --astra-color-kind-decision-ink: #d8b477;
108
+ --astra-color-kind-finding: #d6927d;
109
+ --astra-color-kind-insight: #c2b5a9;
110
+ --astra-color-kind-insight-ink: #c2b5a9;
111
+ --astra-color-kind-input-soft: rgb(174 184 202 / 0.15);
112
+ --astra-color-kind-analysis-soft: rgb(134 173 183 / 0.15);
113
+ --astra-color-kind-output-soft: rgb(121 182 174 / 0.14);
114
+ --astra-color-kind-decision-soft: rgb(216 180 119 / 0.14);
115
+ --astra-color-kind-finding-soft: rgb(214 146 125 / 0.15);
116
+ --astra-color-kind-insight-soft: rgb(194 181 169 / 0.15);
117
+ --astra-shadow-raised: 0 5px 18px rgb(0 0 0 / 0.38);
118
+ }
119
+ }
@@ -0,0 +1,186 @@
1
+ /* inventory — emitted by src/views/inventory.tsx + blocks/section.tsx */
2
+ @layer astra.tokens, astra.base, astra.components, astra.views;
3
+ @layer astra.views {
4
+ @media (max-width: 640px) {
5
+ :where(.astra-ui) .astra-inventory__section:where([data-section="decisions"]) {
6
+ grid-template-columns: 1fr;
7
+ }
8
+
9
+ :where(.astra-ui) .astra-inventory__sections {
10
+ gap: 3rem;
11
+ }
12
+
13
+ }
14
+ :where(.astra-ui) .astra-inventory__section h2 {
15
+ scroll-margin-top: 2rem;
16
+ }
17
+
18
+ :where(.astra-ui) .astra-inventory__section:first-child > h2 {
19
+ margin-top: 0;
20
+ }
21
+
22
+ :where(.astra-ui) .astra-inventory__section:where([data-section="decisions"]) > h2 {
23
+ margin: 0;
24
+ }
25
+
26
+ :where(.astra-ui) .astra-inventory {
27
+ color: var(--astra-color-text);
28
+ font-family: var(--astra-font-ui);
29
+ }
30
+
31
+ :where(.astra-ui) .astra-inventory__sections {
32
+ gap: 2.75rem;
33
+ }
34
+
35
+ :where(.astra-ui) .astra-inventory {
36
+ container-type: inline-size;
37
+ min-height: 0;
38
+ padding-bottom: 4rem;
39
+ background: var(--astra-color-canvas);
40
+ color: var(--astra-color-text);
41
+ font-family: var(--astra-font-body);
42
+ }
43
+
44
+ :where(.astra-ui) .astra-inventory__sections {
45
+ gap: 2.75rem;
46
+ }
47
+
48
+ :where(.astra-ui) .astra-inventory__section {
49
+ min-height: 0;
50
+ }
51
+
52
+ :where(.astra-ui) .astra-inventory__section > h2 {
53
+ margin-bottom: 0.65rem;
54
+ margin: 0 0 1rem;
55
+ padding: 0 0 0.5rem;
56
+ border-block-end: 1px solid var(--astra-color-border-strong);
57
+ color: var(--astra-color-text);
58
+ font-family: var(--astra-font-heading);
59
+ font-size: 1.1875rem;
60
+ font-weight: 700;
61
+ line-height: 1.2;
62
+ }
63
+
64
+ :where(.astra-ui) .astra-inventory {
65
+ padding: 0;
66
+ }
67
+
68
+ :where(.astra-ui) .astra-inventory__layout {
69
+ display: grid;
70
+ grid-template-columns: minmax(0, 1fr) 11.25rem;
71
+ gap: 3rem;
72
+ align-items: start;
73
+ }
74
+
75
+ :where(.astra-ui) .astra-inventory__sections {
76
+ display: flex;
77
+ min-width: 0;
78
+ flex-direction: column;
79
+ gap: 2.75rem;
80
+ }
81
+
82
+ /* Sections are block-flow, and the per-kind blocks inside them keep their
83
+ own boxes (no display: contents): each is the query container for its
84
+ own @container rules, and a boxless element cannot be one. */
85
+ :where(.astra-ui) .astra-inventory__section {
86
+ display: block;
87
+ min-width: 0;
88
+ }
89
+
90
+ :where(.astra-ui) .astra-inventory__heading {
91
+ display: flex;
92
+ align-items: baseline;
93
+ justify-content: space-between;
94
+ gap: 1.125rem;
95
+ margin-bottom: 1rem;
96
+ padding-bottom: 0.5rem;
97
+ border-bottom: 1px solid var(--astra-color-border-strong);
98
+ }
99
+
100
+ :where(.astra-ui) .astra-inventory__heading h2,
101
+ :where(.astra-ui) .astra-inventory__section .astra-inventory__heading h2 {
102
+ margin: 0;
103
+ padding: 0;
104
+ border: 0;
105
+ color: var(--astra-color-text);
106
+ background: transparent;
107
+ font-family: var(--astra-font-heading);
108
+ font-size: 1.1875rem;
109
+ font-weight: 700;
110
+ line-height: 1.2;
111
+ scroll-margin-top: 4.5rem;
112
+ }
113
+
114
+ :where(.astra-ui) .astra-inventory__heading > span {
115
+ flex: 0 0 auto;
116
+ color: var(--astra-color-text-subtle);
117
+ font-family: var(--astra-font-ui);
118
+ font-size: 0.78125rem;
119
+ }
120
+
121
+ :where(.astra-ui) .astra-inventory-outline {
122
+ position: sticky;
123
+ top: 4.5rem;
124
+ min-width: 0;
125
+ }
126
+
127
+ :where(.astra-ui) .astra-inventory-outline h3 {
128
+ margin: 0 0 0.5rem;
129
+ color: var(--astra-color-text-subtle);
130
+ font-family: var(--astra-font-ui);
131
+ font-size: 0.625rem;
132
+ font-weight: 700;
133
+ letter-spacing: 0.1em;
134
+ text-transform: uppercase;
135
+ }
136
+
137
+ :where(.astra-ui) .astra-inventory-outline nav {
138
+ display: flex;
139
+ flex-direction: column;
140
+ }
141
+
142
+ :where(.astra-ui) .astra-inventory-outline a {
143
+ display: grid;
144
+ grid-template-columns: 0.75rem minmax(0, 1fr) auto;
145
+ gap: 0.5625rem;
146
+ align-items: baseline;
147
+ padding: 0.4375rem 0;
148
+ border-bottom: 1px solid var(--astra-color-border-subtle);
149
+ color: var(--astra-color-text-subtle);
150
+ font-family: var(--astra-font-ui);
151
+ font-size: 0.8125rem;
152
+ text-decoration: none;
153
+ }
154
+
155
+ :where(.astra-ui) .astra-inventory-outline a:last-child {
156
+ border-bottom: 0;
157
+ }
158
+
159
+ :where(.astra-ui) .astra-inventory-outline__glyph {
160
+ color: var(--astra-kind, var(--astra-color-text-subtle));
161
+ font-size: 0.625rem;
162
+ text-align: center;
163
+ }
164
+
165
+ :where(.astra-ui) .astra-inventory-outline a:hover,
166
+ :where(.astra-ui) .astra-inventory-outline a:focus-visible {
167
+ color: var(--astra-color-text);
168
+ }
169
+
170
+ @container (max-width: 62rem) {
171
+ :where(.astra-ui) .astra-inventory__layout {
172
+ grid-template-columns: minmax(0, 1fr);
173
+ }
174
+
175
+ :where(.astra-ui) .astra-inventory-outline {
176
+ display: none;
177
+ }
178
+
179
+ }
180
+ @container (max-width: 34rem) {
181
+ :where(.astra-ui) .astra-inventory__heading {
182
+ align-items: flex-start;
183
+ }
184
+
185
+ }
186
+ }
package/styles.css ADDED
@@ -0,0 +1,2 @@
1
+ /* Complete stylesheet; alias of views.css. */
2
+ @import "./views.css";
package/views.css ADDED
@@ -0,0 +1,3 @@
1
+ /* Everything: blocks plus the full views. */
2
+ @import "./blocks.css";
3
+ @import "./styles/views/inventory.css";