@veluai/velu 0.1.13 → 0.1.15

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 (98) hide show
  1. package/README.md +80 -80
  2. package/dist/cli.js +21 -21
  3. package/package.json +3 -2
  4. package/runtime/velu-ui/components/Accordion.jsx +64 -64
  5. package/runtime/velu-ui/components/ApiClient.jsx +121 -121
  6. package/runtime/velu-ui/components/ApiField.jsx +87 -87
  7. package/runtime/velu-ui/components/ApiPath.jsx +63 -63
  8. package/runtime/velu-ui/components/ApiSidebar.jsx +122 -122
  9. package/runtime/velu-ui/components/AskBar.jsx +71 -71
  10. package/runtime/velu-ui/components/Callout.jsx +114 -114
  11. package/runtime/velu-ui/components/Card.jsx +131 -131
  12. package/runtime/velu-ui/components/Chatbot.jsx +596 -596
  13. package/runtime/velu-ui/components/CodeBlock.jsx +375 -375
  14. package/runtime/velu-ui/components/Columns.jsx +56 -56
  15. package/runtime/velu-ui/components/ErrorCard.jsx +138 -138
  16. package/runtime/velu-ui/components/Field.jsx +81 -81
  17. package/runtime/velu-ui/components/Image.jsx +163 -163
  18. package/runtime/velu-ui/components/Logo.jsx +31 -0
  19. package/runtime/velu-ui/components/MethodBadge.jsx +31 -31
  20. package/runtime/velu-ui/components/NavSelect.jsx +108 -108
  21. package/runtime/velu-ui/components/PageFeedback.jsx +219 -219
  22. package/runtime/velu-ui/components/PageFooter.jsx +145 -213
  23. package/runtime/velu-ui/components/PageHeader.jsx +422 -414
  24. package/runtime/velu-ui/components/PageNav.jsx +77 -77
  25. package/runtime/velu-ui/components/PoweredBy.jsx +51 -51
  26. package/runtime/velu-ui/components/Prompt.jsx +115 -115
  27. package/runtime/velu-ui/components/Search.jsx +411 -366
  28. package/runtime/velu-ui/components/Sidebar.jsx +191 -191
  29. package/runtime/velu-ui/components/SocialLinks.jsx +90 -0
  30. package/runtime/velu-ui/components/Steps.jsx +65 -65
  31. package/runtime/velu-ui/components/ThemeToggle.jsx +48 -48
  32. package/runtime/velu-ui/components/Toc.jsx +537 -537
  33. package/runtime/velu-ui/components/TocBar.jsx +195 -195
  34. package/runtime/velu-ui/components/Tree.jsx +87 -87
  35. package/runtime/velu-ui/components/TryItBar.jsx +90 -90
  36. package/runtime/velu-ui/components/accordion.css +92 -92
  37. package/runtime/velu-ui/components/api.css +479 -479
  38. package/runtime/velu-ui/components/ask-bar.css +94 -94
  39. package/runtime/velu-ui/components/card.css +105 -105
  40. package/runtime/velu-ui/components/chatbot.css +617 -617
  41. package/runtime/velu-ui/components/code-block.css +263 -263
  42. package/runtime/velu-ui/components/docs-layout.css +784 -775
  43. package/runtime/velu-ui/components/field.css +82 -82
  44. package/runtime/velu-ui/components/image.css +237 -237
  45. package/runtime/velu-ui/components/nav-select.css +157 -157
  46. package/runtime/velu-ui/components/page-feedback.css +241 -241
  47. package/runtime/velu-ui/components/page-footer.css +130 -130
  48. package/runtime/velu-ui/components/page-header.css +557 -520
  49. package/runtime/velu-ui/components/page-nav.css +50 -50
  50. package/runtime/velu-ui/components/powered-by.css +86 -66
  51. package/runtime/velu-ui/components/prompt.css +99 -99
  52. package/runtime/velu-ui/components/search.css +307 -307
  53. package/runtime/velu-ui/components/sidebar.css +144 -144
  54. package/runtime/velu-ui/components/steps.css +77 -77
  55. package/runtime/velu-ui/components/theme-toggle.css +101 -101
  56. package/runtime/velu-ui/components/toc-bar.css +234 -234
  57. package/runtime/velu-ui/components/tree.css +49 -49
  58. package/runtime/velu-ui/index.js +48 -46
  59. package/runtime/velu-ui/lib/component-schemas.js +100 -100
  60. package/runtime/velu-ui/lib/copyText.js +64 -64
  61. package/runtime/velu-ui/lib/lang-icons.jsx +147 -147
  62. package/runtime/velu-ui/lib/prism-langs.js +957 -957
  63. package/runtime/velu-ui/lib/prism-loader.js +74 -74
  64. package/runtime/velu-ui/lib/resolveIcon.jsx +29 -29
  65. package/runtime/velu-ui/lib/scrollIntoNearestView.js +66 -66
  66. package/runtime/velu-ui/mdx-components.jsx +105 -105
  67. package/runtime/velu-ui/primitives/Cluster.jsx +49 -49
  68. package/runtime/velu-ui/primitives/Stack.jsx +63 -63
  69. package/runtime/velu-ui/primitives/Switcher.jsx +57 -57
  70. package/runtime/velu-ui/primitives/stack.css +3 -3
  71. package/runtime/velu-ui/primitives/switcher.css +25 -25
  72. package/runtime/velu-ui/styles.css +43 -43
  73. package/runtime/velu-ui/tokens.css +4 -4
  74. package/schema/velu.schema.json +281 -167
  75. package/src/lib/extract-mdx-error.js +170 -170
  76. package/src/lib/issues.js +159 -159
  77. package/src/lib/known-components.js +34 -34
  78. package/src/navigation.js +434 -434
  79. package/src/runtime/App.jsx +1506 -1476
  80. package/src/runtime/ErrorBoundary.jsx +54 -54
  81. package/src/runtime/client-entry.jsx +22 -22
  82. package/src/runtime/server-entry.jsx +16 -16
  83. package/src/template.html +48 -48
  84. package/templates/starter/ai-tools/claude-code.mdx +26 -26
  85. package/templates/starter/ai-tools/cursor.mdx +17 -17
  86. package/templates/starter/api-reference/endpoint/create.mdx +24 -24
  87. package/templates/starter/api-reference/endpoint/get.mdx +27 -27
  88. package/templates/starter/api-reference/introduction.mdx +28 -28
  89. package/templates/starter/development.mdx +19 -19
  90. package/templates/starter/essentials/code.mdx +29 -29
  91. package/templates/starter/essentials/images.mdx +29 -29
  92. package/templates/starter/essentials/markdown.mdx +25 -25
  93. package/templates/starter/essentials/navigation.mdx +39 -39
  94. package/templates/starter/essentials/settings.mdx +30 -30
  95. package/templates/starter/favicon.svg +6 -6
  96. package/templates/starter/index.mdx +31 -31
  97. package/templates/starter/quickstart.mdx +31 -31
  98. package/templates/starter/velu.json +33 -33
