mesh-llm-ui 0.75.0

Embedded Mesh LLM web console assets
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
{
  "schemaVersion": 2,
  "generatedAt": "2026-05-06T00:00:00-04:00",
  "title": "Design System: MeshLLM UI Preview",
  "extensions": {
    "colorMeta": {
      "background-dark": {
        "role": "neutral",
        "displayName": "Console Field Dark",
        "canonical": "oklch(0.17 0.015 250)",
        "source": "src/styles/globals.css"
      },
      "foreground-dark": {
        "role": "neutral",
        "displayName": "Primary Ink Dark",
        "canonical": "oklch(0.96 0.005 80)",
        "source": "src/styles/globals.css"
      },
      "muted-dark": {
        "role": "neutral",
        "displayName": "Muted Field Dark",
        "canonical": "oklch(0.23 0.02 250)",
        "source": "src/styles/globals.css"
      },
      "muted-foreground-dark": {
        "role": "neutral",
        "displayName": "Muted Ink Dark",
        "canonical": "oklch(0.75 0.01 250)",
        "source": "src/styles/globals.css"
      },
      "border-dark": {
        "role": "neutral",
        "displayName": "Hairline Border Dark",
        "canonical": "oklch(0.3 0.02 250 / 0.9)",
        "source": "src/styles/globals.css"
      },
      "border-soft-dark": {
        "role": "neutral",
        "displayName": "Soft Divider Dark",
        "canonical": "oklch(0.3 0.02 250 / 0.45)",
        "source": "src/styles/globals.css"
      },
      "panel-dark": {
        "role": "neutral",
        "displayName": "Panel Deck Dark",
        "canonical": "oklch(0.2 0.018 250)",
        "source": "src/styles/globals.css"
      },
      "panel-strong-dark": {
        "role": "neutral",
        "displayName": "Inset Deck Dark",
        "canonical": "oklch(0.23 0.02 250)",
        "source": "src/styles/globals.css"
      },
      "accent-dark": {
        "role": "primary",
        "displayName": "Live Circuit Cyan",
        "canonical": "oklch(0.8 0.14 200)",
        "source": "src/styles/globals.css"
      },
      "accent-contrast-dark": {
        "role": "primary",
        "displayName": "Contrast Signal Dark",
        "canonical": "oklch(0.78 0.14 322)",
        "source": "src/styles/globals.css"
      },
      "accent-ink-dark": {
        "role": "primary",
        "displayName": "Accent Ink Dark",
        "canonical": "oklch(0.2 0.04 220)",
        "source": "src/styles/globals.css"
      },
      "accent-soft-dark": {
        "role": "primary",
        "displayName": "Soft Route Tint Dark",
        "canonical": "oklch(0.3 0.06 200)",
        "source": "src/styles/globals.css"
      },
      "good-dark": {
        "role": "secondary",
        "displayName": "Capacity Green Dark",
        "canonical": "oklch(0.78 0.14 150)",
        "source": "src/styles/globals.css"
      },
      "warn-dark": {
        "role": "secondary",
        "displayName": "Thermal Amber Dark",
        "canonical": "oklch(0.8 0.12 80)",
        "source": "src/styles/globals.css"
      },
      "bad-dark": {
        "role": "secondary",
        "displayName": "Fault Red Dark",
        "canonical": "oklch(0.7 0.18 25)",
        "source": "src/styles/globals.css"
      },
      "background-light": {
        "role": "neutral",
        "displayName": "Console Field Light",
        "canonical": "oklch(0.985 0.003 80)",
        "source": "src/styles/globals.css"
      },
      "foreground-light": {
        "role": "neutral",
        "displayName": "Primary Ink Light",
        "canonical": "oklch(0.22 0.02 250)",
        "source": "src/styles/globals.css"
      },
      "muted-light": {
        "role": "neutral",
        "displayName": "Muted Field Light",
        "canonical": "oklch(0.955 0.005 80)",
        "source": "src/styles/globals.css"
      },
      "muted-foreground-light": {
        "role": "neutral",
        "displayName": "Muted Ink Light",
        "canonical": "oklch(0.45 0.015 250)",
        "source": "src/styles/globals.css"
      },
      "border-light": {
        "role": "neutral",
        "displayName": "Hairline Border Light",
        "canonical": "oklch(0.88 0.005 80)",
        "source": "src/styles/globals.css"
      },
      "border-soft-light": {
        "role": "neutral",
        "displayName": "Soft Divider Light",
        "canonical": "oklch(0.93 0.005 80)",
        "source": "src/styles/globals.css"
      },
      "panel-light": {
        "role": "neutral",
        "displayName": "Panel Deck Light",
        "canonical": "oklch(0.975 0.004 80)",
        "source": "src/styles/globals.css"
      },
      "panel-strong-light": {
        "role": "neutral",
        "displayName": "Inset Deck Light",
        "canonical": "oklch(0.955 0.005 80)",
        "source": "src/styles/globals.css"
      },
      "accent-light": {
        "role": "primary",
        "displayName": "Live Circuit Blue",
        "canonical": "oklch(0.62 0.14 220)",
        "source": "src/styles/globals.css"
      },
      "accent-contrast-light": {
        "role": "primary",
        "displayName": "Contrast Signal Light",
        "canonical": "oklch(0.62 0.14 322)",
        "source": "src/styles/globals.css"
      },
      "accent-ink-light": {
        "role": "primary",
        "displayName": "Accent Ink Light",
        "canonical": "oklch(0.98 0.01 220)",
        "source": "src/styles/globals.css"
      },
      "accent-soft-light": {
        "role": "primary",
        "displayName": "Soft Route Tint Light",
        "canonical": "oklch(0.92 0.05 198)",
        "source": "src/styles/globals.css"
      },
      "good-light": {
        "role": "secondary",
        "displayName": "Capacity Green Light",
        "canonical": "oklch(0.58 0.13 150)",
        "source": "src/styles/globals.css"
      },
      "warn-light": {
        "role": "secondary",
        "displayName": "Thermal Amber Light",
        "canonical": "oklch(0.62 0.14 55)",
        "source": "src/styles/globals.css"
      },
      "bad-light": {
        "role": "secondary",
        "displayName": "Fault Red Light",
        "canonical": "oklch(0.62 0.16 28)",
        "source": "src/styles/globals.css"
      }
    },
    "accentPreferences": [
      {
        "name": "blue",
        "accent": "oklch(0.68 0.18 258)",
        "contrast": "oklch(0.78 0.15 36)",
        "softDark": "oklch(0.3 0.07 258)"
      },
      {
        "name": "cyan",
        "accent": "oklch(0.76 0.16 195)",
        "contrast": "oklch(0.78 0.14 322)",
        "softDark": "oklch(0.3 0.07 195)"
      },
      {
        "name": "violet",
        "accent": "oklch(0.75 0.14 292)",
        "contrast": "oklch(0.78 0.15 76)",
        "softDark": "oklch(0.3 0.07 292)"
      },
      {
        "name": "green",
        "accent": "oklch(0.76 0.16 132)",
        "contrast": "oklch(0.76 0.14 292)",
        "softDark": "oklch(0.3 0.07 132)"
      },
      {
        "name": "amber",
        "accent": "oklch(0.78 0.15 76)",
        "contrast": "oklch(0.72 0.16 258)",
        "softDark": "oklch(0.3 0.07 76)"
      },
      {
        "name": "pink",
        "accent": "oklch(0.73 0.16 8)",
        "contrast": "oklch(0.76 0.15 170)",
        "softDark": "oklch(0.3 0.07 8)"
      }
    ],
    "typographyMeta": {
      "display": {
        "className": "type-display",
        "purpose": "Rare page or route statements; compact and high authority."
      },
      "headline": {
        "className": "type-headline",
        "purpose": "Node names, major shell labels, and high-value operational titles."
      },
      "panel-title": {
        "className": "type-panel-title",
        "purpose": "Panel headers, drawers, settings groups, and compact feature headers."
      },
      "body": { "className": "type-body", "purpose": "Default prose and row descriptions in dense UI." },
      "caption": {
        "className": "type-caption",
        "purpose": "Helper text, compact descriptions, and secondary context."
      },
      "label": {
        "className": "type-label",
        "purpose": "Uppercase operational labels, table headers, and state headings."
      },
      "machine": {
        "className": "type-machine",
        "purpose": "IDs, endpoints, model names, capacities, timings, ports, percentages, and generated configuration."
      }
    },
    "density": {
      "modes": ["compact", "dense", "normal", "sparse"],
      "shellScalePx": {
        "micro": 10,
        "annotation": 10.5,
        "label": 11,
        "caption": 11.5,
        "caption-lg": 12,
        "control": 12.5,
        "control-lg": 13,
        "body": 13.5,
        "body-lg": 14,
        "title": 15.5,
        "headline": 16.5,
        "display": 20.5,
        "display-lg": 22.5
      }
    },
    "shadows": [
      {
        "name": "surface-low",
        "token": "--shadow-surface-low",
        "purpose": "Subtle stacked panel depth only when separated from the shell."
      },
      {
        "name": "surface-popover",
        "token": "--shadow-surface-popover",
        "purpose": "Hover cards, menus, and small floating panels."
      },
      {
        "name": "surface-modal",
        "token": "--shadow-surface-modal",
        "purpose": "Command palette and blocking modal surfaces."
      },
      {
        "name": "surface-drawer",
        "token": "--shadow-surface-drawer",
        "purpose": "Side drawers and large non-modal overlays."
      },
      {
        "name": "focus-accent",
        "token": "--shadow-focus-accent",
        "purpose": "Focus glow paired with the required 2px accent outline."
      },
      {
        "name": "surface-hover",
        "token": "--shadow-surface-hover",
        "purpose": "Temporary hover feedback for actionable surfaces."
      },
      { "name": "surface-drag", "token": "--shadow-surface-drag", "purpose": "Drag or reordering state." },
      { "name": "status-good", "token": "--shadow-status-good", "purpose": "Positive live-state emphasis only." }
    ],
    "motion": [
      {
        "name": "control-state",
        "value": "140ms cubic-bezier(0.16, 1, 0.3, 1)",
        "purpose": "Background, border, color, opacity, and shadow state changes."
      },
      {
        "name": "control-press",
        "value": "90ms cubic-bezier(0.16, 1, 0.3, 1)",
        "purpose": "Small translate feedback for pressed controls."
      },
      {
        "name": "mesh-live-pulse",
        "value": "3.4s ease-in-out infinite",
        "purpose": "Live mesh signal only; disabled under reduced motion."
      },
      {
        "name": "chat-generating-dot",
        "value": "1.15s cubic-bezier(0.16, 1, 0.3, 1) infinite",
        "purpose": "Generation progress only; disabled under reduced motion."
      },
      { "name": "mesh-reclamp", "value": "220ms outExpo", "purpose": "Viewport reclamping in MeshViz." },
      { "name": "mesh-radar", "value": "2000ms linear, 1000ms delay", "purpose": "Radar ping in MeshViz only." }
    ],
    "breakpoints": [
      { "name": "mobile", "value": "max-width: 767px", "purpose": "Adjust shell, navigation, and preferences sizing." },
      {
        "name": "narrow-mobile",
        "value": "max-width: 420px",
        "purpose": "Further compress shell and utility controls."
      }
    ]
  },
  "components": [
    {
      "name": "Base Control",
      "kind": "button",
      "refersTo": "ui-control",
      "source": "src/styles/globals.css",
      "description": "Default compact action surface with panel background, hairline border, dim text, hover accent mix, active translate, disabled opacity, and visible focus outline.",
      "html": "<button class=\"ui-control\">Filter</button>",
      "css": ".ui-control"
    },
    {
      "name": "Primary Control",
      "kind": "button",
      "refersTo": "ui-control-primary",
      "source": "src/styles/globals.css",
      "description": "Accent-filled decisive action or active navigation state using accent ink.",
      "html": "<button class=\"ui-control-primary\">Add model</button>",
      "css": ".ui-control-primary"
    },
    {
      "name": "StatusBadge",
      "kind": "chip",
      "source": "src/components/ui/StatusBadge.tsx",
      "description": "Tone-aware pill with text label and optional dot; backgrounds use 18% state color mix and borders use 30%.",
      "html": "<StatusBadge tone=\"good\" dot>Serving</StatusBadge>",
      "css": "inline color-mix styles driven by tone tokens"
    },
    {
      "name": "SegmentedControl",
      "kind": "segmented-control",
      "source": "src/components/ui/SegmentedControl.tsx",
      "description": "Radix RadioGroup-backed pill or button variants with selected-tone support and accent focus treatment.",
      "html": "<SegmentedControl variant=\"pill\" selectedTone=\"accent\" />",
      "css": ".segmented-control .segmented-control__item"
    },
    {
      "name": "Panel Shell",
      "kind": "card",
      "refersTo": "panel-shell",
      "source": "src/styles/globals.css",
      "description": "Flat bordered 10px-radius panel used for chat, settings, catalogs, banners, and operational sections.",
      "html": "<section class=\"panel-shell\">...</section>",
      "css": ".panel-shell"
    },
    {
      "name": "InfoBanner",
      "kind": "banner",
      "source": "src/components/ui/InfoBanner.tsx",
      "description": "Functional accent-to-panel banner with optional icon frame, status, and action; not a decorative gradient component.",
      "html": "<InfoBanner title=\"API connected\" status={<StatusBadge />} action={<button />} />",
      "css": "panel-shell plus accent/panel linear-gradient"
    },
    {
      "name": "NativeSelect",
      "kind": "select",
      "source": "src/components/ui/NativeSelect.tsx",
      "description": "32px high compact select with 240px minimum width, ui-control treatment, monospace value, and explicit focus outline.",
      "html": "<NativeSelect value={value} onChange={setValue} options={options} />",
      "css": "ui-control h-[32px] min-w-[240px] rounded-[var(--radius)]"
    },
    {
      "name": "Slider",
      "kind": "input",
      "source": "src/components/ui/Slider.tsx",
      "description": "Accessible range control with 8px track, 16px thumb, accent progress, visible value, bounds, and aria-valuetext.",
      "html": "<Slider label=\"VRAM split\" value={value} min={0} max={100} />",
      "css": ".ui-slider"
    },
    {
      "name": "TopNav",
      "kind": "navigation",
      "source": "src/features/shell/components/TopNav.tsx",
      "description": "Sticky surface-chrome app bar with compact brand cluster, primary tabs, API status chip, theme, preferences, and utility controls.",
      "html": "<TopNav />",
      "css": "surface-chrome sticky top-0 border-b border-border-soft"
    },
    {
      "name": "Mesh Canvas",
      "kind": "visualization",
      "source": "src/features/network/components/MeshViz.tsx and src/styles/globals.css",
      "description": "Faint 22px grid, sparse route glow, packets, live pulses, radar pings, and reduced-motion safeguards for the network visualization.",
      "html": "<MeshViz />",
      "css": ".mesh-canvas .mesh-glow .mesh-packet .mesh-live-pulse .mesh-radar-ping"
    }
  ],
  "narrative": {
    "northStar": "The Control Room Ledger",
    "overview": "A compact operations console for governing distributed local AI inference. It makes peers, endpoints, capacities, routes, warnings, and live packets visible and controllable without consumer-chat softness or SaaS-dashboard vagueness.",
    "rules": [
      {
        "name": "The One Live Signal Rule",
        "section": "colors",
        "body": "Accent color marks current action, focus, route, or live state. Do not spend it on decoration."
      },
      {
        "name": "The Three Surface Rule",
        "section": "colors",
        "body": "Ordinary depth uses only background, panel, and inset panel. Simplify before adding another surface."
      },
      {
        "name": "The Machine Values Rule",
        "section": "typography",
        "body": "Model names, endpoints, IDs, memory values, routes, timestamps, generated config, and telemetry use mono with tabular numbers."
      },
      {
        "name": "The Flat Until Floating Rule",
        "section": "elevation",
        "body": "Panels, rows, cards, and tables do not receive elevation at rest. Shadows mean floating, selected, live, dragged, focused, or responding to input."
      }
    ],
    "dos": [
      "Use semantic tokens from src/styles/globals.css as the source of truth.",
      "Keep light and dark themes equally intentional.",
      "Use mono type for machine values and telemetry.",
      "Pair state color with text, dots, or icons.",
      "Respect reduced motion and use motion only for state, routing, or feedback."
    ],
    "donts": [
      "Do not make the product feel like generic SaaS.",
      "Do not use gaming-neon cyberpunk, holographic sci-fi, or loud AI magic styling.",
      "Do not use consumer-chat bubbles, giant composers, or assistant personality.",
      "Do not use decorative gradients, glassmorphism, multicolor dashboards, or gradient text.",
      "Do not invent local colors, type sizes, timings, or shadows when global tokens already provide the contract."
    ]
  }
}