@@ -1,307 +1,307 @@
1
- /* Search — command-palette search. Ported from the Claude-Design "Velu
2
- Search" handoff and retokenized: the design's surf/txt/bord layers
3
- map onto velu-ui tokens, so it themes for free via [data-theme].
4
- surf-page / surf-elevated → --page-bg
5
- surf-row-hover / kbd → --surface-color
6
- surf-row-selected → accent tint
7
- txt-1 → --text-color
8
- txt-2 / txt-3 / muted → --muted-color
9
- bord-* → --border-color
10
- accent → --accent-color
11
- */
12
-
13
- /* ── Shared kbd chip (⌘K trigger hint / esc / ↵) ────────────────────── */
14
- /* line-height: 1 so a tall glyph like ↵ doesn't stretch the chip;
15
- justify-content centers single-character contents. */
16
- .velu-search__kbd {
17
- display: inline-flex;
18
- align-items: center;
19
- justify-content: center;
20
- flex: none;
21
- min-inline-size: var(--s0);
22
- padding-block: var(--s-5);
23
- padding-inline: var(--s-3);
24
- background: var(--surface-color);
25
- border: var(--border-width) solid var(--border-color);
26
- border-radius: var(--radius-sm);
27
- font-size: var(--f-h7);
28
- line-height: 1;
29
- font-weight: var(--weight-medium);
30
- color: var(--text-color);
31
- }
32
-
33
- /* ── Trigger box (placed at the top of the page) ────────────────────── */
34
- /* Content-sized; the label's flex:1 only matters if the consumer gives
35
- the trigger an explicit width. */
36
- .velu-search__trigger {
37
- display: inline-flex;
38
- align-items: center;
39
- gap: var(--s-3);
40
- padding-block: var(--s-3);
41
- padding-inline: var(--s-2);
42
- background: var(--page-bg);
43
- border: var(--border-width) solid var(--border-color);
44
- border-radius: var(--radius-sm);
45
- color: var(--muted-color);
46
- font: inherit;
47
- font-size: var(--f-h6);
48
- cursor: pointer;
49
- transition: border-color 0.12s ease;
50
- }
51
- .velu-search__trigger:hover {
52
- border-color: var(--accent-color);
53
- }
54
- .velu-search__trigger-icon {
55
- display: inline-flex;
56
- flex: none;
57
- color: var(--muted-color);
58
- }
59
- .velu-search__trigger-label {
60
- flex: 1;
61
- text-align: start;
62
- }
63
-
64
- /* ── Mobile collapse — trigger becomes icon-only ───────────────────── */
65
- /* At mobile widths (< 640px) the header is too crowded to show the
66
- full search box; collapse to a magnifier icon. App.jsx passes
67
- `inline-size: 30ch` inline on the trigger to fix its desktop width,
68
- so we need !important here to win over the inline style. The kbd
69
- chip is also hidden — at mobile there's no keyboard shortcut hint
70
- to display. */
71
- @container docs (max-width: 640px) {
72
- .velu-search__trigger {
73
- inline-size: auto !important;
74
- padding-inline: var(--s-3);
75
- }
76
- .velu-search__trigger-label,
77
- .velu-search__trigger .velu-search__kbd {
78
- display: none;
79
- }
80
- }
81
-
82
- /* ── Scrim + palette ────────────────────────────────────────────────── */
83
- .velu-search__scrim {
84
- position: fixed;
85
- inset: 0;
86
- z-index: 60;
87
- display: flex;
88
- align-items: flex-start;
89
- justify-content: center;
90
- /* Top offset eases down on short screens; side gutter is small so the
91
- palette uses most of a narrow viewport (no effect on desktop —
92
- the palette is capped at --vsearch-width there). */
93
- padding-block-start: clamp(var(--s1), 8vh, 12vh);
94
- padding-inline: var(--s-3);
95
- background: color-mix(in srgb, #000 48%, transparent);
96
- -webkit-backdrop-filter: blur(4px);
97
- backdrop-filter: blur(4px);
98
- animation: velu-search-scrim-in 0.18s ease-out;
99
- }
100
- @keyframes velu-search-scrim-in {
101
- from { opacity: 0; }
102
- to { opacity: 1; }
103
- }
104
-
105
- .velu-search__palette {
106
- /* Overridable panel width (≈ the design's 720px). */
107
- --vsearch-width: 45rem;
108
- inline-size: var(--vsearch-width);
109
- max-inline-size: 100%;
110
- display: flex;
111
- flex-direction: column;
112
- overflow: hidden;
113
- background: var(--page-bg);
114
- color: var(--text-color);
115
- border: var(--border-width) solid var(--border-color);
116
- border-radius: var(--radius-md);
117
- box-shadow:
118
- 0 var(--s2) var(--s4) color-mix(in srgb, #000 32%, transparent),
119
- 0 var(--s0) var(--s2) color-mix(in srgb, #000 18%, transparent);
120
- animation: velu-search-palette-in 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
121
- }
122
- @keyframes velu-search-palette-in {
123
- from {
124
- opacity: 0;
125
- transform: translateY(calc(var(--s-3) * -1)) scale(0.985);
126
- }
127
- to {
128
- opacity: 1;
129
- transform: none;
130
- }
131
- }
132
- /* base.css's global `* { max-width: 66ch }` would cap the <input>;
133
- reset within the palette — flex / the panel govern width here. */
134
- .velu-search__palette * {
135
- max-inline-size: none;
136
- }
137
-
138
- /* ── Input row ──────────────────────────────────────────────────────── */
139
- .velu-search__input-wrap {
140
- display: flex;
141
- align-items: center;
142
- gap: var(--s-2);
143
- padding: var(--s-1) var(--s0);
144
- border-block-end: var(--border-width) solid var(--border-color);
145
- }
146
- .velu-search__input-icon {
147
- display: inline-flex;
148
- flex: none;
149
- color: var(--muted-color);
150
- }
151
- .velu-search__input {
152
- flex: 1 1 auto;
153
- min-inline-size: 0;
154
- padding: 0;
155
- background: transparent;
156
- border: 0;
157
- outline: 0;
158
- font: inherit;
159
- font-size: var(--f-h4);
160
- font-weight: var(--weight-light);
161
- line-height: var(--lh-h4);
162
- color: var(--text-color);
163
- }
164
- .velu-search__input::placeholder {
165
- color: var(--muted-color);
166
- }
167
-
168
- /* ── Result list ────────────────────────────────────────────────────── */
169
- .velu-search__list {
170
- flex: 1 1 auto;
171
- overflow-y: auto;
172
- padding: var(--s-3);
173
- max-block-size: 72vh;
174
- }
175
- .velu-search__group {
176
- padding: var(--s-1) var(--s-1) var(--s-4);
177
- font-size: var(--f-h7);
178
- font-weight: var(--weight-medium);
179
- letter-spacing: 0.08em;
180
- text-transform: uppercase;
181
- color: var(--muted-color);
182
- }
183
-
184
- /* Result row — grid: glyph | (breadcrumb / title / desc) | meta. */
185
- .velu-search__row {
186
- display: grid;
187
- grid-template-columns: auto 1fr auto;
188
- gap: var(--s-6) var(--s0);
189
- align-items: center;
190
- padding: var(--s-2);
191
- border-radius: var(--radius-sm);
192
- color: var(--text-color);
193
- cursor: pointer;
194
- }
195
- .velu-search__row + .velu-search__row {
196
- margin-block-start: var(--s-6);
197
- }
198
- .velu-search__row:hover {
199
- background: var(--surface-color);
200
- }
201
- .velu-search__row--selected {
202
- background: color-mix(in srgb, var(--accent-color) 12%, transparent);
203
- }
204
-
205
- .velu-search__row-glyph {
206
- grid-column: 1;
207
- grid-row: 1 / -1;
208
- display: flex;
209
- align-items: center;
210
- justify-content: center;
211
- inline-size: 2.5em;
212
- block-size: 2.5em;
213
- color: var(--text-color);
214
- }
215
- .velu-search__glyph-hash {
216
- font-size: var(--f-h3);
217
- font-weight: var(--weight-light);
218
- line-height: 1;
219
- color: var(--text-color);
220
- }
221
- .velu-search__glyph-icon {
222
- display: inline-flex;
223
- inline-size: var(--icon-size-lg);
224
- block-size: var(--icon-size-lg);
225
- color: var(--muted-color);
226
- }
227
- .velu-search__row--selected .velu-search__glyph-icon {
228
- color: var(--text-color);
229
- }
230
-
231
- .velu-search__crumbs {
232
- grid-column: 2;
233
- grid-row: 1;
234
- display: flex;
235
- align-items: center;
236
- flex-wrap: wrap;
237
- gap: var(--s-4);
238
- font-size: var(--f-h6);
239
- line-height: var(--lh-h6);
240
- color: var(--muted-color);
241
- }
242
- .velu-search__crumb-sep {
243
- opacity: 0.6;
244
- }
245
- .velu-search__row-title {
246
- grid-column: 2;
247
- grid-row: 2;
248
- font-size: var(--f-h5);
249
- font-weight: var(--weight-medium);
250
- line-height: var(--lh-h5);
251
- color: var(--text-color);
252
- }
253
- .velu-search__row-desc {
254
- grid-column: 2;
255
- grid-row: 3;
256
- font-size: var(--f-h6);
257
- font-weight: var(--weight-light);
258
- line-height: var(--lh-h6);
259
- color: var(--muted-color);
260
- overflow: hidden;
261
- text-overflow: ellipsis;
262
- white-space: nowrap;
263
- }
264
- .velu-search__row-meta {
265
- grid-column: 3;
266
- grid-row: 1 / -1;
267
- display: flex;
268
- align-items: center;
269
- opacity: 0;
270
- transition: opacity 0.15s ease;
271
- }
272
- .velu-search__row:hover .velu-search__row-meta,
273
- .velu-search__row--selected .velu-search__row-meta {
274
- opacity: 1;
275
- }
276
-
277
- /* ── Empty / no-results ─────────────────────────────────────────────── */
278
- .velu-search__empty {
279
- display: flex;
280
- flex-direction: column;
281
- align-items: center;
282
- gap: var(--s-6);
283
- padding: var(--s3) var(--s0);
284
- text-align: center;
285
- }
286
- .velu-search__empty-icon {
287
- display: inline-flex;
288
- margin-block-end: var(--s-3);
289
- font-size: var(--f-h2);
290
- color: var(--muted-color);
291
- }
292
- .velu-search__empty-title {
293
- font-size: var(--f-h6);
294
- font-weight: var(--weight-medium);
295
- color: var(--text-color);
296
- }
297
- .velu-search__empty-sub {
298
- font-size: var(--f-h6);
299
- color: var(--muted-color);
300
- }
301
-
302
- @media (prefers-reduced-motion: reduce) {
303
- .velu-search__scrim,
304
- .velu-search__palette {
305
- animation: none;
306
- }
307
- }
1
+ /* Search — command-palette search. Ported from the Claude-Design "Velu
2
+ Search" handoff and retokenized: the design's surf/txt/bord layers
3
+ map onto velu-ui tokens, so it themes for free via [data-theme].
4
+ surf-page / surf-elevated → --page-bg
5
+ surf-row-hover / kbd → --surface-color
6
+ surf-row-selected → accent tint
7
+ txt-1 → --text-color
8
+ txt-2 / txt-3 / muted → --muted-color
9
+ bord-* → --border-color
10
+ accent → --accent-color
11
+ */
12
+
13
+ /* ── Shared kbd chip (⌘K trigger hint / esc / ↵) ────────────────────── */
14
+ /* line-height: 1 so a tall glyph like ↵ doesn't stretch the chip;
15
+ justify-content centers single-character contents. */
16
+ .velu-search__kbd {
17
+ display: inline-flex;
18
+ align-items: center;
19
+ justify-content: center;
20
+ flex: none;
21
+ min-inline-size: var(--s0);
22
+ padding-block: var(--s-5);
23
+ padding-inline: var(--s-3);
24
+ background: var(--surface-color);
25
+ border: var(--border-width) solid var(--border-color);
26
+ border-radius: var(--radius-sm);
27
+ font-size: var(--f-h7);
28
+ line-height: 1;
29
+ font-weight: var(--weight-medium);
30
+ color: var(--text-color);
31
+ }
32
+
33
+ /* ── Trigger box (placed at the top of the page) ────────────────────── */
34
+ /* Content-sized; the label's flex:1 only matters if the consumer gives
35
+ the trigger an explicit width. */
36
+ .velu-search__trigger {
37
+ display: inline-flex;
38
+ align-items: center;
39
+ gap: var(--s-3);
40
+ padding-block: var(--s-3);
41
+ padding-inline: var(--s-2);
42
+ background: var(--page-bg);
43
+ border: var(--border-width) solid var(--border-color);
44
+ border-radius: var(--radius-sm);
45
+ color: var(--muted-color);
46
+ font: inherit;
47
+ font-size: var(--f-h6);
48
+ cursor: pointer;
49
+ transition: border-color 0.12s ease;
50
+ }
51
+ .velu-search__trigger:hover {
52
+ border-color: var(--accent-color);
53
+ }
54
+ .velu-search__trigger-icon {
55
+ display: inline-flex;
56
+ flex: none;
57
+ color: var(--muted-color);
58
+ }
59
+ .velu-search__trigger-label {
60
+ flex: 1;
61
+ text-align: start;
62
+ }
63
+
64
+ /* ── Mobile collapse — trigger becomes icon-only ───────────────────── */
65
+ /* At mobile widths (< 640px) the header is too crowded to show the
66
+ full search box; collapse to a magnifier icon. App.jsx passes
67
+ `inline-size: 30ch` inline on the trigger to fix its desktop width,
68
+ so we need !important here to win over the inline style. The kbd
69
+ chip is also hidden — at mobile there's no keyboard shortcut hint
70
+ to display. */
71
+ @container docs (max-width: 640px) {
72
+ .velu-search__trigger {
73
+ inline-size: auto !important;
74
+ padding-inline: var(--s-3);
75
+ }
76
+ .velu-search__trigger-label,
77
+ .velu-search__trigger .velu-search__kbd {
78
+ display: none;
79
+ }
80
+ }
81
+
82
+ /* ── Scrim + palette ────────────────────────────────────────────────── */
83
+ .velu-search__scrim {
84
+ position: fixed;
85
+ inset: 0;
86
+ z-index: 60;
87
+ display: flex;
88
+ align-items: flex-start;
89
+ justify-content: center;
90
+ /* Top offset eases down on short screens; side gutter is small so the
91
+ palette uses most of a narrow viewport (no effect on desktop —
92
+ the palette is capped at --vsearch-width there). */
93
+ padding-block-start: clamp(var(--s1), 8vh, 12vh);
94
+ padding-inline: var(--s-3);
95
+ background: color-mix(in srgb, #000 48%, transparent);
96
+ -webkit-backdrop-filter: blur(4px);
97
+ backdrop-filter: blur(4px);
98
+ animation: velu-search-scrim-in 0.18s ease-out;
99
+ }
100
+ @keyframes velu-search-scrim-in {
101
+ from { opacity: 0; }
102
+ to { opacity: 1; }
103
+ }
104
+
105
+ .velu-search__palette {
106
+ /* Overridable panel width (≈ the design's 720px). */
107
+ --vsearch-width: 45rem;
108
+ inline-size: var(--vsearch-width);
109
+ max-inline-size: 100%;
110
+ display: flex;
111
+ flex-direction: column;
112
+ overflow: hidden;
113
+ background: var(--page-bg);
114
+ color: var(--text-color);
115
+ border: var(--border-width) solid var(--border-color);
116
+ border-radius: var(--radius-md);
117
+ box-shadow:
118
+ 0 var(--s2) var(--s4) color-mix(in srgb, #000 32%, transparent),
119
+ 0 var(--s0) var(--s2) color-mix(in srgb, #000 18%, transparent);
120
+ animation: velu-search-palette-in 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
121
+ }
122
+ @keyframes velu-search-palette-in {
123
+ from {
124
+ opacity: 0;
125
+ transform: translateY(calc(var(--s-3) * -1)) scale(0.985);
126
+ }
127
+ to {
128
+ opacity: 1;
129
+ transform: none;
130
+ }
131
+ }
132
+ /* base.css's global `* { max-width: 66ch }` would cap the <input>;
133
+ reset within the palette — flex / the panel govern width here. */
134
+ .velu-search__palette * {
135
+ max-inline-size: none;
136
+ }
137
+
138
+ /* ── Input row ──────────────────────────────────────────────────────── */
139
+ .velu-search__input-wrap {
140
+ display: flex;
141
+ align-items: center;
142
+ gap: var(--s-2);
143
+ padding: var(--s-1) var(--s0);
144
+ border-block-end: var(--border-width) solid var(--border-color);
145
+ }
146
+ .velu-search__input-icon {
147
+ display: inline-flex;
148
+ flex: none;
149
+ color: var(--muted-color);
150
+ }
151
+ .velu-search__input {
152
+ flex: 1 1 auto;
153
+ min-inline-size: 0;
154
+ padding: 0;
155
+ background: transparent;
156
+ border: 0;
157
+ outline: 0;
158
+ font: inherit;
159
+ font-size: var(--f-h4);
160
+ font-weight: var(--weight-light);
161
+ line-height: var(--lh-h4);
162
+ color: var(--text-color);
163
+ }
164
+ .velu-search__input::placeholder {
165
+ color: var(--muted-color);
166
+ }
167
+
168
+ /* ── Result list ────────────────────────────────────────────────────── */
169
+ .velu-search__list {
170
+ flex: 1 1 auto;
171
+ overflow-y: auto;
172
+ padding: var(--s-3);
173
+ max-block-size: 72vh;
174
+ }
175
+ .velu-search__group {
176
+ padding: var(--s-1) var(--s-1) var(--s-4);
177
+ font-size: var(--f-h7);
178
+ font-weight: var(--weight-medium);
179
+ letter-spacing: 0.08em;
180
+ text-transform: uppercase;
181
+ color: var(--muted-color);
182
+ }
183
+
184
+ /* Result row — grid: glyph | (breadcrumb / title / desc) | meta. */
185
+ .velu-search__row {
186
+ display: grid;
187
+ grid-template-columns: auto 1fr auto;
188
+ gap: var(--s-6) var(--s0);
189
+ align-items: center;
190
+ padding: var(--s-2);
191
+ border-radius: var(--radius-sm);
192
+ color: var(--text-color);
193
+ cursor: pointer;
194
+ }
195
+ .velu-search__row + .velu-search__row {
196
+ margin-block-start: var(--s-6);
197
+ }
198
+ .velu-search__row:hover {
199
+ background: var(--surface-color);
200
+ }
201
+ .velu-search__row--selected {
202
+ background: color-mix(in srgb, var(--accent-color) 12%, transparent);
203
+ }
204
+
205
+ .velu-search__row-glyph {
206
+ grid-column: 1;
207
+ grid-row: 1 / -1;
208
+ display: flex;
209
+ align-items: center;
210
+ justify-content: center;
211
+ inline-size: 2.5em;
212
+ block-size: 2.5em;
213
+ color: var(--text-color);
214
+ }
215
+ .velu-search__glyph-hash {
216
+ font-size: var(--f-h3);
217
+ font-weight: var(--weight-light);
218
+ line-height: 1;
219
+ color: var(--text-color);
220
+ }
221
+ .velu-search__glyph-icon {
222
+ display: inline-flex;
223
+ inline-size: var(--icon-size-lg);
224
+ block-size: var(--icon-size-lg);
225
+ color: var(--muted-color);
226
+ }
227
+ .velu-search__row--selected .velu-search__glyph-icon {
228
+ color: var(--text-color);
229
+ }
230
+
231
+ .velu-search__crumbs {
232
+ grid-column: 2;
233
+ grid-row: 1;
234
+ display: flex;
235
+ align-items: center;
236
+ flex-wrap: wrap;
237
+ gap: var(--s-4);
238
+ font-size: var(--f-h6);
239
+ line-height: var(--lh-h6);
240
+ color: var(--muted-color);
241
+ }
242
+ .velu-search__crumb-sep {
243
+ opacity: 0.6;
244
+ }
245
+ .velu-search__row-title {
246
+ grid-column: 2;
247
+ grid-row: 2;
248
+ font-size: var(--f-h5);
249
+ font-weight: var(--weight-medium);
250
+ line-height: var(--lh-h5);
251
+ color: var(--text-color);
252
+ }
253
+ .velu-search__row-desc {
254
+ grid-column: 2;
255
+ grid-row: 3;
256
+ font-size: var(--f-h6);
257
+ font-weight: var(--weight-light);
258
+ line-height: var(--lh-h6);
259
+ color: var(--muted-color);
260
+ overflow: hidden;
261
+ text-overflow: ellipsis;
262
+ white-space: nowrap;
263
+ }
264
+ .velu-search__row-meta {
265
+ grid-column: 3;
266
+ grid-row: 1 / -1;
267
+ display: flex;
268
+ align-items: center;
269
+ opacity: 0;
270
+ transition: opacity 0.15s ease;
271
+ }
272
+ .velu-search__row:hover .velu-search__row-meta,
273
+ .velu-search__row--selected .velu-search__row-meta {
274
+ opacity: 1;
275
+ }
276
+
277
+ /* ── Empty / no-results ─────────────────────────────────────────────── */
278
+ .velu-search__empty {
279
+ display: flex;
280
+ flex-direction: column;
281
+ align-items: center;
282
+ gap: var(--s-6);
283
+ padding: var(--s3) var(--s0);
284
+ text-align: center;
285
+ }
286
+ .velu-search__empty-icon {
287
+ display: inline-flex;
288
+ margin-block-end: var(--s-3);
289
+ font-size: var(--f-h2);
290
+ color: var(--muted-color);
291
+ }
292
+ .velu-search__empty-title {
293
+ font-size: var(--f-h6);
294
+ font-weight: var(--weight-medium);
295
+ color: var(--text-color);
296
+ }
297
+ .velu-search__empty-sub {
298
+ font-size: var(--f-h6);
299
+ color: var(--muted-color);
300
+ }
301
+
302
+ @media (prefers-reduced-motion: reduce) {
303
+ .velu-search__scrim,
304
+ .velu-search__palette {
305
+ animation: none;
306
+ }
307
+ }